# redacted xenial to bionic ubuntu-release-upgrader SRU verification log # Search SUCCESS|FAILURE messages + UA_TOKEN=REDACTED + '[' -z REDACTED ']' + cat + cat + chmod 755 checkaptpolicy.sh + NEXTDIST=([bionic]=focal [xenial]=bionic [trusty]=xenial) + declare -A NEXTDIST + for release in xenial + vm=test-sru-xenial + echo '--- Launch cloud-init with xenial-proposed enabled' --- Launch cloud-init with xenial-proposed enabled ++ cat test-uru.yaml + lxc launch ubuntu-daily:xenial test-sru-xenial -c 'user.user-data=#cloud-config package_update: true package_upgrade: true apt: sources: ua.proposed: source: deb http://ppa.launchpad.net/ua-client/proposed/ubuntu $RELEASE main keyid: 6E34E7116C0BC933' Creating test-sru-xenial Starting test-sru-xenial + upgraderelease=bionic + echo '--- Wait for cloud-init to finish' --- Wait for cloud-init to finish + '[' xenial = trusty ']' + lxc exec test-sru-xenial -- cloud-init status --wait --long ................................................................................................... status: done time: Fri, 09 Oct 2020 22:26:57 +0000 detail: DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net] + echo '--- Attach Ubuntu-Advantage and enable services' --- Attach Ubuntu-Advantage and enable services + lxc exec test-sru-xenial -- ua attach REDACTED Enabling default service esm-infra Updating package lists ESM Infra enabled This machine is now attached to 'chad.smith@canonical.com' SERVICE ENTITLED STATUS DESCRIPTION esm-apps no — UA Apps: Extended Security Maintenance esm-infra yes enabled UA Infra: Extended Security Maintenance livepatch yes n/a Canonical Livepatch service Enable services with: ua enable Account: chad.smith@canonical.com Subscription: chad.smith@canonical.com + lxc exec test-sru-xenial -- ua status + tee ua-status.orig SERVICE ENTITLED STATUS DESCRIPTION esm-apps no — UA Apps: Extended Security Maintenance esm-infra yes enabled UA Infra: Extended Security Maintenance livepatch yes n/a Canonical Livepatch service Enable services with: ua enable Account: chad.smith@canonical.com Subscription: chad.smith@canonical.com + lxc file push checkaptpolicy.sh test-sru-xenial/ + lxc exec test-sru-xenial -- /checkaptpolicy.sh ++ lsb_release -sc + RELEASE=xenial + echo -n 'Current release: ' + echo 'Assert no disabled valid mirrors in /eta/apt/sources.list' + grep disable /etc/apt/sources.list + echo 'Checking commercial Ubuntu Advantage PPAs apt policy and config' + apt-cache policy + grep esm.ubuntu.com ++ ls /etc/apt/sources.list.d/ubuntu-esm-infra.list + for file in '`ls /etc/apt/sources.list.d/ubuntu-*.list`' + echo '--- file: /etc/apt/sources.list.d/ubuntu-esm-infra.list' + cat /etc/apt/sources.list.d/ubuntu-esm-infra.list + lxc exec test-sru-xenial -- wget http://archive.ubuntu.com/ubuntu/dists/bionic-proposed/main/dist-upgrader-all/current/bionic.tar.gz --2020-10-09 22:27:15-- http://archive.ubuntu.com/ubuntu/dists/bionic-proposed/main/dist-upgrader-all/current/bionic.tar.gz Resolving archive.ubuntu.com (archive.ubuntu.com)... 91.189.88.142, 91.189.88.152, 2001:67c:1562::15, ... Connecting to archive.ubuntu.com (archive.ubuntu.com)|91.189.88.142|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1242119 (1.2M) [application/x-gzip] Saving to: ‘bionic.tar.gz’ bionic.tar.gz 100%[======================================================================================>] 1.18M 1.42MB/s in 0.8s 2020-10-09 22:27:16 (1.42 MB/s) - ‘bionic.tar.gz’ saved [1242119/1242119] + lxc exec test-sru-xenial -- tar xzvf bionic.tar.gz ./Changelog ./DevelReleaseAnnouncement ... ./mirrors.cfg ... ./DistUpgrade + echo '--- Add proposed PPA to valid mirrors to exercise ua-tools do-release-upgrade' --- Add proposed PPA to valid mirrors to exercise ua-tools do-release-upgrade + lxc file pull test-sru-xenial/root/mirrors.cfg . + sed -i s/stable/proposed/ mirrors.cfg + lxc file push mirrors.cfg test-sru-xenial/root/ + lxc exec test-sru-xenial -- /root/bionic --datadir=/root --frontend DistUpgradeViewNonInteractive MarkInstall libpam-cap [ amd64 ] < none -> 1:2.25-1.2 > ( libs ) FU=1 MarkInstall libc6 [ amd64 ] < 2.23-0ubuntu11.2 -> 2.27-3ubuntu1.2 > ( libs ) FU=1 MarkInstall locales [ amd64 ] < 2.23-0ubuntu11.2 -> 2.27-3ubuntu1.2 > ( libs ) FU=0 Installing libc-bin as Depends of locales MarkInstall libc-bin [ amd64 ] < 2.23-0ubuntu11.2 -> 2.27-3ubuntu1.2 > ( libs ) FU=0 Preconfiguring packages ... (Reading database ... 25858 files and directories currently installed.) Preparing to unpack .../locales_2.27-3ubuntu1.2_all.deb ... ... Setting up systemd (237-3ubuntu10.42) ... Installing new version of config file /etc/pam.d/systemd-user ... ... Preparing to unpack .../libpam0g_1.1.8-3.6ubuntu2.18.04.2_amd64.deb ... Unpacking libpam0g:amd64 (1.1.8-3.6ubuntu2.18.04.2) over (1.1.8-3.2ubuntu2.1) ... ... Preparing to unpack .../lxcfs_3.0.3-0ubuntu1~18.04.2_amd64.deb ... Unpacking lxcfs (3.0.3-0ubuntu1~18.04.2) over (2.0.8-0ubuntu1~16.04.2) ... Preparing to unpack .../lxd_3.0.3-0ubuntu1~18.04.1_amd64.deb ... Warning: Stopping lxd.service, but it can still be activated by: lxd.socket Unpacking lxd (3.0.3-0ubuntu1~18.04.1) over (2.0.11-0ubuntu1~16.04.4) ... Warning: Stopping lxd.service, but it can still be activated by: lxd.socket Preparing to unpack .../lxd-client_3.0.3-0ubuntu1~18.04.1_amd64.deb ... Unpacking lxd-client (3.0.3-0ubuntu1~18.04.1) over (2.0.11-0ubuntu1~16.04.4) ... ... (Reading database ... 30610 files and directories currently installed.) Removing initscripts (2.88dsf-59.3ubuntu2) ... Purging configuration files for initscripts (2.88dsf-59.3ubuntu2) ... Removing sysv-rc (2.88dsf-59.3ubuntu2) ... Purging configuration files for sysv-rc (2.88dsf-59.3ubuntu2) ... Removing insserv (1.14.0-5ubuntu3) ... Purging configuration files for insserv (1.14.0-5ubuntu3) ... Removing libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libcryptsetup4:amd64 (2:1.6.6-5ubuntu2.1) ... Removing libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libevent-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ... Removing libfreetype6:amd64 (2.8.1-2ubuntu2) ... Removing libgdbm3:amd64 (1.8.3-13.1) ... Purging configuration files for libgdbm3:amd64 (1.8.3-13.1) ... Removing libicu55:amd64 (55.1-7ubuntu0.5) ... Removing libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libjson-c2:amd64 (0.11-4ubuntu2.6) ... Removing liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.17) ... Removing libmpfr4:amd64 (3.1.4-1) ... Removing libpng12-0:amd64 (1.2.54-1ubuntu1.1) ... Removing libprocps4:amd64 (2:3.3.10-4ubuntu2.5) ... Removing libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.11) ... Removing python3.5 (3.5.2-2ubuntu0~16.04.11) ... Removing libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.11) ... Removing python3.5-minimal (3.5.2-2ubuntu0~16.04.11) ... Purging configuration files for python3.5-minimal (3.5.2-2ubuntu0~16.04.11) ... Removing libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.11) ... Purging configuration files for libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.11) ... Removing libreadline6:amd64 (6.3-8ubuntu2) ... Removing libxtables11:amd64 (1.6.0-2ubuntu3) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for ureadahead (0.100.0-21) ... Processing triggers for systemd (237-3ubuntu10.42) ... Processing triggers for libc-bin (2.27-3ubuntu1.2) ... Processing triggers for mime-support (3.60ubuntu1) ... Starting upgrade-lts-contract. upgrade-lts-contract processing contract deltas: xenial -> bionic upgrade-lts-contract succeeded after 0 retries # SUCCESS: triggered and succeeded using ua-tools' upgrade-lts-contract + echo '--- Validate UA APT sources after upgrade' --- Validate UA APT sources after upgrade + lxc exec test-sru-xenial -- /checkaptpolicy.sh ++ lsb_release -sc + RELEASE=bionic + echo -n 'Current release: ' + echo 'Assert no disabled valid mirrors in /eta/apt/sources.list' + grep disable /etc/apt/sources.list + echo 'Checking commercial Ubuntu Advantage PPAs apt policy and config' + apt-cache policy + grep esm.ubuntu.com ++ ls /etc/apt/sources.list.d/ubuntu-esm-infra.list + for file in `ls /etc/apt/sources.list.d/ubuntu-*.list` + echo '--- file: /etc/apt/sources.list.d/ubuntu-esm-infra.list' + cat /etc/apt/sources.list.d/ubuntu-esm-infra.list + lxc exec test-sru-bionic grep disable /etc/apt/sources.list + echo 'SUCCESS: no valid mirrors disabled' SUCCESS: no valid mirrors disabled + echo '--- Ensure UA status reports ESM disabled due to pending RT' --- Ensure UA status reports ESM disabled due to pending RT + egrep 'esm-infra.*disabled' + lxc exec test-sru-xenial -- sudo ua status esm-infra yes disabled UA Infra: Extended Security Maintenance + echo '--- Expect disable reason to be no Release file in esm PPA' --- Expect disable reason to be no Release file in esm PPA + lxc exec test-sru-bionic grep disable /var/log/dist-upgrade/main.log 2020-10-09 21:55:05,442 DEBUG entry '# deb https://esm.ubuntu.com/infra/ubuntu bionic-infra-security main' was disabled (no Release file) 2020-10-09 21:55:05,442 DEBUG entry '# deb https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates main' was disabled (no Release file) # SUCCESS: reason for disable no Release file + echo '--- Expect disabled esm-infra in diffs from original and upgrade status' --- Expect disabled esm-infra in diffs from original and upgrade status + diff -urN ua-status.orig ua-status.upgrade --- ua-status.orig 2020-10-09 16:27:14.547194367 -0600 +++ ua-status.upgrade 2020-10-09 15:15:36.989402546 -0600 @@ -1,6 +1,6 @@ SERVICE ENTITLED STATUS DESCRIPTION esm-apps no — UA Apps: Extended Security Maintenance -esm-infra yes enabled UA Infra: Extended Security Maintenance +esm-infra yes disabled UA Infra: Extended Security Maintenance # SUCCESS: expected disable due to pending RT livepatch yes n/a Canonical Livepatch service Enable services with: ua enable