Merge ~raharper/cloud-init:ubuntu/devel/newupstream-20180914.2 into cloud-init:ubuntu/devel

Proposed by Ryan Harper
Status: Merged
Merged at revision: 39c02e79b33202846aca3af7b1a4549a627f4576
Proposed branch: ~raharper/cloud-init:ubuntu/devel/newupstream-20180914.2
Merge into: cloud-init:ubuntu/devel
Diff against target: 93 lines (+27/-5)
4 files modified
cloudinit/sources/helpers/openstack.py (+2/-0)
debian/changelog (+8/-0)
tests/unittests/test_datasource/test_configdrive.py (+5/-1)
tools/ds-identify (+12/-4)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Chad Smith Pending
Review via email: mp+354973@code.launchpad.net

Commit message

cloud-init (18.3-46-gbb60f61b-0ubuntu1) cosmic; urgency=medium

  * New upstream snapshot.
    - ds-identify: doc string cleanup.
    - OpenStack: Support setting mac address on bond. [Fabian Wiesel]

 -- Ryan Harper <email address hidden> Fri, 14 Sep 2018 16:13:19 -0500

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:39c02e79b33202846aca3af7b1a4549a627f4576
https://jenkins.ubuntu.com/server/job/cloud-init-ci/322/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    IN_PROGRESS: Declarative: Post Actions

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

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/cloudinit/sources/helpers/openstack.py b/cloudinit/sources/helpers/openstack.py
2index d6f39a1..76a6e31 100644
3--- a/cloudinit/sources/helpers/openstack.py
4+++ b/cloudinit/sources/helpers/openstack.py
5@@ -604,6 +604,8 @@ def convert_net_json(network_json=None, known_macs=None):
6 cfg.update({'type': 'physical', 'mac_address': link_mac_addr})
7 elif link['type'] in ['bond']:
8 params = {}
9+ if link_mac_addr:
10+ params['mac_address'] = link_mac_addr
11 for k, v in link.items():
12 if k == 'bond_links':
13 continue
14diff --git a/debian/changelog b/debian/changelog
15index 4ad8877..86f8a53 100644
16--- a/debian/changelog
17+++ b/debian/changelog
18@@ -1,3 +1,11 @@
19+cloud-init (18.3-46-gbb60f61b-0ubuntu1) cosmic; urgency=medium
20+
21+ * New upstream snapshot.
22+ - ds-identify: doc string cleanup.
23+ - OpenStack: Support setting mac address on bond. [Fabian Wiesel]
24+
25+ -- Ryan Harper <ryan.harper@canonical.com> Fri, 14 Sep 2018 16:13:19 -0500
26+
27 cloud-init (18.3-44-g84bf2482-0ubuntu1) cosmic; urgency=medium
28
29 * New upstream snapshot.
30diff --git a/tests/unittests/test_datasource/test_configdrive.py b/tests/unittests/test_datasource/test_configdrive.py
31index b0abfc5..231619c 100644
32--- a/tests/unittests/test_datasource/test_configdrive.py
33+++ b/tests/unittests/test_datasource/test_configdrive.py
34@@ -136,6 +136,7 @@ NETWORK_DATA_3 = {
35 ]
36 }
37
38+BOND_MAC = "fa:16:3e:b3:72:36"
39 NETWORK_DATA_BOND = {
40 "services": [
41 {"type": "dns", "address": "1.1.1.191"},
42@@ -163,7 +164,7 @@ NETWORK_DATA_BOND = {
43 {"bond_links": ["eth0", "eth1"],
44 "bond_miimon": 100, "bond_mode": "4",
45 "bond_xmit_hash_policy": "layer3+4",
46- "ethernet_mac_address": "0c:c4:7a:34:6e:3c",
47+ "ethernet_mac_address": BOND_MAC,
48 "id": "bond0", "type": "bond"},
49 {"ethernet_mac_address": "fa:16:3e:b3:72:30",
50 "id": "vlan2", "type": "vlan", "vlan_id": 602,
51@@ -691,6 +692,9 @@ class TestConvertNetworkData(CiTestCase):
52 self.assertIn("auto oeth0", eni_rendering)
53 self.assertIn("auto oeth1", eni_rendering)
54 self.assertIn("auto bond0", eni_rendering)
55+ # The bond should have the given mac address
56+ pos = eni_rendering.find("auto bond0")
57+ self.assertIn(BOND_MAC, eni_rendering[pos:])
58
59 def test_vlan(self):
60 # light testing of vlan config conversion and eni rendering
61diff --git a/tools/ds-identify b/tools/ds-identify
62index fcc6014..5afe5aa 100755
63--- a/tools/ds-identify
64+++ b/tools/ds-identify
65@@ -2,16 +2,24 @@
66 # shellcheck disable=2015,2039,2162,2166
67 #
68 # ds-identify is configured via /etc/cloud/ds-identify.cfg
69-# or on the kernel command line. It takes primarily 2 inputs:
70+# or on the kernel command line. It takes the following inputs:
71+#
72 # datasource: can specify the datasource that should be used.
73-# kernel command line option: ci.datasource=<dsname>
74+# kernel command line option: ci.datasource=<dsname> or ci.ds=<dsname>
75+# example line in /etc/cloud/ds-identify.cfg:
76+# datasource: Ec2
77 #
78 # policy: a string that indicates how ds-identify should operate.
79-# kernel command line option: ci.di.policy=<policy>
80+#
81 # The format is:
82 # <mode>,found=value,maybe=value,notfound=value
83 # default setting is:
84-# search,found=all,maybe=all,notfound=disable
85+# search,found=all,maybe=all,notfound=disabled
86+#
87+# kernel command line option: ci.di.policy=<policy>
88+# example line in /etc/cloud/ds-identify.cfg:
89+# policy: search,found=all,maybe=none,notfound=disabled
90+#
91 #
92 # Mode:
93 # disabled: disable cloud-init

Subscribers

People subscribed via source and target branches