Merge ~chad.smith/cloud-init:ubuntu/artful into cloud-init:ubuntu/artful

Proposed by Chad Smith
Status: Merged
Merged at revision: 0bb961d0481e0158c0ef115f718a0f4ebcafdcea
Proposed branch: ~chad.smith/cloud-init:ubuntu/artful
Merge into: cloud-init:ubuntu/artful
Diff against target: 72 lines (+47/-1)
3 files modified
debian/changelog (+4/-1)
debian/patches/openstack-no-network-config.patch (+42/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Needs Fixing
cloud-init Commiters Pending
Review via email: mp+348354@code.launchpad.net

Commit message

Sync upstream release 18.3 into artful.
Apply debian/patches/openstack-no-network-config.patch to retain openstack network config ignoring network_data.json

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:81f2e7358551a2aa4851cf74f44cc0ee9a44faa2
https://jenkins.ubuntu.com/server/job/cloud-init-ci/117/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    SUCCESS: MAAS Compatability Testing
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/117/rebuild

review: Approve (continuous-integration)
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

FAILED: Continuous integration, rev:0bb961d0481e0158c0ef115f718a0f4ebcafdcea
https://jenkins.ubuntu.com/server/job/cloud-init-ci/119/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    FAILED: Ubuntu LTS: Build

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/119/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 57c4454..e8db6f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,11 @@ cloud-init (18.2-4-g05926e48-0ubuntu1~17.10.3) UNRELEASED; urgency=medium
22
3 * debian/rules: update version.version_string to contain packaged version.3 * debian/rules: update version.version_string to contain packaged version.
4 (LP: #1770712)4 (LP: #1770712)
5 * debian/patches/openstack-no-network-config.patch
6 add patch to ignore Openstack network_config from network_data.json by
7 default
58
6 -- Scott Moser <smoser@ubuntu.com> Mon, 04 Jun 2018 10:14:17 -04009 -- Chad Smith <chad.smith@canonical.com> Thu, 21 Jun 2018 14:22:02 -0600
710
8cloud-init (18.2-4-g05926e48-0ubuntu1~17.10.2) artful-proposed; urgency=medium11cloud-init (18.2-4-g05926e48-0ubuntu1~17.10.2) artful-proposed; urgency=medium
912
diff --git a/debian/patches/openstack-no-network-config.patch b/debian/patches/openstack-no-network-config.patch
10new file mode 10064413new file mode 100644
index 0000000..6749354
--- /dev/null
+++ b/debian/patches/openstack-no-network-config.patch
@@ -0,0 +1,42 @@
1Description: Fallback network config instead of network_data.json for OpenStack
2 To make this acceptable as a SRU we keep the same behavior as is
3 in the stable release which is to generate network for fallback nic
4 only.
5 .
6 In this series, OpenStack datasource can optionally generate
7 network_config from network_data.json if the datasource is configured
8 with a file like /etc/cloud.cfg.d/openstack-net.cfg:
9 .
10 datasource:
11 OpenStack:
12 apply_network_config: true
13Forwarded: not-needed
14Author: Chad Smith <chad.smith@canonical.com>
15
16--- a/cloudinit/sources/DataSourceOpenStack.py
17+++ b/cloudinit/sources/DataSourceOpenStack.py
18@@ -97,10 +97,9 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource):
19 if self._network_config != sources.UNSET:
20 return self._network_config
21
22- # RELEASE_BLOCKER: SRU to Xenial and Artful SRU should not provide
23+ # Xenial, Artful and Bionic will not provide
24 # network_config by default unless configured in /etc/cloud/cloud.cfg*.
25- # Patch Xenial and Artful before release to default to False.
26- if util.is_false(self.ds_cfg.get('apply_network_config', True)):
27+ if util.is_false(self.ds_cfg.get('apply_network_config', False)):
28 self._network_config = None
29 return self._network_config
30 if self.network_json == sources.UNSET:
31
32--- a/tests/unittests/test_datasource/test_openstack.py
33+++ b/tests/unittests/test_datasource/test_openstack.py
34@@ -345,6 +345,7 @@ class TestOpenStackDataSource(test_helpers.HttprettyTestCase):
35 settings.CFG_BUILTIN, None, helpers.Paths({'run_dir': self.tmp}))
36 sample_json = {'links': [{'ethernet_mac_address': 'mymac'}],
37 'networks': [], 'services': []}
38+ ds_os.ds_cfg = {'apply_network_config': True} # Default is False
39 ds_os.network_json = sample_json
40 with test_helpers.mock.patch(mock_path) as m_convert_json:
41 m_convert_json.return_value = example_cfg
42
diff --git a/debian/patches/series b/debian/patches/series
0new file mode 10064443new file mode 100644
index 0000000..2ce72fb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
1openstack-no-network-config.patch

Subscribers

People subscribed via source and target branches