cloud-init in xenial generates bond configs that do not appear to work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Xenial |
Expired
|
Undecided
|
Unassigned |
Bug Description
cloud-init 0.7.9-48-
Cloud init generated /etc/network/
The generated config did not work, as the bond specified "bond-slaves none", there were also bond_* settings specified on the interfaces, which I believe are redundant.
Comparing the config generated by this cloud-init with another instance of similar type, I have removed the extrac bond_* settings from the cloud init generated config, and also specified "bond-salves" on the bond stanza, and disabled the cloud-init network config via snippet as advised at the top of the file.
This made networking come up.
I will attach, the generated 50-cloud-init.cfg; diff of applied differences; as well as the journal logs of both boots (broken and working).
Imho cloud-init should generate bond-slaves stanzas with the interfaces names.
However, further investigation suggests that changing bond-slaves from none to list of interfaces is a red herring. And instead the generated configuration is just fine, as long as network config is disabled in cloud-init (e.g. echo 'network: {config: disabled}' > /etc/cloud/
tags: | added: patch |
However grepping for all the bond/ens related things from the system logs does not appear to show anything in particular =(
There are two boots; before reboot instance is inacessible via ssh; after reboot it is.
The interfaces.diff shows the difference applied to the generated interfaces file.
As well as the network config module is disabled in cloud-init:
# cat /etc/cloud/ cloud.cfg. d/99-disable- network- config. cfg
network: {config: disabled}
After reboot instance is accessible via ssh...