Verification #3: inclusion apt-json-hook packaged in amd64 and not
regressing 'apt upgrade' behavior:

$ cat sru-1927795.sh 
#!/bin/bash
# Only LTS releases have ESM package ability so ignore Groovy/Hirsute
# Exercise apt JSON hook messaging to make sure hook messages show up.

cat > proposed-bionic.yaml <<EOF
#cloud-config
write_files:
- content: 
ZGViIGh0dHA6Ly9hcmNoaXZlLnVidW50dS5jb20vdWJ1bnR1LyBiaW9uaWMtcHJvcG9zZWQgcmVzdHJpY3RlZCBtYWluIG11bHRpdmVyc2UgdW5pdmVyc2UK
  encoding: b64
  owner: root:root
  path: /etc/apt/sources.list.d/proposed-ua.list
  permissions: '0644'

package_update: true
packages: [ubuntu-advantage-tools]
EOF

cat > proposed-focal.yaml <<EOF
#cloud-config
write_files:
- content: 
ZGViIGh0dHA6Ly9hcmNoaXZlLnVidW50dS5jb20vdWJ1bnR1LyBmb2NhbC1wcm9wb3NlZCByZXN0cmljdGVkIG1haW4gbXVsdGl2ZXJzZSB1bml2ZXJzZQo=
  encoding: b64
  owner: root:root
  path: /etc/apt/sources.list.d/proposed-ua.list
  permissions: '0644'
package_update: true
packages: [ubuntu-advantage-tools]
EOF


for release in bionic focal; do 
  vm=test-1927795-${release}
  lxc launch ubuntu-daily:${release} -c user.user-data="$(cat 
proposed-${release}.yaml)" ${vm}
  sleep 4
  lxc exec ${vm} -- cloud-init status --wait --long
  lxc exec ${vm} -- ua version
  lxc exec ${vm} -- ua attach ${TOKEN}
  lxc exec ${vm} -- dpkg -L ubuntu-advantage-tools | grep hook
  lxc exec ${vm} -- python3 /usr/lib/ubuntu-advantage/ua_update_messaging.py
  lxc exec ${vm} -- apt upgrade  # confirm no exit 1 failures due to broken apt 
JSON hook
done


$ ./sru-1927795.sh 
Creating test-1927795-bionic
Starting test-1927795-bionic
......................................................................
status: done
time: Wed, 12 May 2021 20:42:07 +0000
detail:
DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]
27.0.2~18.04.1
Attach requires a token: sudo ua attach <TOKEN>
To obtain a token please visit: https://ubuntu.com/advantage.
/etc/apt/apt.conf.d/20apt-esm-hook.conf
/usr/lib/ubuntu-advantage/apt-esm-hook
/usr/lib/ubuntu-advantage/apt-esm-json-hook
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
  initramfs-tools initramfs-tools-bin initramfs-tools-core libparted2
  linux-base login openssh-client openssh-server openssh-sftp-server parted
  passwd python-apt-common python3-apt snapd uidmap
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.1 MB of archives.
After this operation, 5761 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
Creating test-1927795-focal
Starting test-1927795-focal
.....................................................................................................
status: done
time: Wed, 12 May 2021 20:42:48 +0000
detail:
DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]
27.0.2~20.04.1
Attach requires a token: sudo ua attach <TOKEN>
To obtain a token please visit: https://ubuntu.com/advantage.
/etc/apt/apt.conf.d/20apt-esm-hook.conf
/usr/lib/ubuntu-advantage/apt-esm-hook
/usr/lib/ubuntu-advantage/apt-esm-json-hook
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
  initramfs-tools initramfs-tools-bin initramfs-tools-core libgnutls30
  libnetplan0 libssl1.1 linux-base netplan.io open-vm-tools openssl
  python-apt-common python3-apt python3-software-properties secureboot-db
  snapd software-properties-common
16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.4 MB of archives.
After this operation, 7994 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927795

Title:
  27.0 package build failures focal riscv64 architecture

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927795/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to