← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~mgerdts/cloud-init:update_metadata into cloud-init:master

 

The proposal to merge ~mgerdts/cloud-init:update_metadata into cloud-init:master has been updated.

Commit message changed to:

update_metadata re-config on every boot comments and tests not quite right

The comment in update_metadata() that explains how a datasource should
enable network reconfig on every boot presumes that
EventType.BOOT_NEW_INSTANCE is a subset of EventType.BOOT.  That's not
the case, and as such a datasource that needs to configure networking
when it is a new instance and every boot needs to include both event
types.

To make the situation above easier to debug, update_metadata() now
logs when it returns false.

To make it so that datasources do not need to test before appending to
the update_events['network'], it is changed from a list to a set.

test_update_metadata_only_acts_on_supported_update_events is updated
to allow datasources to support EventType.BOOT.

For more details, see:
https://code.launchpad.net/~mgerdts/cloud-init/+git/cloud-init/+merge/350374
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~mgerdts/cloud-init:update_metadata into cloud-init:master.


References