Comment 68 for bug 1719671

Revision history for this message
Chris Newcomer (cnewcomer) wrote :

Trusty:

NOTE: This is a pass for the ubuntu-advantage-tools script. The duplicate machine-id issue I had was traced back to the canonical-livepatch snap.

root@test4:~# dpkg -l ubuntu-advantage-tools
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=================================-=====================-=====================-=======================================================================
ii ubuntu-advantage-tools 10ubuntu0.14.04.2 all management tools for Ubuntu Advantage

root@test4:~# ubuntu-advantage enable-livepatch <redacted>
Installing missing dependency snapd... OK
Installing the canonical-livepatch snap.
This may take a few minutes depending on your bandwidth.
canonical-livepatch 7.24 from 'canonical' installed

Your currently running kernel (3.13.0-135-generic) is too old to
support snaps. Version 4.4.0 or higher is needed.

Please reboot your system into a supported kernel version
and run the following command one more time to complete the
installation:

sudo ubuntu-advantage enable-livepatch <redacted>

root@test4:~# ubuntu-advantage enable-fips chris-8k:<redacted>
Sorry, but Canonical FIPS 140-2 Modules is not supported on trusty

root@test4:~# ubuntu-advantage enable-livepatch <redacted>
Enabling Livepatch with the given token, stand by...
2017/11/07 19:16:15 Error executing enable?auth-token=<redacted>
This machine ID is already enabled with a different key or is non-unique. Either "sudo canonical-livepatch disable" on the other machine, or regenerate a unique /etc/machine-id on this machine with "sudo rm /etc/machine-id /var/lib/dbus/machine-id && sudo systemd-machine-id-setup" : {"error": "Conflicting machine-id"}

root@test4:~# ubuntu-advantage status
livepatch: disabled

esm: disabled (not available)

fips: disabled (not available)

root@test4:~# sudo rm /etc/machine-id /var/lib/dbus/machine-id && sudo systemd-machine-id-setup
Initializing machine ID from KVM UUID.

root@test4:~# ubuntu-advantage enable-livepatch <redacted>
Enabling Livepatch with the given token, stand by...
Successfully enabled device. Using machine-token: <redacted>
Use "canonical-livepatch status" to verify current patch status.

root@test4:~# ubuntu-advantage status
livepatch: enabled
  client-version: "7.23"
  architecture: x86_64
  cpu-model: Intel Core Processor (Haswell, no TSX)
  last-check: 2017-11-07T19:17:36.506320725Z
  boot-time: 2017-11-07T19:15:15Z
  uptime: 2m58s
  status:
  - kernel: 4.4.0-100.123~14.04.1-generic
    running: true
    livepatch:
      checkState: checked
      patchState: nothing-to-apply
      version: ""
      fixes: ""

esm: disabled (not available)

fips: disabled (not available)