Comment 6 for bug 1851858

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

= Trusty verification =

# install current uat from updates on ppc64el
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://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main ppc64el Packages

ubuntu@trusty-ppc64el:~$ uname -m
ppc64le
ubuntu@trusty-ppc64el:~$ dpkg --print-architecture
ppc64el

# apt-get update hits the esm repo. It doesn't fail because the server published
# empty repositories for non-x86
ubuntu@trusty-ppc64el:~$ sudo apt-get update|grep esm
Get:1 https://esm.ubuntu.com trusty-infra-security InRelease
Get:2 https://esm.ubuntu.com trusty-infra-updates InRelease
Get:3 https://esm.ubuntu.com trusty-infra-security/main ppc64el Packages
Get:4 https://esm.ubuntu.com trusty-infra-security/main Translation-en_US
Get:5 https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US
Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en_US
Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en
Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US
Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en

# verify that esm pinning was installed and is negative:
ubuntu@trusty-ppc64el:~$ apt-cache policy | grep esm
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-updates/main ppc64el Packages
     origin esm.ubuntu.com
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main ppc64el Packages
     origin esm.ubuntu.com

# upgrade to the package in proposed:
ubuntu@trusty-ppc64el:~$ apt-cache policy ubuntu-advantage-tools
ubuntu-advantage-tools:
  Installed: 19.6~ubuntu14.04.4
  Candidate: 19.6~ubuntu14.04.4
  Version table:
 *** 19.6~ubuntu14.04.4 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed/main ppc64el Packages

# verify esm repo isn't hit anymore:
ubuntu@trusty-ppc64el:~$ sudo apt-get update|grep esm
ubuntu@trusty-ppc64el:~$
1

# verify esm pinning isn't in place anymore:
ubuntu@trusty-ppc64el:~$ apt-cache policy | grep esm
ubuntu@trusty-ppc64el:~$
ubuntu@trusty-ppc64el:~$ ll /etc/apt/preferences.d/
total 8
drwxr-xr-x 2 root root 4096 Nov 27 13:34 ./
drwxr-xr-x 7 root root 4096 Nov 27 13:33 ../
ubuntu@trusty-ppc64el:~$

# update: the server-side changes were deployed already, and now esm is
# correctly no longer advertised for non-x86 systems:
ubuntu@trusty-ppc64el:~$ sudo ua enable esm-infra
One moment, checking your subscription first
ESM Infra is not available for platform ppc64le.
Supported platforms are: amd64, i386, i686, x86_64

# repeating the test on x86 shows no change in behaviour
# current version from updates:
ubuntu@t1:~$ 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://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages

# esm repo is hit:
ubuntu@t1:~$ sudo apt-get update | grep esm
Get:6 https://esm.ubuntu.com trusty-infra-security InRelease
Get:7 https://esm.ubuntu.com trusty-infra-updates InRelease
Get:9 https://esm.ubuntu.com trusty-infra-security/main amd64 Packages
...

# esm pinned and negative:
ubuntu@t1:~$ apt-cache policy | grep esm
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-updates/main amd64 Packages
     origin esm.ubuntu.com
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main amd64 Packages
     origin esm.ubuntu.com

# with the package from proposed:
ubuntu@t1:~$ apt-cache policy ubuntu-advantage-tools
ubuntu-advantage-tools:
  Installed: 19.6~ubuntu14.04.4
  Candidate: 19.6~ubuntu14.04.4
  Version table:
 *** 19.6~ubuntu14.04.4 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages

# esm repo is still hit:
ubuntu@t1:~$ sudo apt-get update | grep esm
Hit https://esm.ubuntu.com trusty-infra-security InRelease
Hit https://esm.ubuntu.com trusty-infra-updates InRelease
Hit https://esm.ubuntu.com trusty-infra-security/main amd64 Packages
...

# and esm pinning is still there with a negative value:
ubuntu@t1:~$ apt-cache policy | grep esm
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-updates/main amd64 Packages
     origin esm.ubuntu.com
-32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main amd64 Packages
     origin esm.ubuntu.com

Trusty verification completed and succeeded.