RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1913818 - Report logical_name for disks without mounted file-system [rhel-8.3.0.z]
Summary: Report logical_name for disks without mounted file-system [rhel-8.3.0.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.2
Hardware: All
OS: All
urgent
urgent
Target Milestone: rc
: 8.0
Assignee: Marc-Andre Lureau
QA Contact: dehanmeng
URL:
Whiteboard:
Depends On: 1859494
Blocks: 1836661 1916159
TreeView+ depends on / blocked
 
Reported: 2021-01-07 16:47 UTC by RHEL Program Management Team
Modified: 2024-10-01 17:17 UTC (History)
15 users (show)

Fixed In Version: qemu-kvm-4.2.0-34.module+el8.3.0+9828+7aab3355.3
Doc Type: Enhancement
Doc Text:
Clone Of: 1859494
Environment:
Last Closed: 2021-02-16 14:28:30 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 9 dehanmeng 2021-02-06 08:13:23 UTC
Verify with version qemu-kvm-4.2.0-34.module+el8.3.0+9828+7aab3355.3
Steps to Reproduce:

1.Start guest with virtio serial and start guest agent inside the guest and add two disks.
2.execute guest-get-disks in the unix socked, but there are some test situation like following items:
[root@dell-per440-06 qemu-kvm]# nc -U /tmp/helloworld2
{"execute":"guest-ping"}
{"return": {}}
{"execute":"guest-ping"}
{"return": {}}
{"execute":"guest-info"}
{"return": {"version": "4.2.0", "supported_commands": [{"enabled": true, "name": "guest-get-osinfo", "success-response": true}, {"enabled": true, "name": "guest-get-timezone", "success-response": true}, {"enabled": true, "name": "guest-get-users", "success-response": true}, {"enabled": true, "name": "guest-get-host-name", "success-response": true}, {"enabled": false, "name": "guest-exec", "success-response": true}, {"enabled": false, "name": "guest-exec-status", "success-response": true}, {"enabled": true, "name": "guest-get-memory-block-info", "success-response": true}, {"enabled": true, "name": "guest-set-memory-blocks", "success-response": true}, {"enabled": true, "name": "guest-get-memory-blocks", "success-response": true}, {"enabled": true, "name": "guest-set-user-password", "success-response": true}, {"enabled": true, "name": "guest-get-fsinfo", "success-response": true}, {"enabled": true, "name": "guest-get-disks", "success-response": true},  ...
{"execute":"guest-get-disks"}
{"return": [{"name": "/dev/vda", "dependencies": [], "partition": false, "address": {"bus-type": "virtio", "bus": 0, "unit": 0, "pci-controller": {"bus": 0, "slot": 6, "domain": 0, "function": 0}, "dev": "/dev/vda", "target": 0}}, {"name": "/dev/sda", "dependencies": [], "partition": false, "address": {"serial": "0QEMU_QEMU_HARDDISK_kk", "bus-type": "scsi", "bus": 0, "unit": 0, "pci-controller": {"bus": 4, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/sda", "target": 0}}, {"name": "/dev/dm-0", "dependencies": ["/dev/vdb2"], "partition": false, "alias": "rhel_bootp--73--75--166-root"}, {"name": "/dev/vdb1", "dependencies": ["/dev/vdb"], "partition": true}, {"name": "/dev/vdb2", "dependencies": ["/dev/vdb"], "partition": true}, {"name": "/dev/vdb", "dependencies": [], "partition": false, "address": {"bus-type": "virtio", "bus": 0, "unit": 0, "pci-controller": {"bus": 2, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/vdb", "target": 0}}, {"name": "/dev/dm-1", "dependencies": ["/dev/vdb2"], "partition": false, "alias": "rhel_bootp--73--75--166-swap"}]}

Check on guest:
NAME                             MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda                                8:0    0  20G  0 disk
vda                              252:0    0  20G  0 disk
vdb                              252:16   0  20G  0 disk
├─vdb1                           252:17   0   1G  0 part /boot
└─vdb2                           252:18   0  19G  0 part
  ├─rhel_bootp--73--75--166-root 253:0    0  17G  0 lvm  /
  └─rhel_bootp--73--75--166-swap 253:1    0   2G  0 lvm  [SWAP]

3. Partition, format and mount one of the disks, check info:
{"execute":"guest-get-disks"}
{"return": [{"name": "/dev/vda", "dependencies": [], "partition": false, "address": {"bus-type": "virtio", "bus": 0, "unit": 0, "pci-controller": {"bus": 0, "slot": 6, "domain": 0, "function": 0}, "dev": "/dev/vda", "target": 0}}, {"name": "/dev/sda1", "dependencies": ["/dev/sda"], "partition": true}, {"name": "/dev/sda", "dependencies": [], "partition": false, "address": {"serial": "0QEMU_QEMU_HARDDISK_kk", "bus-type": "scsi", "bus": 0, "unit": 0, "pci-controller": {"bus": 4, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/sda", "target": 0}}, {"name": "/dev/dm-0", "dependencies": ["/dev/vdb2"], "partition": false, "alias": "rhel_bootp--73--75--166-root"}, {"name": "/dev/vdb1", "dependencies": ["/dev/vdb"], "partition": true}, {"name": "/dev/vdb2", "dependencies": ["/dev/vdb"], "partition": true}, {"name": "/dev/vdb", "dependencies": [], "partition": false, "address": {"bus-type": "virtio", "bus": 0, "unit": 0, "pci-controller": {"bus": 2, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/vdb", "target": 0}}, {"name": "/dev/dm-1", "dependencies": ["/dev/vdb2"], "partition": false, "alias": "rhel_bootp--73--75--166-swap"}]
Check on guest:
NAME                             MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda                                8:0    0  20G  0 disk
└─sda1                             8:1    0  20G  0 part /mnt/sda1
vda                              252:0    0  20G  0 disk
vdb                              252:16   0  20G  0 disk
├─vdb1                           252:17   0   1G  0 part /boot
└─vdb2                           252:18   0  19G  0 part
  ├─rhel_bootp--73--75--166-root 253:0    0  17G  0 lvm  /
  └─rhel_bootp--73--75--166-swap 253:1    0   2G  0 lvm  [SWAP]

4. umount in guest and check disks info
{"execute":"guest-get-disks"}
{"return": [{"name": "/dev/vda", "dependencies": [], "partition": false, "address": {"bus-type": "virtio", "bus": 0, "unit": 0, "pci-controller": {"bus": 0, "slot": 6, "domain": 0, "function": 0}, "dev": "/dev/vda", "target": 0}}, {"name": "/dev/sda1", "dependencies": ["/dev/sda"], "partition": true}, {"name": "/dev/sda", "dependencies": [], "partition": false, "address": {"serial": "0QEMU_QEMU_HARDDISK_kk", "bus-type": "scsi", "bus": 0, "unit": 0, "pci-controller": {"bus": 4, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/sda", "target": 0}}, {"name": "/dev/dm-0", "dependencies": ["/dev/vdb2"], "partition": false, "alias": "rhel_bootp--73--75--166-root"}, {"name": "/dev/vdb1", "dependencies": ["/dev/vdb"], "partition": true}, {"name": "/dev/vdb2", "dependencies": ["/dev/vdb"], "partition": true}, {"name": "/dev/vdb", "dependencies": [], "partition": false, "address": {"bus-type": "virtio", "bus": 0, "unit": 0, "pci-controller": {"bus": 2, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/vdb", "target": 0}}, {"name": "/dev/dm-1", "dependencies": ["/dev/vdb2"], "partition": false, "alias": "rhel_bootp--73--75--166-swap"}]}

Check on guest:
NAME                             MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda                                8:0    0  20G  0 disk
vda                              252:0    0  20G  0 disk
vdb                              252:16   0  20G  0 disk
├─vdb1                           252:17   0   1G  0 part /boot
└─vdb2                           252:18   0  19G  0 part
  ├─rhel_bootp--73--75--166-root 253:0    0  17G  0 lvm  /
  └─rhel_bootp--73--75--166-swap 253:1    0   2G  0 lvm  [SWAP]

5) delete one disk in guest and check disks info:
{"execute":"guest-get-disks"}
{"return": [{"name": "/dev/vda1", "dependencies": ["/dev/vda"], "partition": true}, {"name": "/dev/vda2", "dependencies": ["/dev/vda"], "partition": true}, {"name": "/dev/vda", "dependencies": [], "partition": false, "address": {"bus-type": "virtio", "bus": 0, "unit": 0, "pci-controller": {"bus": 2, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/vda", "target": 0}}, {"name": "/dev/sda1", "dependencies": ["/dev/sda"], "partition": true}, {"name": "/dev/sda", "dependencies": [], "partition": false, "address": {"serial": "0QEMU_QEMU_HARDDISK_kk", "bus-type": "scsi", "bus": 0, "unit": 0, "pci-controller": {"bus": 4, "slot": 0, "domain": 0, "function": 0}, "dev": "/dev/sda", "target": 0}}, {"name": "/dev/dm-0", "dependencies": ["/dev/vda2"], "partition": false, "alias": "rhel_bootp--73--75--166-root"}, {"name": "/dev/dm-1", "dependencies": ["/dev/vda2"], "partition": false, "alias": "rhel_bootp--73--75--166-swap"}]}

Check on guest:
AME                             MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda                                8:0    0  20G  0 disk
└─sda1                             8:1    0  20G  0 part
vda                              252:0    0  20G  0 disk
├─vda1                           252:1    0   1G  0 part /boot
└─vda2                           252:2    0  19G  0 part
  ├─rhel_bootp--73--75--166-root 253:0    0  17G  0 lvm  /
  └─rhel_bootp--73--75--166-swap 253:1    0   2G  0 lvm  [SWAP]

Comment 13 errata-xmlrpc 2021-02-16 14:28:30 UTC
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 (virt:rhel bug fix update), 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-2021:0542


Note You need to log in before you can comment on or make changes to this bug.