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
1diff --git a/cloudinit/sources/DataSourceEc2.py b/cloudinit/sources/DataSourceEc2.py
2index 4f2f6cc..ac28f1d 100644
3--- a/cloudinit/sources/DataSourceEc2.py
4+++ b/cloudinit/sources/DataSourceEc2.py
5@@ -334,8 +334,12 @@ class DataSourceEc2(sources.DataSource):
6 if isinstance(net_md, dict):
7 result = convert_ec2_metadata_network_config(
8 net_md, macs_to_nics=macs_to_nics, fallback_nic=iface)
9- # RELEASE_BLOCKER: Xenial debian/postinst needs to add
10- # EventType.BOOT on upgrade path for classic.
11+
12+ # RELEASE_BLOCKER: xenial should drop the below if statement,
13+ # because the issue being addressed doesn't exist pre-netplan.
14+ # (This datasource doesn't implement check_instance_id() so the
15+ # datasource object is recreated every boot; this means we don't
16+ # need to modify update_events on cloud-init upgrade.)
17
18 # Non-VPC (aka Classic) Ec2 instances need to rewrite the
19 # network config file every boot due to MAC address change.

Subscribers

People subscribed via source and target branches