Bug 2024541
Summary: | libguestfs should add libvirt-daemon-driver-storage as dependency package on rhel9 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | mxie <mxie> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 9.0 | CC: | berrange, chhu, hongzliu, juzhou, kkiwi, lersek, mzhan, rjones, tyan, tzheng, virt-maint, vwu, xiaodwan, yafu, yoguo |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-22 16:40:06 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
mxie@redhat.com
2021-11-18 10:04:00 UTC
Hi mxie, Seems virtstoraged is provided by libvirt-daemon-driver-storage-core package not libvirt-daemon-driver-storage. I can start virtstoraged without libvirt-daemon-driver-storage. On rhel9 host: # systemctl status virtstoraged.socket ● virtstoraged.socket - Libvirt storage local socket Loaded: loaded (/usr/lib/systemd/system/virtstoraged.socket; disabled; vendor preset: enabled) Active: active (listening) since Thu 2021-11-18 07:46:54 EST; 14h ago Triggers: ● virtstoraged.service Listen: /run/libvirt/virtstoraged-sock (Stream) CGroup: /system.slice/virtstoraged.socket Nov 18 07:46:54 dell-per740-37.lab.eng.pek2.redhat.com systemd[1]: Listening on Libvirt storage local socket. # rpm -q libvirt-daemon-driver-storage package libvirt-daemon-driver-storage is not installed # yum provides virtstoraged ... Last metadata expiration check: 2:59:40 ago on Thu 18 Nov 2021 06:48:37 PM EST. libvirt-daemon-driver-storage-core-7.9.0-1.el9.x86_64 : Storage driver plugin including base backends for the libvirtd daemon Repo : @System Matched from: Filename : /usr/sbin/virtstoraged # virt-v2v -ic vpx://vsphere.local%5cAdministrator.198.169/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.2 -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78 -ip /home/passwd esx7.0-win11-x86_64 [ 0.0] Opening the source -i libvirt -ic vpx://vsphere.local%5cAdministrator.198.169/data/10.73.199.217/?no_verify=1 esx7.0-win11-x86_64 -it vddk -io vddk-libdir=/home/vddk7.0.2 -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78 [ 1.8] Creating an overlay to protect the source from being modified [ 3.0] Opening the overlay [ 8.9] Inspecting the overlay [ 14.4] Checking for sufficient free disk space in the guest [ 14.4] Converting Windows 10 Enterprise to run on KVM virt-v2v: warning: there is no QXL driver for this version of Windows (10.0 x86_64). virt-v2v looks for this driver in /usr/share/virtio-win/virtio-win.iso The guest will be configured to use a basic VGA display driver. virt-v2v: This guest has virtio drivers installed. [ 22.8] Mapping filesystem data to avoid copying unused and blank areas [ 24.3] Closing the overlay [ 24.6] Assigning disks to buses [ 24.6] Checking if the guest needs BIOS or UEFI to boot [ 24.6] Initializing the target -o libvirt -os default [ 24.7] Copying disk 1/1 to /var/lib/libvirt/images/esx7.0-win11-x86_64-sda (raw) (100.00/100%) [ 320.0] Creating output metadata [ 320.1] Finishing off (In reply to YongkuiGuo from comment #1) > Hi mxie, > > Seems virtstoraged is provided by libvirt-daemon-driver-storage-core package > not libvirt-daemon-driver-storage. I can start virtstoraged without > libvirt-daemon-driver-storage. The default libvirt mode is modular daemon since redhat-release-9.0-2.8.el9 and libvirt-7.7.0, besides, the new feature "libvirt modular daemon" also has relationship with systemd version, could you please check you redhat-release and systemd version of your rhel9 server, it's better to reinstall the OS with latest rhel9 to check. Thanks! (In reply to mxie from comment #2) > (In reply to YongkuiGuo from comment #1) > > Hi mxie, > > > > Seems virtstoraged is provided by libvirt-daemon-driver-storage-core package > > not libvirt-daemon-driver-storage. I can start virtstoraged without > > libvirt-daemon-driver-storage. I found the difference between installing libvirt-daemon-driver-storage and not installing libvirt-daemon-driver-storage: 1.If libvirt-daemon-driver-storage related packages are installed, virtstoraged.socket can be started automatically after rebooting OS, If libvirt-daemon-driver-storage related packages are NOT installed, virtstoraged.socket can't be started automatically after rebooting OS, need to start virtstoraged.socket manually. 2. Uninstalling libvirt-daemon-driver-storage will influence virtstoraged.socket status, virtstoraged.socket status will be inactive after uninstalling libvirt-daemon-driver-storage # systemctl status virtstoraged.socket ● virtstoraged.socket - Libvirt storage local socket Loaded: loaded (/usr/lib/systemd/system/virtstoraged.socket; enabled; vendor preset: enabled) Active: active (listening) since Sat 2021-11-20 00:28:22 CST; 7min ago Triggers: ● virtstoraged.service Listen: /run/libvirt/virtstoraged-sock (Stream) CGroup: /system.slice/virtstoraged.socket # yum remove libvirt-daemon-driver-storage -y Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Dependencies resolved. ==================================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================================== Removing: libvirt-daemon-driver-storage x86_64 7.9.0-1.el9 @libvirt_ci 0 Removing unused dependencies: boost-iostreams x86_64 1.75.0-6.el9 @rhel9-appstream 83 k boost-system x86_64 1.75.0-6.el9 @rhel9-appstream 16 k boost-thread x86_64 1.75.0-6.el9 @rhel9-appstream 121 k librados2 x86_64 2:16.2.4-5.el9 @libvirt_ci 12 M librbd1 x86_64 2:16.2.4-5.el9 @libvirt_ci 10 M libvirt-daemon-driver-storage-disk x86_64 7.9.0-1.el9 @libvirt_ci 32 k libvirt-daemon-driver-storage-iscsi x86_64 7.9.0-1.el9 @libvirt_ci 24 k libvirt-daemon-driver-storage-logical x86_64 7.9.0-1.el9 @libvirt_ci 32 k libvirt-daemon-driver-storage-mpath x86_64 7.9.0-1.el9 @libvirt_ci 16 k libvirt-daemon-driver-storage-rbd x86_64 7.9.0-1.el9 @libvirt_ci 44 k libvirt-daemon-driver-storage-scsi x86_64 7.9.0-1.el9 @libvirt_ci 24 k # systemctl status virtstoraged.socket ○ virtstoraged.socket - Libvirt storage local socket Loaded: loaded (/usr/lib/systemd/system/virtstoraged.socket; enabled; vendor preset: enabled) Active: inactive (dead) since Sat 2021-11-20 00:40:31 CST; 49s ago Triggers: ● virtstoraged.service Listen: /run/libvirt/virtstoraged-sock (Stream) 3.But Yongkui are right, virtstoraged.socket can be started manually without installing libvirt-daemon-driver-storage, yafu, could you please help to confirm if virtstoraged socket/service needs libvirt-daemon-driver-storage-* packages? (In reply to mxie from comment #3) > (In reply to mxie from comment #2) > > (In reply to YongkuiGuo from comment #1) > > > Hi mxie, > > > > > > Seems virtstoraged is provided by libvirt-daemon-driver-storage-core package > > > not libvirt-daemon-driver-storage. I can start virtstoraged without > > > libvirt-daemon-driver-storage. > > I found the difference between installing libvirt-daemon-driver-storage and > not installing libvirt-daemon-driver-storage: > > 1.If libvirt-daemon-driver-storage related packages are installed, > virtstoraged.socket can be started automatically after rebooting OS, If > libvirt-daemon-driver-storage related packages are NOT installed, > virtstoraged.socket can't be started automatically after rebooting OS, need > to start virtstoraged.socket manually. > > 2. Uninstalling libvirt-daemon-driver-storage will influence > virtstoraged.socket status, virtstoraged.socket status will be inactive > after uninstalling libvirt-daemon-driver-storage > > # systemctl status virtstoraged.socket > ● virtstoraged.socket - Libvirt storage local socket > Loaded: loaded (/usr/lib/systemd/system/virtstoraged.socket; enabled; > vendor preset: enabled) > Active: active (listening) since Sat 2021-11-20 00:28:22 CST; 7min ago > Triggers: ● virtstoraged.service > Listen: /run/libvirt/virtstoraged-sock (Stream) > CGroup: /system.slice/virtstoraged.socket > > # yum remove libvirt-daemon-driver-storage -y > Updating Subscription Management repositories. > Unable to read consumer identity > > This system is not registered with an entitlement server. You can use > subscription-manager to register. > > Dependencies resolved. > ============================================================================= > ======================================================= > Package Architecture > Version Repository Size > ============================================================================= > ======================================================= > Removing: > libvirt-daemon-driver-storage x86_64 > 7.9.0-1.el9 @libvirt_ci 0 > Removing unused dependencies: > boost-iostreams x86_64 > 1.75.0-6.el9 @rhel9-appstream 83 k > boost-system x86_64 > 1.75.0-6.el9 @rhel9-appstream 16 k > boost-thread x86_64 > 1.75.0-6.el9 @rhel9-appstream 121 k > librados2 x86_64 > 2:16.2.4-5.el9 @libvirt_ci 12 M > librbd1 x86_64 > 2:16.2.4-5.el9 @libvirt_ci 10 M > libvirt-daemon-driver-storage-disk x86_64 > 7.9.0-1.el9 @libvirt_ci 32 k > libvirt-daemon-driver-storage-iscsi x86_64 > 7.9.0-1.el9 @libvirt_ci 24 k > libvirt-daemon-driver-storage-logical x86_64 > 7.9.0-1.el9 @libvirt_ci 32 k > libvirt-daemon-driver-storage-mpath x86_64 > 7.9.0-1.el9 @libvirt_ci 16 k > libvirt-daemon-driver-storage-rbd x86_64 > 7.9.0-1.el9 @libvirt_ci 44 k > libvirt-daemon-driver-storage-scsi x86_64 > 7.9.0-1.el9 @libvirt_ci 24 k > > > # systemctl status virtstoraged.socket > ○ virtstoraged.socket - Libvirt storage local socket > Loaded: loaded (/usr/lib/systemd/system/virtstoraged.socket; enabled; > vendor preset: enabled) > Active: inactive (dead) since Sat 2021-11-20 00:40:31 CST; 49s ago > Triggers: ● virtstoraged.service > Listen: /run/libvirt/virtstoraged-sock (Stream) > > 3.But Yongkui are right, virtstoraged.socket can be started manually without > installing libvirt-daemon-driver-storage, yafu, could you please help to > confirm if virtstoraged socket/service needs > libvirt-daemon-driver-storage-* packages? Virtsotraged.scoket just needs libvirt-daemon-driver-storage-core and other libvirt-daemon-drivers-storage* pkgs are needed if using specified backend storage. > Virtsotraged.scoket just needs libvirt-daemon-driver-storage-core and other > libvirt-daemon-drivers-storage* pkgs are needed if using specified backend > storage. Hi Fuyan, Thanks for your reply, could you please help to answer below two questions which are described in step1 and step2 of comment3? 1. Why can't virtstoraged.socket be started automatically after rebooting OS if libvirt-daemon-driver-storage related packages are NOT installed? 2. Why does virtstoraged.socket become inactive after uninstalling libvirt-daemon-driver-storage-* packages? (In reply to mxie from comment #5) > > Virtsotraged.scoket just needs libvirt-daemon-driver-storage-core and other > > libvirt-daemon-drivers-storage* pkgs are needed if using specified backend > > storage. > > Hi Fuyan, > > Thanks for your reply, could you please help to answer below two > questions which are described in step1 and step2 of comment3? > > 1. Why can't virtstoraged.socket be started automatically after rebooting OS > if libvirt-daemon-driver-storage related packages are NOT installed? > > 2. Why does virtstoraged.socket become inactive after uninstalling > libvirt-daemon-driver-storage-* packages? These 2 questions are the same root cause, virtstoraged.socket is 'disabled' by default if only installing libvirt-daemon-driver-storage-core pkg, so rebooting os will not start virtstorged.socket. If installing all libvirt-daemon-driver-storage-* pkgs, virtstorged.socket is 'enabled' by default. @Daniel, Would you help to check whether it is the expected result please? Thanks. (In reply to mxie from comment #3) > (In reply to mxie from comment #2) > 1.If libvirt-daemon-driver-storage related packages are installed, > virtstoraged.socket can be started automatically after rebooting OS, If > libvirt-daemon-driver-storage related packages are NOT installed, > virtstoraged.socket can't be started automatically after rebooting OS, need > to start virtstoraged.socket manually. The virstoraged daemon and systemd units are provided by 'libvirt-daemon-driver-storage-core' RPM. If that package is installed, then the redhat-release package systemd presets will cause it to be automatically started on boot. The 'libvirt-daemon-driver-storage' RPM is an empty package that merely has dependancies on 'libvirt-daemon-driver-storage-core' and the extra storage pool drivers. It shouldn't matter whether this is installed or not, only the -core package matters for daemon startup > 2. Uninstalling libvirt-daemon-driver-storage will influence > virtstoraged.socket status, virtstoraged.socket status will be inactive > after uninstalling libvirt-daemon-driver-storage > > # systemctl status virtstoraged.socket > ● virtstoraged.socket - Libvirt storage local socket > Loaded: loaded (/usr/lib/systemd/system/virtstoraged.socket; enabled; > vendor preset: enabled) > Active: active (listening) since Sat 2021-11-20 00:28:22 CST; 7min ago > Triggers: ● virtstoraged.service > Listen: /run/libvirt/virtstoraged-sock (Stream) > CGroup: /system.slice/virtstoraged.socket > > # yum remove libvirt-daemon-driver-storage -y > Updating Subscription Management repositories. > Unable to read consumer identity > > This system is not registered with an entitlement server. You can use > subscription-manager to register. > > Dependencies resolved. > ============================================================================= > ======================================================= > Package Architecture > Version Repository Size > ============================================================================= > ======================================================= > Removing: > libvirt-daemon-driver-storage x86_64 > 7.9.0-1.el9 @libvirt_ci 0 > Removing unused dependencies: > boost-iostreams x86_64 > 1.75.0-6.el9 @rhel9-appstream 83 k > boost-system x86_64 > 1.75.0-6.el9 @rhel9-appstream 16 k > boost-thread x86_64 > 1.75.0-6.el9 @rhel9-appstream 121 k > librados2 x86_64 > 2:16.2.4-5.el9 @libvirt_ci 12 M > librbd1 x86_64 > 2:16.2.4-5.el9 @libvirt_ci 10 M > libvirt-daemon-driver-storage-disk x86_64 > 7.9.0-1.el9 @libvirt_ci 32 k > libvirt-daemon-driver-storage-iscsi x86_64 > 7.9.0-1.el9 @libvirt_ci 24 k > libvirt-daemon-driver-storage-logical x86_64 > 7.9.0-1.el9 @libvirt_ci 32 k > libvirt-daemon-driver-storage-mpath x86_64 > 7.9.0-1.el9 @libvirt_ci 16 k > libvirt-daemon-driver-storage-rbd x86_64 > 7.9.0-1.el9 @libvirt_ci 44 k > libvirt-daemon-driver-storage-scsi x86_64 > 7.9.0-1.el9 @libvirt_ci 24 k THis shouldn't make a difference to whether virtstoraged starts or not, as long as 'libvirt-daemon-driver-storage-core' remains installed. > # systemctl status virtstoraged.socket > ○ virtstoraged.socket - Libvirt storage local socket > Loaded: loaded (/usr/lib/systemd/system/virtstoraged.socket; enabled; > vendor preset: enabled) > Active: inactive (dead) since Sat 2021-11-20 00:40:31 CST; 49s ago > Triggers: ● virtstoraged.service > Listen: /run/libvirt/virtstoraged-sock (Stream) > > 3.But Yongkui are right, virtstoraged.socket can be started manually without > installing libvirt-daemon-driver-storage, yafu, could you please help to > confirm if virtstoraged socket/service needs > libvirt-daemon-driver-storage-* packages? Again, what matters is whether 'libvirt-daemon-driver-storage-core' is installed. > The virstoraged daemon and systemd units are provided by
> 'libvirt-daemon-driver-storage-core' RPM.
>
> If that package is installed, then the redhat-release package systemd
> presets will cause it to be automatically started on boot.
>
> The 'libvirt-daemon-driver-storage' RPM is an empty package that merely has
> dependancies on 'libvirt-daemon-driver-storage-core' and the extra storage
> pool drivers. It shouldn't matter whether this is installed or not, only the
> -core package matters for daemon startup
So "virtstoraged.socket is 'disabled' by default if only libvirt-daemon-driver-storage-core is installed", it is a bug, right?
(In reply to mxie from comment #8) > So "virtstoraged.socket is 'disabled' by default if only > libvirt-daemon-driver-storage-core is installed", it is a bug, right? Yes, once libvirt-daemon-driver-storage-core is installed, virtstoraged.socket should start automatically on the *next* boot of the machine. NB, this assumes you installed lbivirt-daemon-driver-storage-core /after/ redhat-release >= 9.0-2.9 is installed mxie: Given what Dan said above, is this a duplicate of bug 2018358 (already fixed)? (In reply to Richard W.M. Jones from comment #10) > mxie: Given what Dan said above, is this a duplicate of bug 2018358 (already > fixed)? Not a duplicate, but the bug can be closed as NOTABUG, use bug2025644 to track the problem of comment3 |