test case 1: trusty `ua attach ` enables ESM and can install esm packages --- Test 1: Attach a trusty machine using a token from auth.contracts.canonical.com and verify ESM is attached and ESM packages can be installed. Launch Trusty container with allowing ssh access for Creating sru-trusty Starting sru-trusty Wait for cloud-init to finish startup on trusty ... Upgrade ubuntu-advantage-tools to trusty-proposed deb http://archive.ubuntu.com/ubuntu trusty-proposed main Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB] Ign http://archive.ubuntu.com trusty InRelease Get:2 http://security.ubuntu.com trusty-security/main amd64 Packages [835 kB] Get:3 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB] Hit http://archive.ubuntu.com trusty-backports InRelease Get:4 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.2 kB] Get:5 http://security.ubuntu.com trusty-security/universe amd64 Packages [294 kB] Get:6 http://archive.ubuntu.com trusty-proposed InRelease [65.9 kB] Get:7 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4806 B] Get:8 http://security.ubuntu.com trusty-security/main Translation-en [448 kB] Hit http://archive.ubuntu.com trusty Release.gpg Get:9 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1177 kB] Get:10 http://security.ubuntu.com trusty-security/multiverse Translation-en [2564 B] Get:11 http://security.ubuntu.com trusty-security/restricted Translation-en [3556 B] Get:12 http://security.ubuntu.com trusty-security/universe Translation-en [162 kB] Get:13 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.2 kB] Get:14 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [525 kB] Get:15 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.6 kB] Get:16 http://archive.ubuntu.com trusty-updates/main Translation-en [582 kB] Get:17 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7616 B] Get:18 http://archive.ubuntu.com trusty-updates/restricted Translation-en [4028 B] Get:19 http://archive.ubuntu.com trusty-updates/universe Translation-en [281 kB] Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages Hit http://archive.ubuntu.com trusty-backports/main Translation-en Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en Hit http://archive.ubuntu.com trusty-backports/universe Translation-en Get:20 http://archive.ubuntu.com trusty-proposed/main amd64 Packages [4595 B] Get:21 http://archive.ubuntu.com trusty-proposed/main Translation-en [2932 B] Hit http://archive.ubuntu.com trusty Release Hit http://archive.ubuntu.com trusty/main amd64 Packages Hit http://archive.ubuntu.com trusty/restricted amd64 Packages Hit http://archive.ubuntu.com trusty/universe amd64 Packages Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages Hit http://archive.ubuntu.com trusty/main Translation-en Hit http://archive.ubuntu.com trusty/multiverse Translation-en Hit http://archive.ubuntu.com trusty/restricted Translation-en Hit http://archive.ubuntu.com trusty/universe Translation-en Fetched 4578 kB in 15s (294 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: libfreetype6 os-prober Use 'apt-get autoremove' to remove them. The following extra packages will be installed: python3-pkg-resources python3-yaml Suggested packages: python3-setuptools The following NEW packages will be installed: python3-pkg-resources python3-yaml The following packages will be upgraded: ubuntu-advantage-tools 1 upgraded, 2 newly installed, 0 to remove and 8 not upgraded. Need to get 172 kB of archives. After this operation, 798 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-yaml amd64 3.10-4ubuntu0.1 [92.7 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-pkg-resources all 3.3-1ubuntu2 [31.7 kB] Get:3 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main ubuntu-advantage-tools amd64 19.6~ubuntu14.04.2 [47.3 kB] Fetched 172 kB in 1s (91.9 kB/s) Selecting previously unselected package python3-yaml. (Reading database ... 25111 files and directories currently installed.) Preparing to unpack .../python3-yaml_3.10-4ubuntu0.1_amd64.deb ... Unpacking python3-yaml (3.10-4ubuntu0.1) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../python3-pkg-resources_3.3-1ubuntu2_all.deb ... Unpacking python3-pkg-resources (3.3-1ubuntu2) ... Preparing to unpack .../ubuntu-advantage-tools_19.6~ubuntu14.04.2_amd64.deb ... Moving obsolete conffile /etc/update-motd.d/99-esm out of the way... Unpacking ubuntu-advantage-tools (19.6~ubuntu14.04.2) over (10ubuntu0.14.04.3) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up python3-yaml (3.10-4ubuntu0.1) ... Setting up python3-pkg-resources (3.3-1ubuntu2) ... Setting up ubuntu-advantage-tools (19.6~ubuntu14.04.2) ... Installing new version of config file /etc/apt/apt.conf.d/51ubuntu-advantage-esm ... Removing obsolete conffile /etc/update-motd.d/99-esm ... Confirm ubuntu-advantage-tools version from -proposed ubuntu-advantage-tools: Installed: 19.6~ubuntu14.04.2 Candidate: 19.6~ubuntu14.04.2 Version table: *** 19.6~ubuntu14.04.2 0 500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages 100 /var/lib/dpkg/status 10ubuntu0.14.04.4 0 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages Enable esm on trusty as non-root sudo The authenticity of host '10.69.12.218 (10.69.12.218)' can't be established. ECDSA key fingerprint is SHA256:Ai/HHC8l+oTiv2YXrpy5gZgdktAw4MY3x4XOEnig5tI. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.69.12.218' (ECDSA) to the list of known hosts. Enabling default service esm-infra Updating package lists ESM Infra enabled This machine is now attached to '