+ set -e + name=test-xenial-ua-upgrade + series=xenial + test_upgrade_in_container + setup_container + h1 'Setting up fresh container' + set +x ############################################################################ ## Setting up fresh container ############################################################################ + lxc delete --force test-xenial-ua-upgrade + lxc launch ubuntu-daily:xenial test-xenial-ua-upgrade Creating test-xenial-ua-upgrade Starting test-xenial-ua-upgrade + sleep 10 + setup lxc + tool=lxc + h2 'Make sure we'\''re up to date' + set +x -> Make sure we're up to date ---------------------------------------------------------------------------- + lxc exec test-xenial-ua-upgrade -- sudo apt update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease Get:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1646 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Get:5 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [786 kB] Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [226 kB] Get:7 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [7864 B] Get:8 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2672 B] Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2048 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1220 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [358 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [22.6 kB] Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8476 B] Get:19 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [9812 B] Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4456 B] Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [11.3 kB] Get:22 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4476 B] Fetched 18.8 MB in 4s (3934 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 11 packages can be upgraded. Run 'apt list --upgradable' to see them. + lxc exec test-xenial-ua-upgrade -- sudo apt upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: libfreetype6 Use 'sudo apt autoremove' to remove it. The following packages will be upgraded: bind9-host dnsutils libbind9-140 libdns-export162 libdns162 libisc-export160 libisc160 libisccc140 libisccfg140 liblwres141 sosreport 11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2317 kB of archives. After this operation, 28.7 kB disk space will be freed. Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [153 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [665 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 bind9-host amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [38.3 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dnsutils amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [88.9 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [215 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [872 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccc140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [16.3 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccfg140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [40.5 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblwres141 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [33.9 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libbind9-140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [23.6 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 sosreport amd64 3.9.1-1ubuntu0.16.04.2 [170 kB] Fetched 2317 kB in 1s (1724 kB/s) (Reading database ... 25821 files and directories currently installed.) Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.de b ... Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4 -8ubuntu1.18) ... Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.de b ... Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4 -8ubuntu1.18) ... Preparing to unpack .../bind9-host_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubun tu1.18) ... Preparing to unpack .../dnsutils_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu 1.18) ... Preparing to unpack .../libisc160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4- 8ubuntu1.18) ... Preparing to unpack .../libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4- 8ubuntu1.18) ... Preparing to unpack .../libisccc140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P 4-8ubuntu1.18) ... Preparing to unpack .../libisccfg140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb .. . Unpacking libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg. P4-8ubuntu1.18) ... Preparing to unpack .../liblwres141_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P 4-8ubuntu1.18) ... Preparing to unpack .../libbind9-140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb .. . Unpacking libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg. P4-8ubuntu1.18) ... Preparing to unpack .../sosreport_3.9.1-1ubuntu0.16.04.2_amd64.deb ... Unpacking sosreport (3.9.1-1ubuntu0.16.04.2) over (3.9.1-1ubuntu0.16.04.1) ... Processing triggers for libc-bin (2.23-0ubuntu11.2) ... Processing triggers for man-db (2.7.5-1) ... Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ..................] Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up sosreport (3.9.1-1ubuntu0.16.04.2) ... Processing triggers for libc-bin (2.23-0ubuntu11.2) ... + lxc exec test-xenial-ua-upgrade -- sudo apt install ubuntu-advantage-tools -y Reading package lists... Done Building dependency tree Reading state information... Done ubuntu-advantage-tools is already the newest version (10ubuntu0.16.04.1). ubuntu-advantage-tools set to manually installed. The following package was automatically installed and is no longer required: libfreetype6 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. + h2 'Initial State' + set +x -> Initial State ---------------------------------------------------------------------------- + lxc exec test-xenial-ua-upgrade -- apt-cache policy ubuntu-advantage-tools ubuntu-advantage-tools: Installed: 10ubuntu0.16.04.1 Candidate: 10ubuntu0.16.04.1 Version table: *** 10ubuntu0.16.04.1 500 500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 100 /var/lib/dpkg/status + lxc exec test-xenial-ua-upgrade -- sudo ubuntu-advantage status livepatch: disabled esm: disabled (not available) fips: disabled + lxc exec test-xenial-ua-upgrade -- dpkg-query -L ubuntu-advantage-tools /. /etc /etc/update-motd.d /etc/update-motd.d/99-esm /usr /usr/share /usr/share/keyrings /usr/share/keyrings/ubuntu-esm-keyring.gpg /usr/share/keyrings/ubuntu-fips-keyring.gpg /usr/share/man /usr/share/man/man1 /usr/share/man/man1/ubuntu-advantage.1.gz /usr/share/doc /usr/share/doc/ubuntu-advantage-tools /usr/share/doc/ubuntu-advantage-tools/copyright /usr/share/doc/ubuntu-advantage-tools/changelog.gz /usr/bin /usr/bin/ubuntu-advantage + h1 'Upgrade to UA 27 while unattached' + set +x ############################################################################ ## Upgrade to UA 27 while unattached ############################################################################ + install_new_ua lxc + tool=lxc + h2 'Set up to use daily ppa' + set +x -> Set up to use daily ppa ---------------------------------------------------------------------------- + lxc exec test-xenial-ua-upgrade -- sudo sh -c 'cat </etc/apt/sources.list.d/ubuntu-xenial-proposed.list deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe' + lxc exec test-xenial-ua-upgrade -- sudo apt update Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Get:5 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [260 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages [37.6 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en [14.4 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages [5296 B] Get:9 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en [4808 B] Fetched 322 kB in 0s (337 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 10 packages can be upgraded. Run 'apt list --upgradable' to see them. + h2 'Actually install - verify there are no errors' + set +x -> Actually install - verify there are no errors ---------------------------------------------------------------------------- + lxc exec test-xenial-ua-upgrade -- sudo apt install ubuntu-advantage-tools -y Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libfreetype6 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed: distro-info Suggested packages: shunit2 The following NEW packages will be installed: distro-info The following packages will be upgraded: ubuntu-advantage-tools 1 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. Need to get 719 kB of archives. After this operation, 3024 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info amd64 0.14ubuntu0.2 [20.1 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 ubuntu-advantage-tools amd64 27.0~16.04.1 [699 kB] Fetched 719 kB in 0s (1038 kB/s) Preconfiguring packages ... Selecting previously unselected package distro-info. (Reading database ... 25821 files and directories currently installed.) Preparing to unpack .../distro-info_0.14ubuntu0.2_amd64.deb ... Unpacking distro-info (0.14ubuntu0.2) ... Preparing to unpack .../ubuntu-advantage-tools_27.0~16.04.1_amd64.deb ... Unpacking ubuntu-advantage-tools (27.0~16.04.1) over (10ubuntu0.16.04.1) ... Processing triggers for man-db (2.7.5-1) ... Setting up distro-info (0.14ubuntu0.2) ... Setting up ubuntu-advantage-tools (27.0~16.04.1) ... Removing obsolete conffile /etc/update-motd.d/99-esm ... + h2 'Check for leftover files from old version - verify nothing unexpected is left behind' + set +x -> Check for leftover files from old version - verify nothing unexpected is left behind ---------------------------------------------------------------------------- + lxc exec test-xenial-ua-upgrade -- ls -l /etc/update-motd.d/99-esm /usr/share/keyrings/ubuntu-esm-keyring.gpg /usr/share/keyrings/ubuntu-fips-keyring.gpg /usr/share/man/man1/ubuntu-advantage.1.gz /usr/share/doc/ubuntu-advantage-tools/copyright /usr/share/doc/ubuntu-advantage-tools/changelog.gz /usr/bin/ubuntu-advantage ls: cannot access '/etc/update-motd.d/99-esm': No such file or directory ls: cannot access '/usr/share/keyrings/ubuntu-esm-keyring.gpg': No such file or directory ls: cannot access '/usr/share/keyrings/ubuntu-fips-keyring.gpg': No such file or directory -rwxr-xr-x 1 root root 362 Apr 29 18:49 /usr/bin/ubuntu-advantage -rw-r--r-- 1 root root 3820 Apr 29 18:50 /usr/share/doc/ubuntu-advantage-tools/changelog.gz -rw-r--r-- 1 root root 953 Apr 28 01:39 /usr/share/doc/ubuntu-advantage-tools/copyright -rw-r--r-- 1 root root 2204 Apr 29 18:49 /usr/share/man/man1/ubuntu-advantage.1.gz + true + h2 'New Status - verify esm-infra available but not enabled; esm-apps not visible' + set +x -> New Status - verify esm-infra available but not enabled; esm-apps not visible ---------------------------------------------------------------------------- + lxc exec test-xenial-ua-upgrade -- ua status SERVICE AVAILABLE DESCRIPTION esm-infra yes UA Infra: Extended Security Maintenance (ESM) fips yes NIST-certified FIPS modules fips-updates yes Uncertified security updates to FIPS modules livepatch yes Canonical Livepatch service This machine is not attached to a UA subscription. See https://ubuntu.com/advantage + h2 'Attach - verify esm-infra automatically enabled; esm-apps not visible' + set +x -> Attach - verify esm-infra automatically enabled; esm-apps not visible ---------------------------------------------------------------------------- + attach_ua lxc + tool=lxc + set +x + lxc exec test-xenial-ua-upgrade -- sudo ua attach $UACLIENT_BEHAVE_CONTRACT_TOKEN Enabling default service esm-infra Updating package lists UA Infra: ESM enabled This machine is now attached to 'UA Client Test Contract' SERVICE ENTITLED STATUS DESCRIPTION esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM) fips yes n/a NIST-certified FIPS modules fips-updates yes n/a Uncertified security updates to FIPS modules livepatch yes n/a Canonical Livepatch service NOTICES Operation in progress: ua attach Enable services with: ua enable Account: UA Client Test Subscription: UA Client Test Contract Valid until: 9999-12-31 00:00:00 Technical support level: advanced + h2 'Detaching before destruction' + set +x -> Detaching before destruction ---------------------------------------------------------------------------- + lxc exec test-xenial-ua-upgrade -- ua detach --assume-yes Detach will disable the following service: esm-infra Updating package lists This machine is now detached. + teardown_container + lxc delete --force test-xenial-ua-upgrade + test_upgrade_with_livepatch_in_vm + setup_vm + h1 'Setting up fresh vm' + set +x ############################################################################ ## Setting up fresh vm ############################################################################ + multipass delete -p test-xenial-ua-upgrade + multipass launch -n test-xenial-ua-upgrade xenial Launched: test-xenial-ua-upgrade + sleep 10 + setup multipass + tool=multipass + h2 'Make sure we'\''re up to date' + set +x -> Make sure we're up to date ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo apt update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease Get:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1,646 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Get:5 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [786 kB] Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [226 kB] Get:7 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [7,864 B] Get:8 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2,672 B] Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2,048 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1,220 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [358 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [22.6 kB] Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,476 B] Get:19 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [9,812 B] Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B] Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [11.3 kB] Get:22 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,476 B] Fetched 18.8 MB in 5s (3,403 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 11 packages can be upgraded. Run 'apt list --upgradable' to see them. + multipass exec test-xenial-ua-upgrade -- sudo apt upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: bind9-host dnsutils libbind9-140 libdns-export162 libdns162 libisc-export160 libisc160 libisccc140 libisccfg140 liblwres141 sosreport 11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2,317 kB of archives. After this operation, 28.7 kB disk space will be freed. Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [153 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [665 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 bind9-host amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [38.3 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dnsutils amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [88.9 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [215 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [872 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccc140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [16.3 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccfg140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [40.5 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblwres141 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [33.9 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libbind9-140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [23.6 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 sosreport amd64 3.9.1-1ubuntu0.16.04.2 [170 kB] Fetched 2,317 kB in 31s (72.5 kB/s) (Reading database ... 54325 files and directories currently installed.) Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../bind9-host_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../dnsutils_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libisc160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libisccc140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libisccfg140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../liblwres141_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libbind9-140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../sosreport_3.9.1-1ubuntu0.16.04.2_amd64.deb ... Unpacking sosreport (3.9.1-1ubuntu0.16.04.2) over (3.9.1-1ubuntu0.16.04.1) ... Processing triggers for libc-bin (2.23-0ubuntu11.2) ... Processing triggers for man-db (2.7.5-1) ... Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up sosreport (3.9.1-1ubuntu0.16.04.2) ... Processing triggers for libc-bin (2.23-0ubuntu11.2) ... + multipass exec test-xenial-ua-upgrade -- sudo apt install ubuntu-advantage-tools -y Reading package lists... Done Building dependency tree Reading state information... Done ubuntu-advantage-tools is already the newest version (10ubuntu0.16.04.1). ubuntu-advantage-tools set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. + h2 'Initial State' + set +x -> Initial State ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- apt-cache policy ubuntu-advantage-tools ubuntu-advantage-tools: Installed: 10ubuntu0.16.04.1 Candidate: 10ubuntu0.16.04.1 Version table: *** 10ubuntu0.16.04.1 500 500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 100 /var/lib/dpkg/status + multipass exec test-xenial-ua-upgrade -- sudo ubuntu-advantage status livepatch: disabled esm: disabled (not available) fips: disabled + multipass exec test-xenial-ua-upgrade -- dpkg-query -L ubuntu-advantage-tools /. /etc /etc/update-motd.d /etc/update-motd.d/99-esm /usr /usr/share /usr/share/keyrings /usr/share/keyrings/ubuntu-esm-keyring.gpg /usr/share/keyrings/ubuntu-fips-keyring.gpg /usr/share/man /usr/share/man/man1 /usr/share/man/man1/ubuntu-advantage.1.gz /usr/share/doc /usr/share/doc/ubuntu-advantage-tools /usr/share/doc/ubuntu-advantage-tools/copyright /usr/share/doc/ubuntu-advantage-tools/changelog.gz /usr/bin /usr/bin/ubuntu-advantage + h1 'Upgrade to UA 27 while old version has livepatch enabled' + set +x ############################################################################ ## Upgrade to UA 27 while old version has livepatch enabled ############################################################################ + h2 'Enable livepatch on old version' + set +x -> Enable livepatch on old version ---------------------------------------------------------------------------- + set +x + multipass exec test-xenial-ua-upgrade -- ubuntu-advantage enable-livepatch $LIVEPATCH_TOKEN Installing the canonical-livepatch snap. This may take a few minutes depending on your bandwidth. 2021-04-29T16:48:55-04:00 INFO Waiting for automatic snapd restart... canonical-livepatch 9.6.1 from Canonical✓ installed Enabling Livepatch with the given token, stand by... Successfully enabled device. Using machine-token: Use "canonical-livepatch status" to verify current patch status. + h2 'Status before - old UA and livepatch say enabled' + set +x -> Status before - old UA and livepatch say enabled ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo canonical-livepatch status last check: now kernel: 4.4.0-210.242-generic server check-in: succeeded patch state: ✓ no livepatches needed for this kernel yet tier: updates (Free usage; This machine beta tests new patches.) + multipass exec test-xenial-ua-upgrade -- sudo ubuntu-advantage status livepatch: enabled client-version: 9.6.1 architecture: x86_64 cpu-model: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz last-check: 2021-04-29T16:49:06-04:00 boot-time: 2021-04-29T20:47:19Z uptime: 1m48s status: - kernel: 4.4.0-210.242-generic running: true livepatch: checkState: checked patchState: nothing-to-apply version: "" fixes: "" tier: updates esm: disabled (not available) fips: disabled + install_new_ua multipass + tool=multipass + h2 'Set up to use daily ppa' + set +x -> Set up to use daily ppa ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo sh -c 'cat </etc/apt/sources.list.d/ubuntu-xenial-proposed.list deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe' + multipass exec test-xenial-ua-upgrade -- sudo apt update Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Get:5 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [260 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages [37.6 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en [14.4 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages [5,296 B] Get:9 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en [4,808 B] Fetched 322 kB in 1s (318 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 14 packages can be upgraded. Run 'apt list --upgradable' to see them. + h2 'Actually install - verify there are no errors' + set +x -> Actually install - verify there are no errors ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo apt install ubuntu-advantage-tools -y Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: distro-info Suggested packages: shunit2 The following NEW packages will be installed: distro-info The following packages will be upgraded: ubuntu-advantage-tools 1 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 719 kB of archives. After this operation, 3,024 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info amd64 0.14ubuntu0.2 [20.1 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 ubuntu-advantage-tools amd64 27.0~16.04.1 [699 kB] Fetched 719 kB in 0s (941 kB/s) Preconfiguring packages ... Selecting previously unselected package distro-info. (Reading database ... 54325 files and directories currently installed.) Preparing to unpack .../distro-info_0.14ubuntu0.2_amd64.deb ... Unpacking distro-info (0.14ubuntu0.2) ... Preparing to unpack .../ubuntu-advantage-tools_27.0~16.04.1_amd64.deb ... Unpacking ubuntu-advantage-tools (27.0~16.04.1) over (10ubuntu0.16.04.1) ... Processing triggers for man-db (2.7.5-1) ... Setting up distro-info (0.14ubuntu0.2) ... Setting up ubuntu-advantage-tools (27.0~16.04.1) ... Removing obsolete conffile /etc/update-motd.d/99-esm ... + h2 'Status after upgrade - livepatch still enabled but new UA doesn'\''t report it' + set +x -> Status after upgrade - livepatch still enabled but new UA doesn't report it ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo canonical-livepatch status last check: 13 seconds ago kernel: 4.4.0-210.242-generic server check-in: succeeded patch state: ✓ no livepatches needed for this kernel yet tier: updates (Free usage; This machine beta tests new patches.) + multipass exec test-xenial-ua-upgrade -- sudo ua status SERVICE AVAILABLE DESCRIPTION esm-infra yes UA Infra: Extended Security Maintenance (ESM) fips yes NIST-certified FIPS modules fips-updates yes Uncertified security updates to FIPS modules livepatch yes Canonical Livepatch service This machine is not attached to a UA subscription. See https://ubuntu.com/advantage + h2 'Attach - verify that livepatch is disabled and re-enabled' + set +x -> Attach - verify that livepatch is disabled and re-enabled ---------------------------------------------------------------------------- + attach_ua multipass + tool=multipass + set +x + multipass exec test-xenial-ua-upgrade -- sudo ua attach $UACLIENT_BEHAVE_CONTRACT_TOKEN Enabling default service esm-infra Updating package lists UA Infra: ESM enabled Disabling incompatible service: Livepatch Enabling default service livepatch Canonical livepatch enabled. This machine is now attached to 'UA Client Test Contract' SERVICE ENTITLED STATUS DESCRIPTION esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM) fips yes disabled NIST-certified FIPS modules fips-updates yes disabled Uncertified security updates to FIPS modules livepatch yes enabled Canonical Livepatch service NOTICES Operation in progress: ua attach Enable services with: ua enable Account: UA Client Test Subscription: UA Client Test Contract Valid until: 9999-12-31 00:00:00 Technical support level: advanced + h2 'Status after attach - both livepatch and UA should say enabled' + set +x -> Status after attach - both livepatch and UA should say enabled ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo canonical-livepatch status last check: 1 second ago kernel: 4.4.0-210.242-generic server check-in: succeeded patch state: ✓ no livepatches needed for this kernel yet tier: stable + multipass exec test-xenial-ua-upgrade -- sudo ua status SERVICE ENTITLED STATUS DESCRIPTION esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM) fips yes disabled NIST-certified FIPS modules fips-updates yes disabled Uncertified security updates to FIPS modules livepatch yes enabled Canonical Livepatch service Enable services with: ua enable Account: UA Client Test Subscription: UA Client Test Contract Valid until: 9999-12-31 00:00:00 Technical support level: advanced + h2 'Detaching before destruction' + set +x -> Detaching before destruction ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ua detach --assume-yes Detach will disable the following services: esm-infra livepatch Updating package lists This machine is now detached. + teardown_vm + multipass delete -p test-xenial-ua-upgrade + test_upgrade_with_fips_in_vm + setup_vm + h1 'Setting up fresh vm' + set +x ############################################################################ ## Setting up fresh vm ############################################################################ + multipass delete -p test-xenial-ua-upgrade delete failed: The following errors occurred: instance "test-xenial-ua-upgrade" does not exist + true + multipass launch -n test-xenial-ua-upgrade xenial Launched: test-xenial-ua-upgrade + sleep 10 + setup multipass + tool=multipass + h2 'Make sure we'\''re up to date' + set +x -> Make sure we're up to date ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo apt update Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Get:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1,646 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB] Get:7 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [786 kB] Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [226 kB] Get:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [7,864 B] Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2,672 B] Get:11 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2,048 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1,220 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [358 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [22.6 kB] Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,476 B] Get:19 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [9,812 B] Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B] Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [11.3 kB] Get:22 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,476 B] Fetched 18.8 MB in 3s (5,254 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 11 packages can be upgraded. Run 'apt list --upgradable' to see them. + multipass exec test-xenial-ua-upgrade -- sudo apt upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: bind9-host dnsutils libbind9-140 libdns-export162 libdns162 libisc-export160 libisc160 libisccc140 libisccfg140 liblwres141 sosreport 11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2,317 kB of archives. After this operation, 28.7 kB disk space will be freed. Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [153 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [665 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 bind9-host amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [38.3 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dnsutils amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [88.9 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [215 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [872 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccc140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [16.3 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisccfg140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [40.5 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblwres141 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [33.9 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libbind9-140 amd64 1:9.10.3.dfsg.P4-8ubuntu1.19 [23.6 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 sosreport amd64 3.9.1-1ubuntu0.16.04.2 [170 kB] Fetched 2,317 kB in 0s (2,767 kB/s) (Reading database ... 54325 files and directories currently installed.) Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../bind9-host_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../dnsutils_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libisc160_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libisccc140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libisccfg140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../liblwres141_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../libbind9-140_1%3a9.10.3.dfsg.P4-8ubuntu1.19_amd64.deb ... Unpacking libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) over (1:9.10.3.dfsg.P4-8ubuntu1.18) ... Preparing to unpack .../sosreport_3.9.1-1ubuntu0.16.04.2_amd64.deb ... Unpacking sosreport (3.9.1-1ubuntu0.16.04.2) over (3.9.1-1ubuntu0.16.04.1) ... Processing triggers for libc-bin (2.23-0ubuntu11.2) ... Processing triggers for man-db (2.7.5-1) ... Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.19) ... Setting up sosreport (3.9.1-1ubuntu0.16.04.2) ... Processing triggers for libc-bin (2.23-0ubuntu11.2) ... + multipass exec test-xenial-ua-upgrade -- sudo apt install ubuntu-advantage-tools -y Reading package lists... Done Building dependency tree Reading state information... Done ubuntu-advantage-tools is already the newest version (10ubuntu0.16.04.1). ubuntu-advantage-tools set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. + h2 'Initial State' + set +x -> Initial State ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- apt-cache policy ubuntu-advantage-tools ubuntu-advantage-tools: Installed: 10ubuntu0.16.04.1 Candidate: 10ubuntu0.16.04.1 Version table: *** 10ubuntu0.16.04.1 500 500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 100 /var/lib/dpkg/status + multipass exec test-xenial-ua-upgrade -- sudo ubuntu-advantage status livepatch: disabled esm: disabled (not available) fips: disabled + multipass exec test-xenial-ua-upgrade -- dpkg-query -L ubuntu-advantage-tools /. /etc /etc/update-motd.d /etc/update-motd.d/99-esm /usr /usr/share /usr/share/keyrings /usr/share/keyrings/ubuntu-esm-keyring.gpg /usr/share/keyrings/ubuntu-fips-keyring.gpg /usr/share/man /usr/share/man/man1 /usr/share/man/man1/ubuntu-advantage.1.gz /usr/share/doc /usr/share/doc/ubuntu-advantage-tools /usr/share/doc/ubuntu-advantage-tools/copyright /usr/share/doc/ubuntu-advantage-tools/changelog.gz /usr/bin /usr/bin/ubuntu-advantage + h1 'Upgrade to UA 27 while old version has fips enabled' + set +x ############################################################################ ## Upgrade to UA 27 while old version has fips enabled ############################################################################ + h2 'Manual fips check says disabled (file doesn'\''t exist)' + set +x -> Manual fips check says disabled (file doesn't exist) ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo cat /proc/sys/crypto/fips_enabled cat: /proc/sys/crypto/fips_enabled: No such file or directory + true + h2 'Enable fips on old version' + set +x -> Enable fips on old version ---------------------------------------------------------------------------- + set +x + multipass exec test-xenial-ua-upgrade -- ubuntu-advantage enable-fips $FIPS_CREDS Running apt-get update... OK Ubuntu FIPS PPA repository enabled. Installing FIPS packages (this may take a while)... OK Configuring FIPS... Updating grub to enable fips... OK Successfully configured FIPS. PLEASE REBOOT to complete FIPS enablement. + h2 'Reboot to finish fips activation' + set +x -> Reboot to finish fips activation ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo reboot + true + sleep 20 + h2 'Status before upgrade - old UA says fips is enabled, manual check agrees' + set +x -> Status before upgrade - old UA says fips is enabled, manual check agrees ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ubuntu-advantage status livepatch: disabled esm: disabled (not available) fips: enabled + multipass exec test-xenial-ua-upgrade -- sudo cat /proc/sys/crypto/fips_enabled 1 + h2 'Source added by old client is present' + set +x -> Source added by old client is present ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ls /etc/apt/sources.list.d ubuntu-fips-xenial.list + multipass exec test-xenial-ua-upgrade -- sudo grep -o private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu /etc/apt/sources.list.d/ubuntu-fips-xenial.list private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu + install_new_ua multipass + tool=multipass + h2 'Set up to use daily ppa' + set +x -> Set up to use daily ppa ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo sh -c 'cat </etc/apt/sources.list.d/ubuntu-xenial-proposed.list deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe' + multipass exec test-xenial-ua-upgrade -- sudo apt update Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Get:5 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [260 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages [37.6 kB] Hit:7 https://private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu xenial InRelease Get:8 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en [14.4 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages [5,296 B] Get:10 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en [4,808 B] Fetched 322 kB in 0s (348 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 14 packages can be upgraded. Run 'apt list --upgradable' to see them. + h2 'Actually install - verify there are no errors' + set +x -> Actually install - verify there are no errors ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo apt install ubuntu-advantage-tools -y Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: distro-info Suggested packages: shunit2 The following NEW packages will be installed: distro-info The following packages will be upgraded: ubuntu-advantage-tools 1 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. Need to get 719 kB of archives. After this operation, 3,024 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info amd64 0.14ubuntu0.2 [20.1 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 ubuntu-advantage-tools amd64 27.0~16.04.1 [699 kB] Fetched 719 kB in 0s (1,075 kB/s) Preconfiguring packages ... Selecting previously unselected package distro-info. (Reading database ... 89134 files and directories currently installed.) Preparing to unpack .../distro-info_0.14ubuntu0.2_amd64.deb ... Unpacking distro-info (0.14ubuntu0.2) ... Preparing to unpack .../ubuntu-advantage-tools_27.0~16.04.1_amd64.deb ... Unpacking ubuntu-advantage-tools (27.0~16.04.1) over (10ubuntu0.16.04.1) ... Processing triggers for man-db (2.7.5-1) ... Setting up distro-info (0.14ubuntu0.2) ... Setting up ubuntu-advantage-tools (27.0~16.04.1) ... Removing obsolete conffile /etc/update-motd.d/99-esm ... + h2 'Status after upgrade - new UA won'\''t say anything is enabled, but a manual check still says fips is enabled' + set +x -> Status after upgrade - new UA won't say anything is enabled, but a manual check still says fips is enabled ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ua status SERVICE AVAILABLE DESCRIPTION esm-infra yes UA Infra: Extended Security Maintenance (ESM) fips yes NIST-certified FIPS modules fips-updates yes Uncertified security updates to FIPS modules livepatch yes Canonical Livepatch service This machine is not attached to a UA subscription. See https://ubuntu.com/advantage + multipass exec test-xenial-ua-upgrade -- sudo cat /proc/sys/crypto/fips_enabled 1 + h2 'Source file added by old client is renamed but contents left unchanged' + set +x -> Source file added by old client is renamed but contents left unchanged ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ls /etc/apt/sources.list.d ubuntu-esm-infra.list ubuntu-fips.list ubuntu-xenial-proposed.list + multipass exec test-xenial-ua-upgrade -- sudo grep -o private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu /etc/apt/sources.list.d/ubuntu-fips.list private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu private-ppa.launchpad.net/ubuntu-advantage/fips/ubuntu + h2 'Attach - only esm-infra will be auto-enabled' + set +x -> Attach - only esm-infra will be auto-enabled ---------------------------------------------------------------------------- + attach_ua multipass + tool=multipass + set +x + multipass exec test-xenial-ua-upgrade -- sudo ua attach $UACLIENT_BEHAVE_CONTRACT_TOKEN Enabling default service esm-infra Updating package lists UA Infra: ESM enabled This machine is now attached to 'UA Client Test Contract' SERVICE ENTITLED STATUS DESCRIPTION esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM) fips yes disabled NIST-certified FIPS modules fips-updates yes disabled Uncertified security updates to FIPS modules livepatch yes n/a Canonical Livepatch service NOTICES This FIPS install is out of date, run: sudo ua enable fips Operation in progress: ua attach Enable services with: ua enable Account: UA Client Test Subscription: UA Client Test Contract Valid until: 9999-12-31 00:00:00 Technical support level: advanced + h2 'Status after attach - new UA will say fips is disabled, livepatch is n/a, and there is a notice to enable fips' + set +x -> Status after attach - new UA will say fips is disabled, livepatch is n/a, and there is a notice to enable fips ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ua status SERVICE ENTITLED STATUS DESCRIPTION esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM) fips yes disabled NIST-certified FIPS modules fips-updates yes disabled Uncertified security updates to FIPS modules livepatch yes n/a Canonical Livepatch service NOTICES This FIPS install is out of date, run: sudo ua enable fips Enable services with: ua enable Account: UA Client Test Subscription: UA Client Test Contract Valid until: 9999-12-31 00:00:00 Technical support level: advanced + multipass exec test-xenial-ua-upgrade -- sudo cat /proc/sys/crypto/fips_enabled 1 + h2 'Enable fips on new UA - This will re-install fips packages and ask to reboot again' + set +x -> Enable fips on new UA - This will re-install fips packages and ask to reboot again ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ua enable fips --assume-yes One moment, checking your subscription first Updating package lists Installing FIPS packages FIPS enabled A reboot is required to complete install. + h2 'Status after enabled but before reboot - UA says fips enabled, notice to enable fips is gone' + set +x -> Status after enabled but before reboot - UA says fips enabled, notice to enable fips is gone ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ua status SERVICE ENTITLED STATUS DESCRIPTION esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM) fips yes enabled NIST-certified FIPS modules fips-updates yes disabled Uncertified security updates to FIPS modules livepatch yes n/a Canonical Livepatch service Enable services with: ua enable Account: UA Client Test Subscription: UA Client Test Contract Valid until: 9999-12-31 00:00:00 Technical support level: advanced + multipass exec test-xenial-ua-upgrade -- sudo cat /proc/sys/crypto/fips_enabled 1 + h2 'Source added by old client is replaced with new source' + set +x -> Source added by old client is replaced with new source ---------------------------------------------------------------------------- + set +x multipass exec test-xenial-ua-upgrade -- sudo grep $FIPS_CREDS /etc/apt/sources.list.d/ubuntu-fips.list && echo "FAIL: found oldclient FIPS creds" || echo "SUCCESS: Migrated to new client creds" SUCCESS: Migrated to new client creds + multipass exec test-xenial-ua-upgrade -- sudo ls /etc/apt/sources.list.d ubuntu-esm-infra.list ubuntu-fips.list ubuntu-xenial-proposed.list + multipass exec test-xenial-ua-upgrade -- sudo cat /etc/apt/sources.list.d/ubuntu-fips.list deb https://esm.ubuntu.com/fips/ubuntu xenial main # deb-src https://esm.ubuntu.com/fips/ubuntu xenial main + multipass exec test-xenial-ua-upgrade -- sudo apt update Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease Hit:6 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security InRelease Hit:7 https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates InRelease Hit:8 https://esm.ubuntu.com/fips/ubuntu xenial InRelease Reading package lists... Done Building dependency tree Reading state information... Done 9 packages can be upgraded. Run 'apt list --upgradable' to see them. + h2 'Check to make sure we have a valid ubuntu-*-fips metapackage installed' + set +x -> Check to make sure we have a valid ubuntu-*-fips metapackage installed ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo grep install /var/log/ubuntu-advantage.log 2021-04-29 16:53:10,478 - util.py:(572) [DEBUG]: Ran cmd: apt-get install --assume-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" ubuntu-fips openssh-client openssh-client-hmac openssh-server openssh-server-hmac strongswan strongswan-hmac openssh-client openssh-client-hmac openssh-server openssh-server-hmac strongswan strongswan-hmac, rc: 0 stderr: b'' + h2 'Reboot to finish second fips activation' + set +x -> Reboot to finish second fips activation ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo reboot + true + sleep 20 + h2 'Status after reboot - new UA will say fips is enabled, manual check agrees' + set +x -> Status after reboot - new UA will say fips is enabled, manual check agrees ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ua status SERVICE ENTITLED STATUS DESCRIPTION esm-infra yes enabled UA Infra: Extended Security Maintenance (ESM) fips yes enabled NIST-certified FIPS modules fips-updates yes disabled Uncertified security updates to FIPS modules livepatch yes n/a Canonical Livepatch service Enable services with: ua enable Account: UA Client Test Subscription: UA Client Test Contract Valid until: 9999-12-31 00:00:00 Technical support level: advanced + multipass exec test-xenial-ua-upgrade -- sudo cat /proc/sys/crypto/fips_enabled 1 + h2 'Detaching before destruction' + set +x -> Detaching before destruction ---------------------------------------------------------------------------- + multipass exec test-xenial-ua-upgrade -- sudo ua detach --assume-yes Detach will disable the following services: esm-infra fips Updating package lists Updating package lists A reboot is required to complete disable operation. This machine is now detached. + teardown_vm + multipass delete -p test-xenial-ua-upgrade