ConfigDrive network configuration does not applied per boot

Bug #1827704 reported by r
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Hi,

I'm trying to boot Ubuntu Bionic image by config-drive provisioning, but network configuration will be applied just for first boot (per-instance). Adding EventType.BOOT to network's update_events made it work. Now, I wonder shouldn't it be set in ConfigDriveDataSource? I found no other way to update network configuration by config-drive and without metadata server.

Thanks

Revision history for this message
Ryan Harper (raharper) wrote :

Hi,

Thanks for reporting this.

DataSourceConfigDrive doesn't currently set this value, and likely won't by default. However, we do want to allow user-config to opt-in to this behavior.

This is a work-in-progress feature, currently here:

https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+ref/feature/cloud-init-hotplug-handler

Changed in cloud-init (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
r (ameretat-reith) wrote :

Hi Rayn,

Thanks for your response. It looks that work intend to let user-config change modules frequency which is great. It's not clear to me how currently OpenStack applies network changing on next boots without that mechanism. Anyway, is anything missing in that branch making us wait to have it in mainline?

Revision history for this message
r (ameretat-reith) wrote :

And I think it would be useful to let in addition to user-config, vendor-data too change configuration frequency. Is it possible it you work? Do you agree with It usefulness?

SamKenXStream (samkenx)
tags: added: multiarch
SamKenXStream (samkenx)
Changed in cloud-init (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :

The activity from SamKenXStream is not correct.

This was previously listed as In Progress, but it is not in progress and we have no intention of changing this behavior for ConfigDrive, so I changed it to Invalid. This works as expected, and if you prefer to apply network per boot, you can provide the yaml from this example in either user data or an /etc/cloud/cloud.cfg.d/ file:
https://cloudinit.readthedocs.io/en/latest/explanation/events.html#apply-network-config-every-boot

tags: removed: multiarch
Changed in cloud-init (Ubuntu):
status: Fix Released → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.