nocloud network-config mishandles empty config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
root@e1:~# cat /var/lib/
version: 1
config: []
This causes this stacktrace:
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/
return self._supported
File "/usr/lib/
renderer.
File "/usr/lib/
templates=
File "/usr/lib/
content = self._render_
File "/usr/lib/
if network_
AttributeError: 'NoneType' object has no attribute 'version'
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: cloud-init 19.2-36-
ProcVersionSign
Uname: Linux 4.15.0-64-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
Date: Wed Nov 13 21:44:48 2019
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-init-
2019-11-13 21:39:21,144 - util.py[WARNING]: failed stage init-local
AttributeError: 'NoneType' object has no attribute 'version'
user_data.txt:
#cloud-config
manage_etc_hosts: localhost
ssh_authorized
- ssh-rsa AAAAB3NzaC1yc2E
https:/ /github. com/canonical/ cloud-init/ pull/45