cloud-init does not recognize initramfs provided network config in all cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Cloud-init relies on the 'ip=' or 'ip6=' parameter to be present in the
kernel command line in order to consider /run/net-*.conf files. Those files
are written by the initramfs indicating that network is was configured.
When 'ip=' or 'ip6=' is found on the command line, cloud-init will consider
that to be "kernel command line provided" network, and renders a network
configuration like:
# control-manual ens3
iface ens3 inet dhcp
broadcast 10.0.3.255
dns-
gateway 10.0.3.1
The key there being that it is not marked 'auto'. If cloud-init does
not recognize this, it will render:
auto ens3
iface ens3 inet dhcp
There are some iscsi-root where initramfs configures networking
but the ip= parameter is not present. 2 such cases are:
a.) static config in /etc/iscsi/
b.) iBft
If the devices are marked 'auto', then 'networking.
the device down during shutdown. That causes any filesystem activity
to hang and block shutdown/reboot.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: cloud-init 17.1-46-
ProcVersionSign
Uname: Linux 4.4.0-108-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
CloudName: OpenStack
Date: Wed Feb 28 18:35:50 2018
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 1738 lines (+1203/-66)27 files modifiedcloudinit/config/cc_puppet.py (+4/-4)
cloudinit/config/cc_snap.py (+273/-0)
cloudinit/config/cc_snap_config.py (+7/-0)
cloudinit/config/cc_snappy.py (+8/-0)
cloudinit/config/tests/test_snap.py (+535/-0)
cloudinit/net/cmdline.py (+22/-2)
cloudinit/net/netplan.py (+5/-5)
cloudinit/net/network_state.py (+1/-1)
cloudinit/tests/helpers.py (+13/-8)
cloudinit/util.py (+12/-1)
config/cloud.cfg.tmpl (+3/-2)
debian/changelog (+14/-0)
doc/rtd/conf.py (+1/-0)
doc/rtd/topics/modules.rst (+1/-0)
tests/cloud_tests/releases.yaml (+3/-0)
tests/cloud_tests/testcases.yaml (+3/-0)
tests/cloud_tests/testcases/__init__.py (+3/-0)
tests/cloud_tests/testcases/base.py (+168/-5)
tests/cloud_tests/testcases/main/command_output_simple.py (+2/-15)
tests/cloud_tests/testcases/modules/snap.py (+16/-0)
tests/cloud_tests/testcases/modules/snap.yaml (+18/-0)
tests/cloud_tests/testcases/modules/snappy.py (+2/-0)
tests/cloud_tests/verify.py (+7/-4)
tests/unittests/test_handler/test_handler_apt_source_v1.py (+2/-1)
tests/unittests/test_handler/test_schema.py (+1/-0)
tests/unittests/test_net.py (+46/-18)
tests/unittests/test_util.py (+33/-0)
- Server Team CI bot: Approve (continuous-integration)
- Chad Smith: Approve
-
Diff: 194 lines (+72/-22)3 files modifiedcloudinit/net/cmdline.py (+22/-2)
cloudinit/tests/helpers.py (+7/-2)
tests/unittests/test_net.py (+43/-18)
Changed in cloud-init: | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu): | |
status: | New → Confirmed |
Changed in cloud-init: | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cloud-init: | |
status: | Confirmed → Fix Committed |
This bug was fixed in the package cloud-init - 18.1-23- gde34dc7c- 0ubuntu1
--------------- gde34dc7c- 0ubuntu1) bionic; urgency=medium
cloud-init (18.1-23-
* New upstream snapshot.
- net: recognize iscsi root cases without ip= on kernel command line.
(LP: #1752391)
- tests: fix flakes warning for unused variable
- tests: patch leaked stderr messages from snap unit tests
- cc_snap: Add new module to install and configure snapd and snap
packages.
- tests: Make pylint happy and fix python2.6 uses of assertRaisesRegex.
- netplan: render bridge port-priority values (LP: #1735821)
-- Chad Smith <email address hidden> Fri, 16 Mar 2018 15:48:04 -0600