Arch distro fails to write network config with empty dns-nameservers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In distros/arch.py, the network configuration is created using
'DNS': str(tuple(
However, when dns-nameservers is None, this causes both cloud-init and cloud-init-local to fail with
failed run of stage init-local
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
return self.distro.
File "/usr/lib/
netconfig, bring_up=bring_up)
File "/usr/lib/
return self.apply_
File "/usr/lib/
dev_names = self._write_
File "/usr/lib/
'DNS': str(tuple(
TypeError: 'NoneType' object is not iterable
-------
The fix proposed in https:/
'DNS': str(tuple(
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Rich Lees (community): Approve (visual, basic testing)
- cloud-init Commiters: Pending requested
-
Diff: 193 lines (+125/-31)3 files modifiedcloudinit/distros/arch.py (+59/-31)
tests/unittests/test_distros/__init__.py (+21/-0)
tests/unittests/test_distros/test_arch.py (+45/-0)
- Server Team CI bot: Approve (continuous-integration)
- cloud-init Commiters: Pending requested
-
Diff: 93 lines (+59/-9)2 files modifiedcloudinit/distros/arch.py (+17/-9)
tests/unittests/test_distros/test_netctl.py (+42/-0)
Changed in cloud-init: | |
status: | New → Confirmed |
Changed in cloud-init: | |
importance: | Undecided → Medium |
Changed in cloud-init: | |
status: | Confirmed → Fix Committed |
A more concise patch borrowed from https:/ /github. com/hartwork/ image-bootstrap /commit/ 6f2a6709302c17f 8d4775df479e7b6 36bbb8f008