Merge ~oddbloke/cloud-init/+git/cloud-init:bugfix/release_blocker into cloud-init:master

Proposed by Dan Watkins
Status: Merged
Approved by: Dan Watkins
Approved revision: 796f143f40098af33628b5d7da4a29515ee3ca18
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~oddbloke/cloud-init/+git/cloud-init:bugfix/release_blocker
Merge into: cloud-init:master
Diff against target: 19 lines (+6/-2)
1 file modified
cloudinit/sources/DataSourceEc2.py (+6/-2)
Reviewer Review Type Date Requested Status
Ryan Harper Approve
Server Team CI bot continuous-integration Approve
Review via email: mp+364284@code.launchpad.net

Commit message

DataSourceEc2: update RELEASE_BLOCKER to be more accurate

Our previous understanding of the upgrade issue was incomplete; it turns
out the only change we need is the one now outlined.

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:e0a4f697b32fc8b7f3162fb93b12fbb3d798bad3
https://jenkins.ubuntu.com/server/job/cloud-init-ci/636/
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/636/rebuild

review: Approve (continuous-integration)
Revision history for this message
Ryan Harper (raharper) wrote :

Let's add a comment about why we don'tneed a post-inst at this time.

review: Needs Fixing
Revision history for this message
Ryan Harper (raharper) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/cloudinit/sources/DataSourceEc2.py b/cloudinit/sources/DataSourceEc2.py
index 4f2f6cc..ac28f1d 100644
--- a/cloudinit/sources/DataSourceEc2.py
+++ b/cloudinit/sources/DataSourceEc2.py
@@ -334,8 +334,12 @@ class DataSourceEc2(sources.DataSource):
334 if isinstance(net_md, dict):334 if isinstance(net_md, dict):
335 result = convert_ec2_metadata_network_config(335 result = convert_ec2_metadata_network_config(
336 net_md, macs_to_nics=macs_to_nics, fallback_nic=iface)336 net_md, macs_to_nics=macs_to_nics, fallback_nic=iface)
337 # RELEASE_BLOCKER: Xenial debian/postinst needs to add337
338 # EventType.BOOT on upgrade path for classic.338 # RELEASE_BLOCKER: xenial should drop the below if statement,
339 # because the issue being addressed doesn't exist pre-netplan.
340 # (This datasource doesn't implement check_instance_id() so the
341 # datasource object is recreated every boot; this means we don't
342 # need to modify update_events on cloud-init upgrade.)
339343
340 # Non-VPC (aka Classic) Ec2 instances need to rewrite the344 # Non-VPC (aka Classic) Ec2 instances need to rewrite the
341 # network config file every boot due to MAC address change.345 # network config file every boot due to MAC address change.

Subscribers

People subscribed via source and target branches