** Description changed:

- 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.
+ ==== 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://requestb.in/1b51ma71
+   post: all 
+   tries: 3
+ EOF
+ 
+ $ lxc launch ubuntu-daily:xenial x1 "--config=user.user-data=$(cat user-data)"
+ $ lxc exec x1 -- grep WARN /var/log/cloud-init.log
+ Sep 13 20:52:09 ubuntu [CLOUDINIT] cc_phone_home.py[WARNING]: Requested key 
fdqn from 'post' configuration list not available
+ 
+ ## Now update container, clean and reboot to show first boot 
+ $ lxc exec x1 -- sh -c '
+     p=/etc/apt/sources.list.d/proposed.list
+     echo deb http://archive.ubuntu.com/ubuntu xenial-proposed main > "$p" &&
+     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/cloud-init*'
+ 
+ $ lxc exec x1 reboot
+ $ lxc exec x1 -- grep WARN /var/log/cloud-init.log || echo no warn
+ no warn
+ 
+ # at this point https://requestb.in/1b51ma71?inspect will show the POST
+ # 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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1607810

Title:
  Wrong default key 'fdqn' in POST_LIST_ALL / cc_phone_home.py

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1607810/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to