Public bug reported:

ii  ubuntu-advantage-tools           10ubuntu0.16.04.1
all          management tools for Ubuntu Advantage

cloud-init 18.5-45-g3554ffe8-0ubuntu1~16.04.1


Trying to enable livepatch using ubuntu-advantage cloud-config fails on
Xenial only due to timing of snapd package install as a prerequisite
dependency

The errors you see in cloud-init.log are the follpatchowing (and
livepatch is not enabled)

Warning: /snap/bin was not found in your $PATH. If you've not restarted
your\n                 session since you installed snapd, try doing
that. Please see\n                 https://forum.snapcraft.io/t/9469 for
more details.\n        \n        /usr/bin/ubuntu-advantage: 102:
/usr/bin/ubuntu-advantage: canonical-livepatch: not found


Steps to reproduce:
# spawn a kvm instance with cloud-config

cat > ua-livepatch.yaml <<EOF
#cloud-config
hostname: sru-test
ubuntu-advantage:
  commands:
    00: ubuntu-advantage enable-livepatch <REDACTED_LIVEPATCH_CREDS>
EOF


 multipass launch daily:xenial -n test-xenial --cloud-init ua-livepatch.yaml;  
 multipass exec test-xenial -- cloud-init status --wait --long;


Note that just running multipass launch daily:xenial and manually running 
ubuntu-advantage enable-livepatch <REDACTED_LIVEPATCH_CREDS>  *DOES* SUCCEED.

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  xenial:  ubuntu-advantage cannot enable livepatch

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to