cloud-config: cloud_dir setting not honored globally by cloud-init
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| cloud-init |
Fix Released
|
High
|
Alberto Contreras | ||
Bug Description
Changes to /etc/cloud/
Affects cloud-init version 22.2
[Test Plan]
cat > 95-custom-
system_info:
paths:
cloud_dir: /new-cloud-dir
EOF
lxc launch ubuntu-
lxc file push 95-custom-
lx exec dev-x -- rm -rf /var/lib/cloud
lxc exec dev-k -- cloud-init clean --logs --reboot
lxc exec dev-k -- cloud-init status --wait --long
# Expect no logs referencing use of /var/lib/cloud
lxc exec dev-k -- grep /var/lib /var/log/
2022年06月01日 23:18:07,234 - atomic_
2022年06月01日 23:18:08,642 - atomic_
2022年06月01日 23:18:13,156 - atomic_
2022年06月01日 23:18:13,996 - atomic_
2022年06月01日 23:18:13,996 - atomic_
2022年06月01日 23:18:13,996 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-
# Expect to find no files in /var/lib/cloud
lxc exec dev-x find /var/lib/cloud
/var/lib/cloud
/var/lib/cloud/data
/var/lib/
[ Possible hardcoded paths to resolve]
- cloudinit/
- cloudinit/
- cloudinit/
- cloudinit/
- cloudinit/
- cloudinit/
- cloudinit/
+ cloud-config: cloud_dir setting not honored globally by cloud-init
This bug is believed to be fixed in cloud-init in version 22.3. 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:/