setting manual_cache_clean causes warning
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| cloud-init |
Fix Released
|
Undecided
|
Unassigned | ||
| cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
If manual_cache_clean is set in an instance, then ds-identify will write
'# manual_
to its config (/run/cloud-
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/
(allowed, type_utils.
TypeError: Yaml load allows (<class 'dict'>,) root types, but got NoneType instead
python3 -c 'import yaml; yaml.load("# manual_
echo "manual_
If you set manual_cache_clean in an instance, then
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 17.2-1-
ProcVersionSign
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
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
user_data.txt:
#cloud-config
{}
Related branches
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 65 lines (+20/-6) 3 files modifiedapicloudinit/cmd/main.py (+7/-1)
cloudinit/util.py (+5/-5)
tests/unittests/test_util.py (+8/-0)
- NonfreeKernelModules.txt Edit (2.0 KiB, text/plain; charset="utf-8")
- Dependencies.txt Edit (4.7 KiB, text/plain; charset="utf-8")
- JournalErrors.txt Edit (16.6 KiB, text/plain; charset="utf-8")
- ProcCpuinfoMinimal.txt Edit (1.0 KiB, text/plain; charset="utf-8")
- cloud-init-log-warnings.txt Edit (759 bytes, text/plain; charset="utf-8")
- cloud-init-output.log.txt.txt Edit (8.2 KiB, text/plain; charset="utf-8")
- logs.tgz.gz Edit (58.5 KiB, application/x-gzip)
- lshw.txt.txt Edit (7.8 KiB, text/plain; charset="utf-8")
This is done in ./src/maasserve
# Prevent the node from requesting cloud-init data on every reboot.
# This is done so a machine does not need to contact MAAS every time
# it reboots.
This bug was fixed in the package cloud-init - 17.2-13-
---------------
cloud-init (17.2-13-
* New upstream snapshot.
- Do not log warning on config files that represent None. (LP: #1742479)
- tests: Use git hash pip dependency format for pylxd. [Chad Smith]
- tests: add integration requirements text file [Joshua Powers]
- MAAS: add check_instance_id based off oauth tokens. (LP: #1712680)
-- Scott Moser <email address hidden> 2018年1月15日 10:15:05 -0500
This bug is believed to be fixed in cloud-init in 18.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:/