Bug 1967413

Summary: Logical name doesn't appear in diskattachments and UI immediately after a disk is hot plugged into vm
Product: [oVirt] vdsm Reporter: Qin Yuan <qiyuan>
Component: GeneralAssignee: Tomáš Golembiovský <tgolembi>
Status: CLOSED CURRENTRELEASE QA Contact: Qin Yuan <qiyuan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.40.70.1CC: ahadas, bugs, dfodor, tgolembi
Target Milestone: ovirt-4.4.8Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.40.80.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-19 06:23:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm.log none

Description Qin Yuan 2021-06-03 06:22:59 UTC
Created attachment 1788791 [details]
vdsm.log

Description of problem:
When hot plugging a disk to vm, it takes about 5 mins to show disk logical name in diskattachments and UI. Disk logical name should appear right after the disk is hot plugged into vm.

Version-Release number of selected component (if applicable):
vdsm-4.40.70.1-1.el8ev.x86_64
ovirt-engine-4.4.7-0.23.el8ev.noarch
qemu-guest-agent-4.2.0-34.module+el8.3.0+10437+1ca0c2ba.5.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create and run a VM.
2. Add a new disk to the running VM
3. Check disk logical name on UI and via API

Actual results:
1. It takes about 5 mins to show disk logical name in diskattachments and UI.

Expected results:
1. Logical name should be show in diskattachments and UI immediately after the disk is hot plugged into vm.

Additional info:

Comment 1 Tomáš Golembiovský 2021-06-03 08:28:39 UTC
Currently this is limited by the configuration of qga_disk_info_period timer so it may take up to 5m until we perform another query for disk mapping. We can certainly make this faster and ask the guest right after performing the hot-plug.

Comment 2 Qin Yuan 2021-08-15 23:54:48 UTC
Verified with:
vdsm-4.40.80.5-1.el8ev.x86_64
ovirt-engine-4.4.8.4-0.7.el8ev.noarch

Steps:
The same as steps in comment #0

Results:
Logical name can be shown in diskattachments and on UI in a short time after the disk is hot plugged into vm.

Comment 3 Sandro Bonazzola 2021-08-19 06:23:16 UTC
This bugzilla is included in oVirt 4.4.8 release, published on August 19th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.8 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.