Bug 2033491
| Summary: | [Machines] vm created by command with non-root user can not be listed on Virtual Machines page | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Xianghua Chen <xchen> |
| Component: | util-linux | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED NOTABUG | QA Contact: | Radka Brychtova <rskvaril> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | kkoukiou, kzak, skobyda, wshi, ymao, yunyang |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | Flags: | xchen:
needinfo?
(skobyda) |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-03 07:56:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Xianghua Chen
2021-12-17 02:05:19 UTC
It's ok on RHEL8.7 per yunyang's comments, with cockpit-machines-270-1.el8.noarch + RHEL-8.7.0-20220605.0 BaseOS x86_64 Only exist on RHEL9.1 now: cockpit-machines-269-1.el9.noarch + RHEL-9.1.0-20220608.0 The bug is that running `su - username` does not start a proper Linux session, pam_systemd, and such -- and thus no $XDG_RUNTIME_DIR IN specific to this bug, the virtqemud socket that gets started when the cockpit-machine page loads, is located at $XDG_RUNTIME_DIR. When the virt-install (or any virt-command runs from the CLI inside the `su - admin` session, it looks at XDG_RUNTIME_DIR, and since that isn't set, it just makes up some path in ~/.cache/libvirt/ The two sockets are completely independent from each other. Minimal reproducer: $ virsh -c qemu:///list --all $ env -u XDG_RUNTIME_DIR virsh -c qemu:///list --all The above two will create two separate daemons.The first one's socket is in /run/user/1000, the second in ~/.cache/libvirt/ Try 'runuser - username', it uses pam_systemd on Fedora/RHEL # grep systemd /etc/pam.d/runuser-l -session optional pam_systemd.so After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. Closing as WONTFIX. This issue is not reflecting some mainstream use case, and the user could use the UI and the embedded terminal with the connected user and avoid this. |