Using a modified version of the script mentioned in the test plan:
#!/bin/bash
for RELEASE in bionic focal jammy kinetic; do
echo "### test SRU for $RELEASE"
lxc launch ubuntu-daily:$RELEASE sru-$RELEASE;
lxc exec sru-$RELEASE -- cloud-init status --wait
echo "### update to -proposed pocket"
lxc file push setup_proposed.sh sru-$RELEASE/
lxc exec sru-$RELEASE -- chmod 777 /setup_proposed.sh
lxc exec sru-$RELEASE -- /setup_proposed.sh &>/dev/null
lxc exec sru-$RELEASE -- cloud-init --version
echo "### boot clean and validate cloud-init status --wait"
lxc exec sru-$RELEASE -- cloud-init clean --logs --reboot &> /dev/null
while lxc exec sru-$RELEASE -- test ! -f /var/log/cloud-init.log ; do
lxc exec sru-$RELEASE -- cloud-init status --wait &> /dev/null
done
lxc exec sru-$RELEASE -- grep Traceback /var/log/cloud-init.log
done
I do not see the bug in the proposed version:
newt:script $ ./test_stuff.sh | tee log.txt
### test SRU for bionic
Creating sru-bionic
Starting sru-bionic
....................
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-0ubuntu0~18.04.1
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running
### test SRU for focal
Creating sru-focal
Starting sru-focal
.............................
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-0ubuntu0~20.04.1
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running
### test SRU for jammy
Creating sru-jammy
Starting sru-jammy
..........................
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-0ubuntu0~22.04.1
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running
### test SRU for kinetic
Creating sru-kinetic
Starting sru-kinetic
.......................................
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-0ubuntu0~22.10.1
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running
Using a modified version of the script mentioned in the test plan:
#!/bin/bash
for RELEASE in bionic focal jammy kinetic; do daily:$ RELEASE sru-$RELEASE; cloud-init. log ; do cloud-init. log
echo "### test SRU for $RELEASE"
lxc launch ubuntu-
lxc exec sru-$RELEASE -- cloud-init status --wait
echo "### update to -proposed pocket"
lxc file push setup_proposed.sh sru-$RELEASE/
lxc exec sru-$RELEASE -- chmod 777 /setup_proposed.sh
lxc exec sru-$RELEASE -- /setup_proposed.sh &>/dev/null
lxc exec sru-$RELEASE -- cloud-init --version
echo "### boot clean and validate cloud-init status --wait"
lxc exec sru-$RELEASE -- cloud-init clean --logs --reboot &> /dev/null
while lxc exec sru-$RELEASE -- test ! -f /var/log/
lxc exec sru-$RELEASE -- cloud-init status --wait &> /dev/null
done
lxc exec sru-$RELEASE -- grep Traceback /var/log/
done
I do not see the bug in the proposed version:
newt:script $ ./test_stuff.sh | tee log.txt ....... ...... 0ubuntu0~ 18.04.1 ....... ....... ....... . 0ubuntu0~ 20.04.1 ....... ....... ..... 0ubuntu0~ 22.04.1 ....... ....... ....... ....... .... 0ubuntu0~ 22.10.1
### test SRU for bionic
Creating sru-bionic
Starting sru-bionic
.......
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running
### test SRU for focal
Creating sru-focal
Starting sru-focal
.......
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running
### test SRU for jammy
Creating sru-jammy
Starting sru-jammy
.......
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running
### test SRU for kinetic
Creating sru-kinetic
Starting sru-kinetic
.......
status: done
### update to -proposed pocket
/usr/bin/cloud-init 22.4.2-
### boot clean and validate cloud-init status --wait
Error: Instance is not running
Error: Instance is not running