test case 1: trusty `ua attach <token>` 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 <LP_ID> 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 '[email protected]' SERVICE ENTITLED STATUS DESCRIPTION cc-eal yes n/a Common Criteria EAL2 Provisioning Packages cis-audit no — Center for Internet Security Audit Tools esm-infra yes enabled UA Infra: Extended Security Maintenance 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 Enable services with: ua enable <service> Account: [email protected] Subscription: [email protected] Confirm ansible is available for trusty esm PPA ansible: Installed: (none) Candidate: 1.5.4+dfsg-1ubuntu0.1~esm2 Version table: 1.7.2+dfsg-1~ubuntu14.04.1 0 100 http://archive.ubuntu.com/ubuntu/ trusty-backports/universe amd64 Packages 1.5.4+dfsg-1ubuntu0.1~esm2 0 500 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main amd64 Packages 1.5.4+dfsg-1 0 500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages Installing ansible from esm 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: libgmp10 python-crypto python-httplib2 python-jinja2 python-markupsafe Suggested packages: ansible-doc sshpass python-crypto-dbg python-crypto-doc python-jinja2-doc The following NEW packages will be installed: ansible libgmp10 python-crypto python-httplib2 python-jinja2 python-markupsafe 0 upgraded, 6 newly installed, 0 to remove and 60 not upgraded. Need to get 1,089 kB of archives. After this operation, 5,973 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libgmp10 amd64 2:5.1.3+dfsg-1ubuntu1 [218 kB] Get:2 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main python-jinja2 all 2.7.2-2ubuntu0.1~esm1 [162 kB] Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-crypto amd64 2.6.1-4ubuntu0.3 [239 kB] Get:4 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main ansible all 1.5.4+dfsg-1ubuntu0.1~esm2 [420 kB] Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main python-markupsafe amd64 0.18-1build2 [14.3 kB] Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main python-httplib2 all 0.8-2build1 [35.4 kB] debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Fetched 1,089 kB in 2s (416 kB/s) Selecting previously unselected package libgmp10:amd64. (Reading database ... 25175 files and directories currently installed.) Preparing to unpack .../libgmp10_2%3a5.1.3+dfsg-1ubuntu1_amd64.deb ... Unpacking libgmp10:amd64 (2:5.1.3+dfsg-1ubuntu1) ... Selecting previously unselected package python-crypto. Preparing to unpack .../python-crypto_2.6.1-4ubuntu0.3_amd64.deb ... Unpacking python-crypto (2.6.1-4ubuntu0.3) ... Selecting previously unselected package python-markupsafe. Preparing to unpack .../python-markupsafe_0.18-1build2_amd64.deb ... Unpacking python-markupsafe (0.18-1build2) ... Selecting previously unselected package python-jinja2. Preparing to unpack .../python-jinja2_2.7.2-2ubuntu0.1~esm1_all.deb ... Unpacking python-jinja2 (2.7.2-2ubuntu0.1~esm1) ... Selecting previously unselected package python-httplib2. Preparing to unpack .../python-httplib2_0.8-2build1_all.deb ... Unpacking python-httplib2 (0.8-2build1) ... Selecting previously unselected package ansible. Preparing to unpack .../ansible_1.5.4+dfsg-1ubuntu0.1~esm2_all.deb ... Unpacking ansible (1.5.4+dfsg-1ubuntu0.1~esm2) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up libgmp10:amd64 (2:5.1.3+dfsg-1ubuntu1) ... Setting up python-crypto (2.6.1-4ubuntu0.3) ... Setting up python-markupsafe (0.18-1build2) ... Setting up python-jinja2 (2.7.2-2ubuntu0.1~esm1) ... Setting up python-httplib2 (0.8-2build1) ... Setting up ansible (1.5.4+dfsg-1ubuntu0.1~esm2) ... Processing triggers for libc-bin (2.19-0ubuntu6.15) ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1832757 Title: Update ubuntu-advantage-client To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1832757/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
