Bug 1402880

Summary: Hot-plugged memory devices are wrongly reported
Product: [oVirt] ovirt-engine Reporter: jniederm
Component: BLL.VirtAssignee: Milan Zamazal <mzamazal>
Status: CLOSED CURRENTRELEASE QA Contact: Israel Pinto <ipinto>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, mzamazal
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 10:57:07 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:
Bug Depends On:    
Bug Blocks: 1228543    
Attachments:
Description Flags
virsh-dumpxml
none
engine-screenshot.png none

Description jniederm 2016-12-08 14:24:21 UTC
Created attachment 1229498 [details]
virsh-dumpxml

Description of problem:
Dimm devices are reported correct number of times but it is n-times the first hot-plugged dimm. I.e. reported address (and alias) doesn't differ. 


Version-Release number of selected component (if applicable):
4.1 master, dev build, commit 620c403

How reproducible:
100%

Steps to Reproduce:
1. Start a VM with small memory
2. Hot-plug memory several times
3. Compare dumpxml result of `virsh` on host with 'VM' > 'Vm Devices' subtab in webadmin (or content of vm_devices table) 

Actual results:
Addresses and aliases differs in virsh output however they don't differ in engine. All engine records corresponds to the first dimm in virsh report.

Expected results:
virsh and engine report same data.

Comment 1 jniederm 2016-12-08 14:24:58 UTC
Created attachment 1229499 [details]
engine-screenshot.png

Comment 2 jniederm 2016-12-09 11:53:20 UTC
We need reliable info about hot-pugged memory in engine in order to be able to request memory module unplug.

Comment 3 Milan Zamazal 2017-01-09 15:47:56 UTC
This is a Vdsm bug in matching the memory devices with domain XML output. I'll make a fix.

Comment 4 Israel Pinto 2017-08-15 07:05:17 UTC
Verify with:
Software version:4.2.0-0.0.master.20170813134654.gitaee967b.el7.centos

Steps:
1. Start a VM with small memory
2. Hot-plug memory several times with diff sizes
3. Compare dumpxml result of `virsh` on host with 'VM' > 'Vm Devices' subtab in webadmin (or content of vm_devices table) 

The address and aliases are the same - PASS

Comment 5 Sandro Bonazzola 2017-12-20 10:57:07 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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