xenial: ubuntu-advantage cannot enable livepatch

Bug #1830154 reported by Chad Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Chad Smith (chad.smith) wrote :

cloud-init failure on ubuntu-advantage xenial

Chad Smith (chad.smith)
Changed in cloud-init (Ubuntu):
status: New → Triaged
James Falcon (falcojr)
Changed in cloud-init (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.