# redacted upgrade log SRU verification. Check SUCCESS lines + UA_TOKEN=REDACTED + '[' -z REDACTED ']' + cat + cat + chmod 755 checkaptpolicy.sh + NEXTDIST=([bionic]=focal [xenial]=bionic [trusty]=xenial) + declare -A NEXTDIST + for release in bionic + vm=test-sru-bionic + echo '--- Launch cloud-init with bionic-proposed enabled' --- Launch cloud-init with bionic-proposed enabled ++ cat test-uru.yaml + lxc launch ubuntu-daily:bionic test-sru-bionic -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-bionic Starting test-sru-bionic + upgraderelease=focal + echo '--- Wait for cloud-init to finish' --- Wait for cloud-init to finish + '[' bionic = trusty ']' + lxc exec test-sru-bionic -- cloud-init status --wait --long ................................................................................... status: done time: Fri, 09 Oct 2020 21:54:22 +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-bionic -- 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 + tee ua-status.orig + lxc exec test-sru-bionic -- ua status 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-bionic/ + lxc exec test-sru-bionic -- /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' + grep esm.ubuntu.com + apt-cache policy ++ 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 -- wget http://archive.ubuntu.com/ubuntu/dists/focal-proposed/main/dist-upgrader-all/current/focal.tar.gz --2020-10-09 21:54:40-- http://archive.ubuntu.com/ubuntu/dists/focal-proposed/main/dist-upgrader-all/current/focal.tar.gz Resolving archive.ubuntu.com (archive.ubuntu.com)... 91.189.88.142, 91.189.88.152, 2001:67c:1562::18, ... Connecting to archive.ubuntu.com (archive.ubuntu.com)|91.189.88.142|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1336027 (1.3M) [application/x-gzip] Saving to: ‘focal.tar.gz’ focal.tar.gz 100%[===================>] 1.27M 1.55MB/s in 0.8s 2020-10-09 21:54:41 (1.55 MB/s) - ‘focal.tar.gz’ saved [1336027/1336027] + lxc exec test-sru-bionic -- tar xzvf focal.tar.gz ./Changelog ./DevelReleaseAnnouncement ... ./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-bionic/root/mirrors.cfg . + sed -i s/stable/proposed/ mirrors.cfg + lxc file push mirrors.cfg test-sru-bionic/root/ + lxc exec test-sru-bionic -- /root/focal --datadir=/root --frontend DistUpgradeViewNonInteractive MarkInstall libc6:amd64 < 2.27-3ubuntu1.2 -> 2.31-0ubuntu9.1 @ii umU Ib > FU=1 Installing libgcc-s1 as Depends of libc6 MarkInstall libgcc-s1:amd64 < none -> 10.2.0-5ubuntu1~20.04 @un uN Ib > FU=0 Installing gcc-10-base as Depends of libgcc-s1 MarkInstall gcc-10-base:amd64 < none -> 10.2.0-5ubuntu1~20.04 @un uN > FU=0 Installing libcrypt1 as Depends of libc6 MarkInstall libcrypt1:amd64 < none -> 1:4.4.10-10ubuntu4 @un uN > FU=0 MarkInstall locales:amd64 < 2.27-3ubuntu1.2 -> 2.31-0ubuntu9.1 @ii umU Ib > FU=0 Installing libc-bin as Depends of locales MarkInstall libc-bin:amd64 < 2.27-3ubuntu1.2 -> 2.31-0ubuntu9.1 @ii umU > FU=0 new important dependency: libidn2-0:amd64 Installing libidn2-0 as Recommends of libc6 MarkInstall libidn2-0:amd64 < 2.0.4-1.1ubuntu0.2 -> 2.2.0-2 @ii umU > FU=0 Preconfiguring packages ... (Reading database ... 28791 files and directories currently installed.) ... Checking init scripts... Checking for services that may need to be restarted... Checking init scripts... Stopping some services possibly affected by the upgrade (will be restarted later): cron: stopping...done. ... Restarting services possibly affected by the upgrade: cron: restarting...done. rsync: restarting...done. atd: restarting...done. Services restarted successfully. ... Restarting services possibly affected by the upgrade: cron: stopping...starting...done. atd: stopping...starting...done. Services restarted successfully. Installing new version of config file /etc/default/useradd ... ... Setting up apparmor (2.13.3-7ubuntu5.1) ... Installing new version of config file /etc/apparmor.d/abstractions/X ... Installing new version of config file /etc/udev/udev.conf ... update-initramfs: deferring update (trigger activated) Setting up snapd (2.46.1+20.04) ... snapd.failure.service is a disabled or a static unit, not starting it. snapd.snap-repair.service is a disabled or a static unit, not starting it. (Reading database ... 32880 files and directories currently installed.) Preparing to unpack .../archives/lxd_1%3a0.9_all.deb ... Warning: Stopping lxd.service, but it can still be activated by: lxd.socket => Installing the LXD snap ==> Checking connectivity with the snap store ==> Installing the LXD snap from the 4.0 track for ubuntu-20.04 2020-10-09T21:58:23Z INFO Waiting for automatic snapd restart... lxd (4.0/stable) 4.0.3 from Canonical installed => Snap installation complete ==> Cleaning up leftovers Synchronizing state of lxd.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable lxd Removed /etc/systemd/system/sockets.target.wants/lxd.socket. Removed /etc/systemd/system/multi-user.target.wants/lxd-containers.service. Unpacking lxd (1:0.9) over (3.0.3-0ubuntu1~18.04.1) ... Preparing to unpack .../libisns0_0.97-3_amd64.deb ... ... Setting up gpg-agent (2.2.19-3ubuntu2) ... Installing new version of config file /etc/logcheck/ignore.d.server/gpg-agent ... Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket /usr/lib/systemd/user/gpg-agent-browser.socket. Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket /usr/lib/systemd/user/gpg-agent-extra.socket. Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket /usr/lib/systemd/user/gpg-agent-ssh.socket. Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent.socket /usr/lib/systemd/user/gpg-agent.socket. ... Installing new version of config file /etc/rsyslog.conf ... The user `syslog' is already a member of `adm'. Adding user `syslog' to group `tty' ... Adding user syslog to group tty Done. Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd Removing obsolete conffile /etc/default/rsyslog ... Created symlink /etc/systemd/system/multi-user.target.wants/dmesg.service /lib/systemd/system/dmesg.service. ... Removing gcc-8-base:amd64 (8.4.0-3ubuntu2) ... Removing geoip-database (20191224-2) ... Removing libargon2-0 (0~20171227-0.2) ... Removing libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libdns-export1100 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libisccfg160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libdns1100:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libevent-2.1-6:amd64 (2.1.8-stable-4build1) ... Removing libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.1) ... Removing python3.6 (3.6.9-1~18.04ubuntu1.1) ... Removing libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.1) ... Removing libffi6:amd64 (3.2.1-8) ... Removing libfreetype6:amd64 (2.10.1-2) ... Removing libperl5.26:amd64 (5.26.1-6ubuntu0.3) ... Removing libgdbm5:amd64 (1.14.1-6) ... Removing libgeoip1:amd64 (1.6.12-6build1) ... Removing libhogweed4:amd64 (3.4-1) ... Removing libicu60:amd64 (60.2-3ubuntu3.1) ... Removing libidn11:amd64 (1.33-2.2ubuntu2) ... Removing libip4tc0:amd64 (1.6.1-2ubuntu2) ... Removing libip6tc0:amd64 (1.6.1-2ubuntu2) ... Removing libiptc0:amd64 (1.8.4-3ubuntu2) ... Removing libisc-export169:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libisccc160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libisc169:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libjson-c3:amd64 (0.12.1-1.3ubuntu0.3) ... Removing liblvm2app2.2:amd64 (2.02.176-4.1ubuntu3.18.04.3) ... Removing liblvm2cmd2.02:amd64 (2.02.176-4.1ubuntu3.18.04.3) ... Removing liblwres160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ... Removing libncurses5:amd64 (6.2-0ubuntu2) ... Removing libncursesw5:amd64 (6.2-0ubuntu2) ... Removing libnettle6:amd64 (3.4-1) ... Removing ureadahead (0.100.0-21) ... Removing libnih1:amd64 (1.0.3-6ubuntu2) ... Removing libntfs-3g88 (1:2017.3.23-2ubuntu0.18.04.2) ... Removing libplymouth4:amd64 (0.9.3-1ubuntu7.18.04.2) ... Removing libprocps6:amd64 (2:3.3.12-3ubuntu1.2) ... Removing python3.6-minimal (3.6.9-1~18.04ubuntu1.1) ... Removing libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.1) ... Removing libreadline7:amd64 (7.0-3) ... Removing libssl1.0.0:amd64 (1.0.2n-1ubuntu5.4) ... Removing libtinfo5:amd64 (6.2-0ubuntu2) ... Removing lxcfs (4.0.3-0ubuntu1) ... dpkg: warning: while removing lxcfs, unable to remove directory '/var/lib/lxcfs': Device or resource busy - directory may be a mount point? Removing lxd-client (1:0.9) ... Removing lxd (1:0.9) ... Removing mlocate (0.26-3ubuntu3) ... Removing multiarch-support (2.27-3ubuntu1.2) ... Removing net-tools (1.60+git20180626.aebd88e-1ubuntu1) ... Removing nplan (0.99-0ubuntu3~18.04.3) ... Removing perl-modules-5.26 (5.26.1-6ubuntu0.3) ... Removing python3-asn1crypto (0.24.0-1build1) ... Removing python3-pam (0.4.2-13.2ubuntu8) ... Removing uidmap (1:4.8.1-1ubuntu5.20.04) ... Removing xdelta3 (3.0.11-dfsg-1ubuntu1) ... Removing liblxc-common (1:4.0.2-0ubuntu1) ... Removing liblxc1 (1:4.0.2-0ubuntu1) ... Processing triggers for libc-bin (2.31-0ubuntu9.1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for mime-support (3.64ubuntu1) ... dpkg: warning: package not in status nor available database at line 3: btrfs-tools:amd64 dpkg: warning: package not in status nor available database at line 4: command-not-found-data:amd64 dpkg: warning: package not in status nor available database at line 5: dns-root-data:all dpkg: warning: package not in status nor available database at line 9: geoip-database:all dpkg: warning: package not in status nor available database at line 11: libbind9-160:amd64 dpkg: warning: package not in status nor available database at line 13: libirs160:amd64 dpkg: warning: package not in status nor available database at line 14: libisccfg160:amd64 dpkg: warning: package not in status nor available database at line 15: libdns1100:amd64 dpkg: warning: package not in status nor available database at line 16: libevent-2.1-6:amd64 dpkg: warning: package not in status nor available database at line 17: libpython3.6:amd64 dpkg: warning: package not in status nor available database at line 21: libfreetype6:amd64 dpkg: warning: package not in status nor available database at line 22: libperl5.26:amd64 dpkg: warning: package not in status nor available database at line 23: libgdbm5:amd64 dpkg: warning: package not in status nor available database at line 24: libgeoip1:amd64 dpkg: warning: package not in status nor available database at line 29: libip6tc0:amd64 dpkg: warning: package not in status nor available database at line 30: libiptc0:amd64 dpkg: warning: package not in status nor available database at line 32: libisccc160:amd64 dpkg: warning: package not in status nor available database at line 33: libisc169:amd64 dpkg: warning: package not in status nor available database at line 35: liblvm2app2.2:amd64 dpkg: warning: package not in status nor available database at line 36: liblvm2cmd2.02:amd64 dpkg: warning: package not in status nor available database at line 37: liblwres160:amd64 dpkg: warning: package not in status nor available database at line 39: liblxc1:amd64 dpkg: warning: package not in status nor available database at line 44: libnih1:amd64 dpkg: warning: package not in status nor available database at line 45: libntfs-3g88:amd64 dpkg: warning: package not in status nor available database at line 46: libplymouth4:amd64 dpkg: warning: package not in status nor available database at line 54: lxd-client:all dpkg: warning: package not in status nor available database at line 57: multiarch-support:amd64 dpkg: warning: package not in status nor available database at line 58: net-tools:amd64 dpkg: warning: package not in status nor available database at line 60: perl-modules-5.26:all dpkg: warning: package not in status nor available database at line 61: python3-asn1crypto:all dpkg: warning: package not in status nor available database at line 62: python3-pam:amd64 dpkg: warning: package not in status nor available database at line 63: uidmap:amd64 dpkg: warning: package not in status nor available database at line 64: xdelta3:amd64 dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method; please see the FAQ (Reading database ... 31518 files and directories currently installed.) Purging configuration files for lxcfs (4.0.3-0ubuntu1) ... dpkg: warning: while removing lxcfs, unable to remove directory '/var/lib/lxcfs': Device or resource busy - directory may be a mount point? Purging configuration files for liblxc-common (1:4.0.2-0ubuntu1) ... Purging configuration files for lxd (1:0.9) ... Purging configuration files for acpid (1:2.0.32-1ubuntu1) ... Purging configuration files for dnsmasq-base (2.80-1.1ubuntu1) ... Purging configuration files for libssl1.0.0:amd64 (1.0.2n-1ubuntu5.4) ... Purging configuration files for ureadahead (0.100.0-21) ... Purging configuration files for acl (2.2.53-6) ... Purging configuration files for libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.1) ... Purging configuration files for ebtables (2.0.11-3build1) ... Purging configuration files for python3.6-minimal (3.6.9-1~18.04ubuntu1.1) ... Purging configuration files for mlocate (0.26-3ubuntu3) ... Processing triggers for dbus (1.12.16-2ubuntu2.1) ... Processing triggers for systemd (245.4-4ubuntu3.2) ... Starting upgrade-lts-contract. upgrade-lts-contract processing contract deltas: bionic -> focal upgrade-lts-contract succeeded after 0 retries # SUCCESS: do-release-upgrade ran ua-tools' upgrade-lts-contract script + echo '--- Validate UA APT sources after upgrade' --- Validate UA APT sources after upgrade + lxc exec test-sru-bionic -- /checkaptpolicy.sh ++ lsb_release -sc + RELEASE=focal + 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 + lxc exec test-sru-bionic -- sudo ua status + egrep 'esm-infra.*disabled' 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 expected disables RT pending + echo '--- Expect disabled esm-infra in diff from original and upgrade status' --- Expect disabled esm-infra in diff from original and upgrade status + diff -urN ua-status.orig ua-status.upgrade --- ua-status.orig 2020-10-09 15:54:39.658241929 -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 RT pending livepatch yes n/a Canonical Livepatch service Enable services with: ua enable