Test 4:
From a fresh trusty instance, which has uat installed (from updates):
a) enable esm (via ubuntu-advantage enable-esm), upgrade to proposed
b) upgrade to proposed, enable esm (via ua attach)
Result: PASS
Details:
In the end, both instances have the same proposed package:
$ lxc exec esm-sru-4a apt-cache policy ubuntu-advantage-tools
ubuntu-advantage-tools:
Installed: 19.6~ubuntu14.04.3
Candidate: 19.6~ubuntu14.04.3
Version table:
*** 19.6~ubuntu14.04.3 0
500 http://br.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
And both have ESM enabled. In the (b) case, it's using the new infra pocket names because ESM was enabled with the new client via ua attach:
Test 4:
From a fresh trusty instance, which has uat installed (from updates):
a) enable esm (via ubuntu-advantage enable-esm), upgrade to proposed
b) upgrade to proposed, enable esm (via ua attach)
Result: PASS
Details: advantage- tools advantage- tools: br.archive. ubuntu. com/ubuntu/ trusty- proposed/ main amd64 Packages dpkg/status 14.04.4 0 archive. ubuntu. com/ubuntu/ trusty-updates/main amd64 Packages
In the end, both instances have the same proposed package:
$ lxc exec esm-sru-4a apt-cache policy ubuntu-
ubuntu-
Installed: 19.6~ubuntu14.04.3
Candidate: 19.6~ubuntu14.04.3
Version table:
*** 19.6~ubuntu14.04.3 0
500 http://
100 /var/lib/
10ubuntu0.
500 http://
And both have ESM enabled. In the (b) case, it's using the new infra pocket names because ESM was enabled with the new client via ua attach:
$ lxc exec esm-sru-4b apt-cache policy |grep esm /esm.ubuntu. com/ubuntu/ trusty- infra-updates/ main amd64 Packages /esm.ubuntu. com/ubuntu/ trusty- infra-security/ main amd64 Packages
500 https:/
origin esm.ubuntu.com
500 https:/
origin esm.ubuntu.com
Content comparison /paste. ubuntu. com/p/n98rSKBqv P/): apt/auth. conf.d/ 90ubuntu- advantage 4b/etc/ apt/auth. conf.d/ 90ubuntu- advantage apt/auth. conf.d/ 90ubuntu- advantage 2019-10-31 15:52:19.613041203 -0300 apt/auth. conf.d/ 90ubuntu- advantage 2019-10-31 15:57:10.593242280 -0300 advantage- tools
- etc directory (/dev/null was used because of the broken absolute symlinks; here is the suppressed output: https:/
$ diff -uNr 4a/etc 4b/etc 2>/dev/null
diff -uNr 4a/etc/
--- 4a/etc/
+++ 4b/etc/
@@ -1 +1 @@
-machine esm.ubuntu.com/ login myuser password mypass
+machine esm.ubuntu.com/ login bearer password longrandompass # ubuntu-
Since (4b) runs ua attach, the credentials are converted to the new bearer format, so the above is expected and correct.
diff -uNr 4a/etc/ apt/sources. list.d/ ubuntu- esm-infra- trusty. list 4b/etc/ apt/sources. list.d/ ubuntu- esm-infra- trusty. list apt/sources. list.d/ ubuntu- esm-infra- trusty. list 2019-10-31 15:52:19.629041498 -0300 apt/sources. list.d/ ubuntu- esm-infra- trusty. list 2019-10-31 15:57:10.605241750 -0300 /esm.ubuntu. com/ubuntu trusty-security main /esm.ubuntu. com/ubuntu trusty-security main /esm.ubuntu. com/ubuntu trusty-updates main /esm.ubuntu. com/ubuntu trusty-updates main /esm.ubuntu. com/ubuntu trusty- infra-security main /esm.ubuntu. com/ubuntu trusty- infra-security main /esm.ubuntu. com/ubuntu trusty- infra-updates main /esm.ubuntu. com/ubuntu trusty- infra-updates main
--- 4a/etc/
+++ 4b/etc/
@@ -1,5 +1,4 @@
-deb https:/
-# deb-src https:/
-
-deb https:/
-# deb-src https:/
+deb https:/
+# deb-src https:/
+deb https:/
+# deb-src https:/
Since (4b) runs attach, the pockets are renamed to the new infra names, so the above is also expected and correct.
- /var: lib/cloud/ instance: No such file or directory lib/cloud/ instance: No such file or directory pkgcache. bin srcpkgcache. bin lists/esm. ubuntu. com_ubuntu_ dists_trusty- infra-security_ InRelease lists/esm. ubuntu. com_ubuntu_ dists_trusty- infra-security_ main_binary- amd64_Packages lists/esm. ubuntu. com_ubuntu_ dists_trusty- infra-updates_ InRelease lists/esm. ubuntu. com_ubuntu_ dists_trusty- infra-updates_ main_binary- amd64_Packages lists/esm. ubuntu. com_ubuntu_ dists_trusty- security_ InRelease lists/esm. ubuntu. com_ubuntu_ dists_trusty- security_ main_binary- amd64_Packages lists/esm. ubuntu. com_ubuntu_ dists_trusty- updates_ InRelease lists/esm. ubuntu. com_ubuntu_ dists_trusty- updates_ main_binary- amd64_Packages data/status. json instances/ esm-sru- 4a/boot- finished instances/ esm-sru- 4a/user- data.txt. i instances/ esm-sru- 4a/vendor- data.txt. i dhclient. eth0.leases advantage/ private/ machine- access- cc-eal. json advantage/ private/ machine- access- esm-infra. json advantage/ private/ machine- access- fips-updates. json advantage/ private/ machine- access- fips.json advantage/ private/ machine- access- livepatch. json advantage/ private/ machine- access- support. json advantage/ private/ machine- token.json advantage/ status. json random- seed init-output. log advantage. log acpid.log apport. log console- setup.log cryptdisks. log hwclock. log kmod.log mountall. log mounted- debugfs. log mounted- dev.log mounted- proc.log procps- static- network- up.log procps- virtual- filesystems. log setvtrgb. log systemd- logind. log ttyS0.log
Also broken symlinks, and:
$ diff -uNr 4a/var 4b/var|diffstat -l
diff: 4a/var/
diff: 4b/var/
cache/apt/
cache/apt/
cache/man/index.db
lib/apt/
lib/apt/
lib/apt/
lib/apt/
lib/apt/
lib/apt/
lib/apt/
lib/apt/
lib/cloud/
lib/cloud/
lib/cloud/
lib/cloud/
lib/dhcp/
lib/ubuntu-
lib/ubuntu-
lib/ubuntu-
lib/ubuntu-
lib/ubuntu-
lib/ubuntu-
lib/ubuntu-
lib/ubuntu-
lib/urandom/
log/apt/history.log
log/apt/term.log
log/cloud-
log/cloud-init.log
log/dmesg
log/dmesg.0
log/dmesg.1.gz
log/dpkg.log
log/kern.log
log/syslog
log/ubuntu-
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/upstart/
log/wtmp
The /var/lib/ ubuntu- advantage files are new in (4b), because that's where we ran ua attach: var/lib/ ubuntu- advantage| diffstat machine- access- cc-eal. json | 1 + machine- access- esm-infra. json | 1 + machine- access- fips-updates. json | 1 + machine- access- fips.json | 1 + machine- access- livepatch. json | 1 + machine- access- support. json | 1 + machine- token.json | 1 +
$ diff -uNr 4{a,b}/
private/
private/
private/
private/
private/
private/
private/
status.json | 1 +
8 files changed, 8 insertions(+)