do not create nocloud-net seed without --cloud-init parameter
Bug #1633232 reported by
Ryan Harper
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Fix Released
|
High
|
Barry Warsaw | ||
ubuntu-image (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If a provided gadget snap includes a cloud.conf file (which prevents snap prepare-image from writing out /etc/cloud/
The nocloud-net seed should only be written if the user also supplied some user-data to the --cloud-init parameter.
Changed in ubuntu-image: | |
importance: | Undecided → High |
status: | New → Triaged |
assignee: | nobody → Barry Warsaw (barry) |
milestone: | none → 0.10 |
description: | updated |
Changed in ubuntu-image: | |
status: | Triaged → In Progress |
Changed in ubuntu-image: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-image: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-image (Ubuntu Xenial): | |
status: | New → Fix Released |
Changed in ubuntu-image (Ubuntu Yakkety): | |
status: | New → Fix Released |
Changed in ubuntu-image (Ubuntu Zesty): | |
status: | New → Fix Released |
To post a comment you must log in.
We do need to support creating all-snap images that support reading cloud init data from a network source. However, this bug report supposes that this should be the default, i.e. when no --cloud-init option is passed. I don't agree that this should be the default - preparing a generic image that you want to collect configuration information from the network that it's attached to is /not/ the common case for snappy, the common case is that the network you're attaching to is unknown/untrusted, and doesn't have any data source anyway leading to annoying timeouts on boot.
So allowing cloud-init to search for network data sources should be handled with an additional option. I don't know if this option belongs on the ubuntu-image commandline, vs. as part of the model assertion.