OpenNebula network configuration is ignored for distros with predictable interface names.
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| cloud-init |
Fix Released
|
Medium
|
Enol Fernández | ||
Bug Description
OpenNebula network configuration is provided in context with device identifiers in the form ETH[0-9] but with newer distros using predictable interface names this configuration is no longer applied and device MAC should be checked instead of the identifier.
Even when providing matching device name, this information is not being correctly propagated by the OpenNebula data source to the other cloud-init modules
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 1537 lines (+767/-173) 23 files modifiedapi.gitignore (+1/-0)
cloudinit/config/cc_resizefs.py (+11/-1)
cloudinit/config/cc_rsyslog.py (+5/-5)
cloudinit/net/__init__.py (+2/-2)
cloudinit/net/dhcp.py (+42/-1)
cloudinit/net/network_state.py (+12/-0)
cloudinit/sources/DataSourceAzure.py (+129/-9)
cloudinit/sources/DataSourceEc2.py (+7/-16)
cloudinit/sources/DataSourceOpenNebula.py (+59/-53)
cloudinit/sources/__init__.py (+1/-1)
cloudinit/sources/helpers/azure.py (+14/-8)
cloudinit/temp_utils.py (+8/-3)
cloudinit/tests/test_util.py (+46/-0)
cloudinit/url_helper.py (+20/-9)
cloudinit/util.py (+17/-6)
debian/changelog (+13/-0)
doc/rtd/topics/network-config-format-v1.rst (+1/-1)
tests/unittests/test_datasource/test_azure.py (+151/-6)
tests/unittests/test_datasource/test_ec2.py (+1/-1)
tests/unittests/test_datasource/test_opennebula.py (+177/-46)
tests/unittests/test_handler/test_handler_resizefs.py (+21/-1)
tests/unittests/test_net.py (+15/-3)
tools/read-version (+14/-1)
- Scott Moser: Approve
- Server Team CI bot: Needs Fixing (continuous-integration)
-
Diff: 501 lines (+241/-104) 4 files modifiedapicloudinit/net/__init__.py (+2/-2)
cloudinit/sources/DataSourceOpenNebula.py (+59/-53)
tests/unittests/test_datasource/test_opennebula.py (+177/-46)
tests/unittests/test_net.py (+3/-3)
https:/
I wrote a patch which supports Predictable Network Interface Names for DataSourceOpenN
Please try it.
Hello Akihiko Ota, or anyone else affected,
As part of a stable release update, this changeset is committed and accepted cloud-init into artful-proposed and xenial-proposed as cloud-init version 17.2-35-
sed -i 's/ xenial / xenial-proposed /' /etc/apt/sources
sudo apt-get update
sudo apt-get install cloud-init;
sudo cloud-init clean --logs --reboot; # For a fresh install run
If there are concerns please comment on LP: #1747059.
This bug is believed to be fixed in cloud-init in 18.1. If this is still a problem for you, please make a comment and set the state back to New
Thank you.
Tracked in Github Issues as https:/