Bug 2001323
| Summary: | Libvirt cannot get disk info of the guest installed on vmware when disk Minor device number >15 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | John Ferlan <jferlan> |
| Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
| libvirt sub component: | General | QA Contact: | mxie <mxie> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | chhu, hhan, jdenemar, juzhou, lizhu, lmen, mprivozn, mxie, mzhan, rjones, tzheng, virt-maint, xiaodwan, xuzhang, yanqzhan, zili |
| Version: | 9.0 | Keywords: | Triaged, Upstream |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-7.7.0-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1738392 | Environment: | |
| Last Closed: | 2022-05-17 12:45:08 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: | 7.7.0 |
| Embargoed: | |||
| Bug Depends On: | 1738392 | ||
| Bug Blocks: | |||
|
Description
John Ferlan
2021-09-05 14:14:49 UTC
Reproduce the bug with libvirt-client-7.6.0-2.el9.x86_64 Steps to reproduce: 1.Prepare a guest with more than 16 disks on VMware ESXi host, then use virsh to dump the libvirtxml of the guest, Can see only 16 disks are shown in guest libvirtxml after dumping by virsh # virsh -c vpx://root.198.169/data/10.73.199.217/?no_verify=1 dumpxml Auto-esx7.0-rhel8.5-with-more-than-16disks Enter root's password for 10.73.198.169: <domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'> <name>Auto-esx7.0-rhel8.5-with-more-than-16disks</name> <uuid>4203a96c-ea55-e026-04f3-b690e22ca349</uuid> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <vcpu placement='static'>1</vcpu> <cputune> <shares>1000</shares> </cputune> <os> <type arch='x86_64'>hvm</type> </os> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks.vmdk'/> <target dev='sda' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_2.vmdk'/> <target dev='sdb' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_3.vmdk'/> <target dev='sdc' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_4.vmdk'/> <target dev='sdd' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_5.vmdk'/> <target dev='sde' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='4'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_6.vmdk'/> <target dev='sdf' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='5'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_7.vmdk'/> <target dev='sdg' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='6'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_8.vmdk'/> <target dev='sdh' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='8'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_9.vmdk'/> <target dev='sdi' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='9'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_10.vmdk'/> <target dev='sdj' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='10'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_11.vmdk'/> <target dev='sdk' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='11'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_12.vmdk'/> <target dev='sdl' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='12'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_13.vmdk'/> <target dev='sdm' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='13'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_14.vmdk'/> <target dev='sdn' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='14'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_15.vmdk'/> <target dev='sdo' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='15'/> </disk> <controller type='scsi' index='0' model='vmpvscsi'/> <interface type='bridge'> <mac address='00:50:56:83:90:c1' type='generated'/> <source bridge='VM Network'/> <model type='vmxnet3'/> </interface> <video> <model type='vmvga' vram='8192' primary='yes'/> </video> </devices> <vmware:datacenterpath>data</vmware:datacenterpath> <vmware:moref>vm-6189</vmware:moref> </domain> Test the bug with libvirt-client-7.7.0-1.el9.x86_64 Steps: 1.Prepare a guest with more than 16 disks on VMware ESXi host, then use virsh to dump the libvirtxml of the guest # virsh -c vpx://root.198.169/data/10.73.199.217/?no_verify=1 dumpxml Auto-esx7.0-rhel8.5-with-more-than-16disks Enter root's password for 10.73.198.169: <domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'> <name>Auto-esx7.0-rhel8.5-with-more-than-16disks</name> <uuid>4203a96c-ea55-e026-04f3-b690e22ca349</uuid> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <vcpu placement='static'>1</vcpu> <cputune> <shares>1000</shares> </cputune> <os> <type arch='x86_64'>hvm</type> </os> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks.vmdk'/> <target dev='sda' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_2.vmdk'/> <target dev='sdb' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_3.vmdk'/> <target dev='sdc' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_4.vmdk'/> <target dev='sdd' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_5.vmdk'/> <target dev='sde' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='4'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_6.vmdk'/> <target dev='sdf' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='5'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_7.vmdk'/> <target dev='sdg' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='6'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_8.vmdk'/> <target dev='sdh' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='8'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_9.vmdk'/> <target dev='sdi' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='9'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_10.vmdk'/> <target dev='sdj' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='10'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_11.vmdk'/> <target dev='sdk' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='11'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_12.vmdk'/> <target dev='sdl' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='12'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_13.vmdk'/> <target dev='sdm' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='13'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_14.vmdk'/> <target dev='sdn' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='14'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_15.vmdk'/> <target dev='sdo' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='15'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_16.vmdk'/> <target dev='sdp' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='16'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_17.vmdk'/> <target dev='sdq' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='17'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_18.vmdk'/> <target dev='sdr' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='18'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_19.vmdk'/> <target dev='sds' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='19'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_20.vmdk'/> <target dev='sdt' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='20'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_21.vmdk'/> <target dev='sdu' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='21'/> </disk> <controller type='scsi' index='0' model='vmpvscsi'/> <interface type='bridge'> <mac address='00:50:56:83:90:c1' type='generated'/> <source bridge='VM Network'/> <model type='vmxnet3'/> </interface> <video> <model type='vmvga' vram='8192' primary='yes'/> </video> </devices> <vmware:datacenterpath>data</vmware:datacenterpath> <vmware:moref>vm-6189</vmware:moref> </domain> Result: Virsh can dump all disks(more than 16) of guest from VMware now Verify the bug with libvirt-client-7.8.0-1.el9.x86_64 Steps: 1.Prepare a guest with more than 16 disks on VMware ESXi host, then use virsh to dump the libvirtxml of the guest # virsh -c vpx://root.198.169/data/10.73.199.217/?no_verify=1 dumpxml Auto-esx7.0-rhel8.5-with-more-than-16disks Enter root's password for 10.73.198.169: <domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'> <name>Auto-esx7.0-rhel8.5-with-more-than-16disks</name> .... </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_2.vmdk'/> <target dev='sdb' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_3.vmdk'/> <target dev='sdc' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> ..... ..... <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_20.vmdk'/> <target dev='sdt' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='20'/> </disk> <disk type='file' device='disk'> <source file='[datastore1] Auto-esx7.0-rhel8.5-with-16disks/Auto-esx7.0-rhel8.5-with-16disks_21.vmdk'/> <target dev='sdu' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='21'/> </disk> ..... Result: Virsh can dump all disks(more than 16) of guest from VMware, move the bug from ON_QA to VERIFIED Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: libvirt), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:2390 |