xenial: ubuntu-advantage cannot enable livepatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
ii ubuntu-
cloud-init 18.5-45-
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:/
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_
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_
Changed in cloud-init (Ubuntu): | |
status: | New → Triaged |
Changed in cloud-init (Ubuntu): | |
status: | Triaged → Invalid |
cloud-init failure on ubuntu-advantage xenial