Traceback in autopkgtest-virt-lxd

Bug #1984669 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Triaged
Low
Unassigned

Bug Description

When investigating a failed lxd-armhf worker unit I noticed the following in its log file:

                                                                                                           autopkgtest [01:47:47]: test test-systemd.py: [-----------------------
                                                                                                           Killed
                                                                                                           autopkgtest [01:47:55]: test process requested preparation for reboot with marker InstallOnShutdown
                                                                                                           autopkgtest-virt-lxd [01:48:00]: state saved, waiting for testbed to reboot...
                                                                                                           Unexpected error:
                                                                                                           Traceback (most recent call last):
                                                                                                             File "/home/ubuntu/autopkgtest/lib/VirtSubproc.py", line 740, in mainloop
                                                                                                               command()
                                                                                                             File "/home/ubuntu/autopkgtest/lib/VirtSubproc.py", line 669, in command
                                                                                                               r = f(c, ce)
                                                                                                             File "/home/ubuntu/autopkgtest/lib/VirtSubproc.py", line 364, in cmd_reboot
                                                                                                               caller.hook_wait_reboot(**wait_reboot_args)
                                                                                                             File "/home/ubuntu/autopkgtest/virt/autopkgtest-virt-lxd", line 229, in hook_wait_reboot
                                                                                                               if current_uptime < initial_uptime:
                                                                                                           TypeError: '<' not supported between instances of 'float' and 'NoneType'
                                                                                                           autopkgtest [01:48:14]: ERROR: testbed failure: cannot send to testbed: [Errno 32] Broken pipe

Revision history for this message
Brian Murray (brian-murray) wrote (last edit ):

The test being run was "Received request for package unattended-upgrades on kinetic/armhf; params: {'triggers': ['lsb-release-minimal/0.5-1'], 'submit-time': '2022-08-10 00:47:06'}" and that test did end up passing later - https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic/kinetic/armhf/u/unattended-upgrades/20220810_021012_94612@/log.gz

Revision history for this message
Paride Legovini (paride) wrote :

By looking at the code this can happen if running

  lxc exec container_name -- cat /proc/uptime

fails (returns nonzero). If autopkgtest-virt-lxd believes the container is up but that command fails I think it's fair to bail out, but it should be done more gracefully (not with a Traceback).

Changed in autopkgtest (Ubuntu):
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.