Public bug reported:
If manual_cache_clean is set in an instance, then ds-identify will write
'# manual_cache_clean."'
to its config (/run/cloud-init/cloud.cfg).
cloud-init will try to load that file, and will WARN on it not being a
dict.
2018-01-10 15:45:57,282 - util.py[WARNING]: Failed loading yaml blob
2018-01-10 15:45:57,283 - util.py[DEBUG]: Failed loading yaml blob
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 898, in
load_yaml
(allowed, type_utils.obj_name(converted)))
TypeError: Yaml load allows (<class 'dict'>,) root types, but got NoneType
instead
python3 -c 'import yaml; yaml.load("# manual_cache_clean.\n")'
echo "manual_cache_clean: true" > /etc/cloud/cloud.cfg.d/manual.cfg
If you set manual_cache_clean in an instance, then
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 17.2-1-g4089e20c-0ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.8-0ubuntu5
Architecture: amd64
CloudName: NoCloud
Date: Wed Jan 10 15:46:20 2018
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
user_data.txt:
#cloud-config
{}
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic uec-images
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1742479
Title:
setting manual_cache_clean causes warning
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1742479/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs