Merge lp:~raharper/curtin/trunk.delete-eth0-cfg-in-target into lp:~curtin-dev/curtin/trunk
Status: | Merged |
---|---|
Merged at revision: | 389 |
Proposed branch: | lp:~raharper/curtin/trunk.delete-eth0-cfg-in-target |
Merge into: | lp:~curtin-dev/curtin/trunk |
Diff against target: |
576 lines (+129/-56) 19 files modified
curtin/commands/curthooks.py (+38/-0) curtin/util.py (+10/-0) examples/network-iscsiroot.yaml (+3/-3) examples/tests/basic_network.yaml (+3/-3) examples/tests/basic_network_static.yaml (+1/-1) examples/tests/bonding_network.yaml (+5/-5) examples/tests/network_source.yaml (+4/-4) examples/tests/vlan_network.yaml (+20/-20) tests/unittests/test_net.py (+14/-14) tests/vmtests/__init__.py (+12/-0) tests/vmtests/test_basic.py (+2/-0) tests/vmtests/test_bcache_basic.py (+1/-0) tests/vmtests/test_bonding.py (+1/-0) tests/vmtests/test_lvm.py (+1/-0) tests/vmtests/test_mdadm_bcache.py (+2/-0) tests/vmtests/test_network.py (+8/-6) tests/vmtests/test_nvme.py (+1/-0) tests/vmtests/test_raid5_bcache.py (+2/-0) tests/vmtests/test_uefi_basic.py (+1/-0) |
To merge this branch: | bzr merge lp:~raharper/curtin/trunk.delete-eth0-cfg-in-target |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Scott Moser | Pending | ||
Review via email: mp+295084@code.launchpad.net |
Commit message
Detect and remove legacy /etc/network/
Prior to Xenial release, Ubuntu Cloud images included a default network
configuration in /etc/network/
this legacy configuration file can cause a delay during boot when cloud-
init is expecting a non-existent interface to become available. curtin
installations handle configuring networking in the target installed
system subsequently the embedded configuration is not needed.
This patch reuses most of cloud-init's version of detecting and examining the legacy config, confirming if the contents are what is expected. Upon finding expected content, the file will be removed, otherwise it will remain.
Additional changes to vmtest and unittest were added to remove the reliance on fallback nic naming (eth0); we always use non-kernel names in our configuration now. An additional common test has been added to check that in all cases we ensure we remove the embedded config.
Description of the change
Detect and remove legacy /etc/network/
Prior to Xenial release, Ubuntu Cloud images included a default network
configuration in /etc/network/
this legacy configuration file can cause a delay during boot when cloud-
init is expecting a non-existent interface to become available. curtin
installations handle configuring networking in the target installed
system subsequently the embedded configuration is not needed.
This patch reuses most of cloud-init's version of detecting and examining the legacy config, confirming if the contents are what is expected. Upon finding expected content, the file will be removed, otherwise it will remain.
Additional changes to vmtest and unittest were added to remove the reliance on fallback nic naming (eth0); we always use non-kernel names in our configuration now. An additional common test has been added to check that in all cases we ensure we remove the embedded config.
PASSED: Continuous integration, rev:390 /server- team-jenkins. canonical. com/job/ curtin- ci/229/ /server- team-jenkins. canonical. com/job/ generic- update- mp/226/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /server- team-jenkins. canonical. com/job/ curtin- ci/229/ rebuild
https:/