Bug 1609686 - Get VMs response doesn't match virsh output after updating of the serial number policy
Summary: Get VMs response doesn't match virsh output after updating of the serial num...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.2.5
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ovirt-4.4.0
: ---
Assignee: Liran Rotenberg
QA Contact: Polina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-30 07:45 UTC by Polina
Modified: 2020-05-20 20:00 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-05-20 20:00:02 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 99970 0 master MERGED core: remove custom serial number when the policy is not custom 2019-05-16 09:58:55 UTC
oVirt gerrit 100217 0 master MERGED core: Fix customSerialNumber comparison in VmBase 2019-05-22 12:25:48 UTC

Description Polina 2018-07-30 07:45:58 UTC
Description of problem: Updating of the serial number policy from custom to VM causes different output - in Get VMs and virsh 

Version-Release number of selected component (if applicable):
rhv-release-4.2.5-5-001.noarch

How reproducible:100%

Steps to Reproduce:
1.In UI Open EditVM/System. Choose custom serial number policy and enter some value. Start VM. Check virsh dumpxml output and Get vms API output - contain correct values
2.Update the custom policy to the VM ID policy (choose VM ID option in 'Provide custom serial number policy'). ok in the dialog. Restart VM.
3.Check virsh output ( virsh -r dumpxml vm_id ) and get VMS API (https://{{host}}/ovirt-engine/api/vms) 

Actual results:
in virsh output we see the correct result - serial number equals to UUID.
   <system>
      ....
      <entry name='serial'>3855687f-a362-48a9-8d5a-b1dc3ff22dd5</entry>
      <entry name='uuid'>3855687f-a362-48a9-8d5a-b1dc3ff22dd5</entry>
    </system>

In rest API response we see the previous value for serial number:
        <serial_number>
            <policy>vm</policy>
            <value>4567</value>
        </serial_number>

Expected results:
Rest API response must not contain the previous serial number value  <value>4567</value>

Additional info:

Comment 1 Polina 2020-01-13 11:34:15 UTC
verified on http://bob-dr.lab.eng.brq.redhat.com/builds/4.4/rhv-4.4.0-14

Comment 2 Sandro Bonazzola 2020-05-20 20:00:02 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 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.


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