Bug 1212396 - virsh list is frozen
Summary: virsh list is frozen
Status: RESOLVED FIXED
: 1212480 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Virtualization:Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal with 10 votes (vote)
Target Milestone: ---
Assignee: virt-bugs list
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-15 07:02 UTC by Felix Niederwanger
Modified: 2023-06-27 07:05 UTC (History)
11 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
journal (143.67 KB, text/plain)
2023-06-15 07:02 UTC, Felix Niederwanger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Niederwanger 2023-06-15 07:02:43 UTC
Created attachment 867589 [details]
journal

Sind updating to TW snapshot 20230612 (+/- 2), listing of virtual machines via `virsh list` or virt-manager appears frozen.

> virsh list
> # never list anything, even after waiting for 5+ minutes.

After encountering the issue the first time I reconfigured my system according to https://doc.opensuse.org/documentation/leap/virtualization/html/book-virtualization/cha-libvirt-overview.html, i.e.:

> systemctl enable libvirtd.socket
> systemctl enable libvirtd-ro.socket
> systemctl enable libvirtd-admin.socket
> systemctl disable libvirtd-tcp.socket
> systemctl disable libvirtd-tlt.socket
> systemctl disable libvirtd-tls.socket

## Workaround

Restarting the libvirtd.service resolves the issue temporarily, however after some time, `virsh list` and virt-manager are again choking on "Connecting ..."

> systemctl restart libvirtd.service

## Logs

I'm attaching the output of `journalctl -e`.
Comment 1 Felix Niederwanger 2023-06-15 07:36:10 UTC
Note that this could be linked to https://bugzilla.suse.com/show_bug.cgi?id=1212195, however Comment 9 therein (https://bugzilla.suse.com/show_bug.cgi?id=1212195#c9) makes me believe that this is a different issue, as I'm still using the monolithic daemon.
Comment 2 James Fehlig 2023-06-15 16:49:10 UTC
(In reply to Felix Niederwanger from comment #0)
> Created attachment 867589 [details]
> journal
> 
> Sind updating to TW snapshot 20230612 (+/- 2), listing of virtual machines
> via `virsh list` or virt-manager appears frozen.
> 
> > virsh list
> > # never list anything, even after waiting for 5+ minutes.
> 
> After encountering the issue the first time I reconfigured my system
> according to
> https://doc.opensuse.org/documentation/leap/virtualization/html/book-
> virtualization/cha-libvirt-overview.html, i.e.:
> 
> > systemctl enable libvirtd.socket
> > systemctl enable libvirtd-ro.socket
> > systemctl enable libvirtd-admin.socket
> > systemctl disable libvirtd-tcp.socket
> > systemctl disable libvirtd-tlt.socket
> > systemctl disable libvirtd-tls.socket
> 
> ## Workaround
> 
> Restarting the libvirtd.service resolves the issue temporarily, however
> after some time, `virsh list` and virt-manager are again choking on
> "Connecting ..."

This behavior sounds like https://github.com/systemd/systemd/issues/27953. I just updated one of my TW machines and it now has systemd 253.5. Maybe I'll see the issue too. There's a patch for systemd in this PR https://github.com/systemd/systemd/pull/28035
Comment 3 dev 2023-06-20 22:12:45 UTC
(In reply to James Fehlig from comment #2)
> ...
> This behavior sounds like https://github.com/systemd/systemd/issues/27953. I
> just updated one of my TW machines and it now has systemd 253.5. Maybe I'll
> see the issue too. There's a patch for systemd in this PR
> https://github.com/systemd/systemd/pull/28035

https://github.com/systemd/systemd/issues/27953 is now fixed upstream via https://github.com/systemd/systemd/pull/28000 which reverted the buggy commit that seems to have been the root cause of the regression.

i'm unfamiliar with the factory build and release process. what's the process of requesting that this fix from upstream be incorporated?
Comment 4 James Fehlig 2023-06-20 22:17:27 UTC
(In reply to dev from comment #3)
> (In reply to James Fehlig from comment #2)
> > ...
> > This behavior sounds like https://github.com/systemd/systemd/issues/27953. I
> > just updated one of my TW machines and it now has systemd 253.5. Maybe I'll
> > see the issue too. There's a patch for systemd in this PR
> > https://github.com/systemd/systemd/pull/28035
> 
> https://github.com/systemd/systemd/issues/27953 is now fixed upstream via
> https://github.com/systemd/systemd/pull/28000 which reverted the buggy
> commit that seems to have been the root cause of the regression.
> 
> i'm unfamiliar with the factory build and release process. what's the
> process of requesting that this fix from upstream be incorporated?

We can ask the systemd-maintainers to add the patch to the Factory package.
Comment 5 Franck Bui 2023-06-21 13:19:25 UTC
The fix/revert has just been submitted to Factory: https://build.opensuse.org/request/show/1094372
Comment 6 James Fehlig 2023-06-21 17:34:23 UTC
(In reply to Franck Bui from comment #5)
> The fix/revert has just been submitted to Factory:
> https://build.opensuse.org/request/show/1094372

Thanks! This fixed the issue for me. I'll let Felix give it a try and ensure it fixes the issue in his environment before closing.
Comment 7 James Fehlig 2023-06-21 20:40:06 UTC
*** Bug 1212480 has been marked as a duplicate of this bug. ***
Comment 8 Felix Niederwanger 2023-06-26 08:17:27 UTC
Hey James,

sorry, I was on a trail in Norway last week with no laptop and internet :-)

After installing TW snapshot 20230624 the issue appears as resolved on my laptop. I think we can close this as resolved.
Comment 9 James Fehlig 2023-06-26 17:08:57 UTC
(In reply to Felix Niederwanger from comment #8)
> Hey James,
> 
> sorry, I was on a trail in Norway last week with no laptop and internet :-)

Nice!

> After installing TW snapshot 20230624 the issue appears as resolved on my
> laptop. I think we can close this as resolved.

Yes, snapshot 20230624 contains the systemd request referenced in #5. I think we can close this bug now and handle any residual libvirt modular daemon issues (like adding the various sockets to openSUSE presets) in bug#1212195.
Comment 10 Felix Niederwanger 2023-06-27 07:05:07 UTC
Thanks for the fix!