init-local fails with network: config: disabled from NoCloud datasource.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
When passing network-config "network: config: disabled" via NoCloud I'm getting the following error in cloud-init.log:
2017-04-04 10:08:01,021 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'network': {'config': 'disabled'}}
2017-04-04 10:08:01,021 - util.py[WARNING]: failed stage init-local
2017-04-04 10:08:01,021 - util.py[DEBUG]: failed 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/
dev_names = self._write_
File "/usr/lib/
self.
File "/usr/lib/
util.
File "/usr/lib/
for iface in network_
AttributeError: 'NoneType' object has no attribute 'iter_interfaces'
I'm pretty sure this will work if you provide it with a network-config file of:
config: disabled
The top level 'network' does not need to be repeated in the 'network-config' file as it is assumed to be network config due to its anme.
I've just tested in an lxc container doing:
echo "config: disabled" > /var/lib/ cloud/seed/ nocloud- net/network- config
if that doesnt fix the problem, please set Status back to New.