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 modifiedcloudinit/cmd/main.py (+7/-1)
cloudinit/util.py (+5/-5)
tests/unittests/test_util.py (+8/-0)
Changed in cloud-init (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu): | |
status: | Confirmed → Fix Committed |
This is done in ./src/maasserve r/compose_ preseed. py
# Prevent the node from requesting cloud-init data on every reboot.
"manual_ cache_clean" : True,
# This is done so a machine does not need to contact MAAS every time
# it reboots.