verified

$ cat >user-data <<EOF
#cloud-config
phone_home:
  url: http://requestb.in/1b51ma71
  post: all
  tries: 3
EOF

$ n=x1
$ lxc delete --force $n
$ lxc launch ubuntu-daily:xenial x1 "--config=user.user-data=$(cat user-data)"
$ lxc exec x1 -- grep WARN /var/log/cloud-init.log </dev/null
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 $n -- 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' </dev/null
$ lxc exec $n -- sh -c '
    cd /var/lib/cloud && for d in *; do [ "$d" = "seed" ] || rm -Rf "$d"; done
    rm -Rf /var/log/cloud-init*' </dev/null

$ lxc exec $n reboot
$ sleep 10
$ lxc exec $n -- grep WARN /var/log/cloud-init.log || echo no warn
no warn
$ lxc exec $n -- dpkg-query --show cloud-init
cloud-init  0.7.8-1-g3705bb5-0ubuntu1~16.04.1

-- 
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