nocloud network-config mishandles empty config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| cloud-init (Ubuntu) |
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
Ryan Harper (raharper) wrote : | #1 |
Ryan Harper (raharper) wrote : | #2 |
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → Low |
status: | New → In Progress |
Launchpad Janitor (janitor) wrote : | #3 |
This bug was fixed in the package cloud-init - 19.3-74-
---------------
cloud-init (19.3-74-
* New upstream snapshot.
- azure: avoid re-running cloud-init when instance-id is byte-swapped
(#84) [AOhassan]
- fix unlocking method on FreeBSD [Igor Galić] (LP: #1854594)
- debian: add reference to the manpages [Joshua Powers]
- ds_identify: if /sys is not available use dmidecode (#42)
[Igor Galić] (LP: #1852442)
- docs: add cloud-id manpage [Joshua Powers]
- docs: add cloud-init-per manpage [Joshua Powers]
- docs: add cloud-init manpage [Joshua Powers]
- docs: add additional details to per-instance/once [Joshua Powers]
- Merge pull request #96 from fred-lefebvre/
- Update doc-requirement
- doc-requirements: add missing dep [Joshua Powers]
- Merge pull request #95 from powersj/docs/bugs [Joshua Powers]
- dhcp: Support RedHat dhcp rfc3442 lease format for option 121 (#76)
[Eric Lafontaine] (LP: #1850642)
- network_state: handle empty v1 config (#45) (LP: #1852496)
- Merge pull request #94 from gaughen/patch-1 [Joshua Powers]
- docs: fix line length and remove highlighting [Joshua Powers]
- docs: Add security.md to readthedocs [Joshua Powers]
- Multiple file fix for AuthorizedKeysFile config (#60) [Eduardo Otubo]
- Merge pull request #88 from OddBloke/travis [Joshua Powers]
- doc: update links on README.md [Joshua Powers]
- doc: Updates to wording of README.md [Joshua Powers]
- Add security.md [Joshua Powers]
- setup.py: Amazon Linux sets libexec to /usr/libexec (#52)
[Frederick Lefebvre]
-- Chad Smith <email address hidden> Thu, 12 Dec 2019 16:05:35 -0700
Changed in cloud-init (Ubuntu): | |
status: | In Progress → Fix Released |
https:/ /github. com/canonical/ cloud-init/ pull/45