Comment 7 for bug 2039621

Revision history for this message
Chad Smith (chad.smith) wrote :

Asserted current mantic cloud-init 23.3.1-0ubuntu2 reproduces the errant apt-get update calls across clean reboot via: cloud-init clean --logs --reboot. After -proposed upgrade to 23.3.3-0ubuntu0~23.10.1 apt-get update is no longer called automatically on every clean boot.

csmith@downtown:/tmp$ bash ./sru-2039621.sh
Creating sru-mantic-2039621
Starting sru-mantic-2039621
....................................................................
status: done
boot_status_code: enabled-by-generator
last_update: Fri, 17 Nov 2023 16:38:03 +0000
detail:
DataSourceLXD
SUCCESS: found apt-get update calls 2023-11-17 16:37:52,929 - subp.py[DEBUG]: Running command ['eatmydata', 'apt-get', '--option=Dpkg::Options::=--force-confold', '--option=Dpkg::options::=--force-unsafe-io', '--assume-yes', '--quiet', 'update'] with allowed return codes [0] (shell=False, capture=False)
2023-11-17 16:38:02,400 - util.py[DEBUG]: apt-update [eatmydata apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet update] took 9.471 seconds
2023-11-17 16:38:02,400 - subp.py[DEBUG]: Running command ['eatmydata', 'apt-get', '--option=Dpkg::Options::=--force-confold', '--option=Dpkg::options::=--force-unsafe-io', '--assume-yes', '--quiet', 'install'] with allowed return codes [0] (shell=False, capture=False)
2023-11-17 16:38:02,825 - util.py[DEBUG]: apt-install [eatmydata apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install] took 0.424 seconds
 --- Assert apt-get update called across clean reboot on released pkg
................
status: done
boot_status_code: enabled-by-generator
last_update: Fri, 17 Nov 2023 16:38:13 +0000
detail:
DataSourceLXD
SUCCESS: found reproducer: 1 apt-get update call across clean reboot for published cloud-init
---- install proposed cloud-init
  cloud-init
Get:1 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 cloud-init all 23.3.3-0ubuntu0~23.10.1 [578 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Preparing to unpack .../cloud-init_23.3.3-0ubuntu0~23.10.1_all.deb ...
Unpacking cloud-init (23.3.3-0ubuntu0~23.10.1) over (23.3.1-0ubuntu2) ...
Setting up cloud-init (23.3.3-0ubuntu0~23.10.1) ...
(Reading database ... 33546 files and directories currently installed.)
Preparing to unpack .../cloud-init_23.3.3-0ubuntu0~23.10.1_all.deb ...
Unpacking cloud-init (23.3.3-0ubuntu0~23.10.1) over (23.3.3-0ubuntu0~23.10.1) ...
Setting up cloud-init (23.3.3-0ubuntu0~23.10.1) ...
Processing triggers for rsyslog (8.2306.0-2ubuntu2) ...
Processing triggers for man-db (2.11.2-3) ...
 --- Assert apt-get update NOT called across clean reboot on proposed pkg
...
status: done
boot_status_code: enabled-by-generator
last_update: Fri, 17 Nov 2023 16:38:43 +0000
detail:
DataSourceLXD
SUCCESS: found NO apt-get update logs per boot on empty user-data