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

Bug 1059085

Summary: Can't make persistent CDRom change while VM is running
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-engine-restapiAssignee: Martin Betak <mbetak>
Status: CLOSED ERRATA QA Contact: Pavel Novotny <pnovotny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, adahms, bazulay, gklein, iheim, istein, juan.hernandez, mavital, michal.skrivanek, oramraz, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 3.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: is34 Doc Type: Bug Fix
Doc Text:
Previously, any changes to the CD on a running virtual machine made via the REST API would be discarded after the virtual machine was stopped. With this update, changes to the CD used by a virtual machine made via the REST API are persistent.
Story Points: ---
Clone Of: 1014035 Environment:
Last Closed: 2014-03-03 13:32:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1014035    
Bug Blocks:    

Comment 2 Pavel Novotny 2014-02-10 17:25:57 UTC
Verified in rhevm-3.3.1-0.47.el6ev.noarch (is34).

Changing CD permanently on a running VM via REST API is now possible.

Verification steps:
1. Have a running VM without CD-ROM image attached (I used Fedora 19).
2. Attach CD permanently:
>>> request:
PUT /api/vms/5d4f3c8a-7514-400d-a0f7-5c6c51178ba8/cdroms/00000000-0000-0000-0000-000000000000

<cdrom>
<file id="CentOS-6.5-x86_64-minimal.iso"/>
</cdrom>

>>> response:
<cdrom href= "/api/vms/5d4f3c8a-7514-400d-a0f7-5c6c51178ba8/cdroms/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000">
<vm href= "/api/vms/5d4f3c8a-7514-400d-a0f7-5c6c51178ba8" id="5d4f3c8a-7514-400d-a0f7-5c6c51178ba8"/>
<file id="CentOS-6.5-x86_64-minimal.iso"/>
</cdrom>

3. Verifying that change is permanent:
>>> request:
GET /api/vms/5d4f3c8a-7514-400d-a0f7-5c6c51178ba8/cdroms/00000000-0000-0000-0000-000000000000

>>> response:
<cdrom href="/api/vms/5d4f3c8a-7514-400d-a0f7-5c6c51178ba8/cdroms/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000">
<vm href="/api/vms/5d4f3c8a-7514-400d-a0f7-5c6c51178ba8" id="5d4f3c8a-7514-400d-a0f7-5c6c51178ba8"/>
<file id="CentOS-6.5-x86_64-minimal.iso"/>
</cdrom>

The CD-ROM is not changed on-the-fly while the VM is running, but it's permanent and applied after the VM is stopped & started again.

Additional Notes:

The ';current' matrix parameter works still the same: it changes the CD on-the-fly, but the change doesn't survive after the VM is stopped.

Comment 4 errata-xmlrpc 2014-03-03 13:32:10 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.

http://rhn.redhat.com/errata/RHBA-2014-0227.html