Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 968435

Summary: [RFE] Present in the UI the correlation between virtual disks in a VM and what the VM sees
Product: Red Hat Enterprise Virtualization Manager Reporter: Josep 'Pep' Turro Mauri <pep>
Component: ovirt-engineAssignee: Tal Nisan <tnisan>
Status: CLOSED ERRATA QA Contact: Shir Fishbain <sfishbai>
Severity: medium Docs Contact:
Priority: low    
Version: 3.3.0CC: acanan, dfediuck, ebenahar, frolland, jentrena, klaas, lpeer, lsurette, lwright, michal.skrivanek, mkalinin, pdwyer, pep, Rhev-m-bugs, spower, sputhenp, srevivo, tnisan, usurse, vanhoof
Target Milestone: ovirt-4.3.0Keywords: FutureFeature
Target Release: ---Flags: sherold: Triaged+
lsvaty: testing_plan_complete-
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.0_rc Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-08 12:36:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1063597    
Bug Blocks: 1520566, 1523346    

Description Josep 'Pep' Turro Mauri 2013-05-29 17:45:42 UTC
A means to easily identify what a Virtual Disk for a VM within RHEVM matches to on the VM itself.

For example when you look at a Virtual Machine and click on the Virtual Disks tab it lists Disks1, Disk2, etc. We would like to have something that tied this to what the VM itself sees i.e. Disk1 = vda.

This way if we have to remove disk from a VM and then drop them from RHEV we can do so with more confidence that the correct disk is being removed.

Comment 9 Yaniv Kaul 2016-11-21 12:47:39 UTC
I'm not sure why we are not setting, by default, a serial number to the disks. This could be used to make the identification easily.

Comment 10 Tal Nisan 2016-11-23 10:27:02 UTC
Can be an option indeed, I saw that Libvirt supports it be using the <serial> tag within the <disk> tag so all we have to do probably is generate a serial to each disk or disk-vm relation and send it when running the VM

Comment 11 Yaniv Lavi 2016-12-06 11:39:45 UTC
*** Bug 1276189 has been marked as a duplicate of this bug. ***

Comment 12 Yaniv Lavi 2016-12-06 13:43:11 UTC
*** Bug 1360977 has been marked as a duplicate of this bug. ***

Comment 14 Tal Nisan 2017-05-23 11:32:29 UTC
Currently we send the serial number in the Libvirt XML which allows correlating the disk to the device by using /dev/disk/by-id
For showing that info in the UI we can use the logical name collected in the disk stats but that methods is not 100% accurate as the info is reported once every few minutes and also it might change in the next boot of the guest and also requires of course guest tools to be installed on the guest.
Does this option makes sense to you?

Comment 15 Julio Entrena Perez 2017-05-23 13:12:21 UTC
As per comment 1, the expectation is that the name that the disk has in the guest OS is exposed in webadmin portal, for example so end user knows with certainty which disk is being removed.

(In reply to Josep 'Pep' Turro Mauri from comment #1)
> 
> 5. How would the customer like to achieve this? (List the functional
> requirements here)
> 
> It could appear in an additional column in the VM's "disks" sub-tab, in the
> API's vm/ID/disks section, or ideally in both.
> 
> Right now the information seems to be accessible to vdsm, at least for
> VirtIO devices. E.g. a "vdsClient list" for a RHEL6 VM includes this:
> 
>   {
>     "address": {
>       "slot": "0x05",
>       ...
>     },
>     ...
>     "alias": "virtio-disk0",
>     "imageID": "1e07b659-2a5f-4a46-a6d6-09374192f076",
>     ...
>     "name": "vda",
>     ...
> 
> so the request would be to visualize this in the webadmin portal / API.

Comment 16 Tal Nisan 2017-05-23 14:26:34 UTC
This info is only accessible from within the guest and can be reported to Engine only with guest tools installed as I stated in comment 14 with the limitations I've mentioned

Comment 17 Julio Entrena Perez 2017-05-23 14:50:10 UTC
As per the above comment this info is available at least from the host:

> Right now the information seems to be accessible to vdsm, at least for
> VirtIO devices. E.g. a "vdsClient list" for a RHEL6 VM includes this:
> 
>   {
>     "address": {
>       "slot": "0x05",
>       ...
>     },
>     ...
>     "alias": "virtio-disk0",
>     "imageID": "1e07b659-2a5f-4a46-a6d6-09374192f076",
>     ...
>     "name": "vda",
              ^^^^^

It may only be available when the guest tools are installed indeed.

Customer is requesting this to be displayed by engine.

Comment 21 Klaas Demter 2017-11-14 13:33:46 UTC
This information is already collected by ovirt (via guest tools), its just not shown in gui.
for example here via api:
/ovirt-engine/api/vms/[id]/diskattachments
[...]
<logical_name>/dev/vda</logical_name>
[...]

Comment 23 Yaniv Kaul 2017-12-05 19:12:58 UTC
(In reply to Klaas Demter from comment #21)
> This information is already collected by ovirt (via guest tools), its just
> not shown in gui.
> for example here via api:
> /ovirt-engine/api/vms/[id]/diskattachments
> [...]
> <logical_name>/dev/vda</logical_name>
> [...]

- Need to check it's not the libvirt default naming scheme...
- Need to check the behavior without an agent.
- Need to check the behavior with direct LUN, virtio-SCSI
- Need to check the behavior with hotplug/unplug disks.
- Need to check the behavior with non regular disk names (LVs, etc.), Windows, etc.

Comment 25 spower 2018-07-03 10:57:18 UTC
We agreed to remove RFEs component from Bugzilla, if you feel the component has been renamed incorrectly please reach out.

Comment 28 Laura Wright 2018-10-15 18:30:20 UTC
@Shani Do you need any UX help with this RFE?

Comment 30 Shir Fishbain 2019-01-31 14:18:41 UTC
Verified

ovirt-engine-4.3.0-0.8.rc2.el7.noarch
vdsm-4.30.6-1.el7ev.x86_64

Present in the UI the correlation between virtual disks in a VM and what the VM sees (Logical name: /dev/vda)

API:
<disk_attachment href="/ovirt-engine/api/vms/cfa6a716-4dfc-49f6-bced-5de082919d8f/diskattachments/cc9d4cbb-b67a-4c8d-84b2-5ddf91fdb943" id="cc9d4cbb-b67a-4c8d-84b2-5ddf91fdb943">
<active>true</active>
<bootable>true</bootable>
<interface>virtio</interface>
<logical_name>/dev/vda</logical_name>
<pass_discard>false</pass_discard>
<read_only>false</read_only>
<uses_scsi_reservation>false</uses_scsi_reservation>
<disk href="/ovirt-engine/api/disks/cc9d4cbb-b67a-4c8d-84b2-5ddf91fdb943" id="cc9d4cbb-b67a-4c8d-84b2-5ddf91fdb943"/>
<vm href="/ovirt-engine/api/vms/cfa6a716-4dfc-49f6-bced-5de082919d8f" id="cfa6a716-4dfc-49f6-bced-5de082919d8f"/>
</disk_attachment>
</disk_attachments>

Comment 32 errata-xmlrpc 2019-05-08 12:36:47 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, 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/RHEA-2019:1085