Wrong default key 'fdqn' in POST_LIST_ALL / cc_phone_home.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
==== Begin SRU Template ====
[Impact]
A feature of cloud-init to post its fully qualified domain name
to a web service was broken.
[Test Case]
## Recreate failure
$ cat >user-data <<EOF
#cloud-config
phone_home:
url: http://
post: all
tries: 3
EOF
$ lxc launch ubuntu-daily:xenial x1 "--config=
$ lxc exec x1 -- grep WARN /var/log/
Sep 13 20:52:09 ubuntu [CLOUDINIT] cc_phone_
## Now update container, clean and reboot to show first boot
$ lxc exec x1 -- sh -c '
p=/
echo deb http://
apt-get update -q && apt-get -qy install cloud-init'
$ lxc exec x1 -- sh -c '
cd /var/lib/cloud && for d in *; do [ "$d" = "seed" ] || rm -Rf "$d"; done
rm -Rf /var/log/
$ lxc exec x1 reboot
$ lxc exec x1 -- grep WARN /var/log/
no warn
# at this point https:/
# and will have 'fqdn' of x1.localdomain.
[Regression Potential]
Low risk of regression. Fix of typo.
==== End SRU Template ====
The cloud-init phone_home default list of keys to post back includes 'fdqn' but it should be 'fqdn'. This is logged in the cloud-init logfiles, because the key 'fdqn' does not exist.
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu Xenial): | |
status: | New → In Progress |
importance: | Undecided → Medium |
description: | updated |
Thanks!