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 modifiedapicloudinit/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 modifiedapicloudinit/distros/arch.py (+17/-9)
tests/unittests/test_distros/test_netctl.py (+42/-0)
- fix-arch-nameservers-none.patch Edit (666 bytes, text/plain)
A more concise patch borrowed from https:/
This bug is believed to be fixed in cloud-init in 17.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:/