Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1059085 - Can't make persistent CDRom change while VM is running
Can't make persistent CDRom change while VM is running
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi (Show other bugs)
3.3.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 3.3.1
Assigned To: Martin Betak
Pavel Novotny
virt
: Triaged, ZStream
Depends On: 1014035
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-29 02:26 EST by rhev-integ
Modified: 2014-03-03 08:32 EST (History)
12 users (show)

See Also:
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 08:32:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 20288 None None None Never
oVirt gerrit 20994 None None None Never
Red Hat Product Errata RHBA-2014:0227 normal SHIPPED_LIVE rhevm 3.3.1 bug fix update 2014-03-03 13:29:31 EST

  None (edit)
Comment 2 Pavel Novotny 2014-02-10 12:25:57 EST
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 08:32:10 EST
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

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