And now test the old vs the fixed wait script - example here is from
noble but it looks the same in all host releases. As mentioned the noble
vs plucky here is not host but guest release that we compare as that is
where the behavior changed.
1. check if guests are up and respond
paelzer@Keschdeichel 12:10:08 1 ~ uvt-kvm ssh n uptime
11:10:23 up 0 min, 1 user, load average: 0.92, 0.22, 0.07
paelzer@Keschdeichel 12:10:25 ~ uvt-kvm ssh p uptime
11:10:28 up 0 min, 2 users, load average: 0.85, 0.26, 0.09
2. check for the reported issue directly
paelzer@Keschdeichel 12:11:00 130 ~ uvt-kvm ssh n runlevel
N 5
paelzer@Keschdeichel 12:11:07 ~ uvt-kvm ssh p runlevel
unknown
=> we see that it never gets into a proper state
3. check how that translated into the hang in the wait script before the
fix
paelzer@Keschdeichel 12:11:10 1 ~ md5sum
/usr/share/uvtool/libvirt/remote-wait.sh
3bf4076b196e49e6cae83968d5b67cca /usr/share/uvtool/libvirt/remote-wait.sh
paelzer@Keschdeichel 12:11:50 ~ time uvt-kvm wait n
real 0m1,023s
user 0m0,571s
sys 0m0,120s
works for e.g. noble
Fails for plucky (I aborted it)
paelzer@Keschdeichel 12:11:54 ~ time uvt-kvm wait p
^CTraceback (most recent call last):
File "/usr/bin/uvt-kvm", line 35, in <module>
uvtool.libvirt.kvm.main_cli_wrapper(sys.argv[1:])
File "/usr/lib/python3/dist-packages/uvtool/libvirt/kvm.py", line 1118, in
main_cli_wrapper
main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/uvtool/libvirt/kvm.py", line 1113, in
main
args.func(parser, args)
File "/usr/lib/python3/dist-packages/uvtool/libvirt/kvm.py", line 1028, in
main_wait
main_wait_remote(parser, args)
File "/usr/lib/python3/dist-packages/uvtool/libvirt/kvm.py", line 972, in
main_wait_remote
ssh(
File "/usr/lib/python3/dist-packages/uvtool/libvirt/kvm.py", line 836, in ssh
result = call(
^^^^^
File "/usr/lib/python3.12/subprocess.py", line 408, in check_call
retcode = call(*popenargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 391, in call
return p.wait(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1264, in wait
return self._wait(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 2053, in _wait
(pid, sts) = self._try_wait(0)
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 2011, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
real 0m17,535s
user 0m0,537s
sys 0m0,113s
4. upgrade this machine as well to the new wait script
paelzer@Keschdeichel 12:12:40 ~ sudo apt install uvtool-libvirt -t
noble-proposed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
uvtool-libvirt
1 upgraded, 0 newly installed, 0 to remove and 175 not upgraded.
Need to get 29,6 kB of archives.
After this operation, 1.024 B of additional disk space will be used.
Get:1 http://de.archive.ubuntu.com/ubuntu noble-proposed/universe amd64
uvtool-libvirt all 0~git183-0ubuntu1.24.04.1 [29,6 kB]
Fetched 29,6 kB in 0s (162 kB/s)
(Reading database ... 352705 files and directories currently installed.)
Preparing to unpack .../uvtool-libvirt_0~git183-0ubuntu1.24.04.1_all.deb ...
Unpacking uvtool-libvirt (0~git183-0ubuntu1.24.04.1) over (0~git183-0ubuntu1)
...
Setting up uvtool-libvirt (0~git183-0ubuntu1.24.04.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
paelzer@Keschdeichel 12:13:00 ~ md5sum
/usr/share/uvtool/libvirt/remote-wait.sh
a373cc413dd803557a077b38f0cf5b09 /usr/share/uvtool/libvirt/remote-wait.sh
5. verify the new script works on old and new guests
Still working on noble guest
paelzer@Keschdeichel 12:13:19 ~ time uvt-kvm wait n
real 0m0,913s
user 0m0,537s
sys 0m0,117s
paelzer@Keschdeichel 12:13:54 ~ time uvt-kvm wait p
running
real 0m0,807s
user 0m0,513s
sys 0m0,090s
Works - setting verified for all releases that share the wait code.
** Tags removed: verification-needed verification-needed-focal
verification-needed-jammy verification-needed-noble verification-needed-oracular
** Tags added: verification-done verification-done-focal
verification-done-jammy verification-done-noble verification-done-oracular
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2095042
Title:
uvt-kvm remote-wait-script doesn't work from Plucky onwards
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/2095042/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs