Bug 1135970
Summary: | Cannot remove current iso cdrom (eject - dynamically remove) using rest-api/sdk | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Carlos Mestre González <cmestreg> |
Component: | ovirt-engine-api | Assignee: | Martin Betak <mbetak> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ilanit Stein <istein> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5 | CC: | bazulay, bugs, cfergeau, ecohen, gklein, iheim, mavital, mbetak, ofrenkel, oramraz, rbalakri, Rhev-m-bugs, s.kieske, yeylon |
Target Milestone: | --- | Keywords: | AutomationBlocker, Triaged |
Target Release: | 3.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | virt | ||
Fixed In Version: | ovirt-3.5.0_rc2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-17 12:37:23 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: |
Description
Carlos Mestre González
2014-09-01 11:25:20 UTC
Blocking our tests to check if storage domains can be deactivated after cdroms are ejected. Moving to ovirt (as it should have been) So what is the solution implemented: 1) calling delete with current=true? DELETE api/vms/e0ba3f7d-b376-453d-813f-2d6817d77be8/cdroms/00000000-0000-0000-0000-000000000000;current=true 2) sending <cdrom><file id=''/></cdrom> ? The 2) one The solution is to allow an empty file identifier to the update operation: #!/bin/sh -ex url="https://ovirt.example.com/ovirt-engine/api" user="admin@internal" password="******" curl \ --verbose \ --insecure \ --request PUT \ --user "${user}:${password}" \ --header "Content-Type: application/xml" \ --header "Accept: application/xml" \ --data ' <cdrom> <file id=""/> </cdrom> ' \ "${url}/vms/e0ba3f7d-b376-453d-813f-2d6817d77be8/cdroms/00000000-0000-0000-0000-000000000000;current=true" *** Bug 1145035 has been marked as a duplicate of this bug. *** oVirt 3.5 has been released and should include the fix for this issue. Verified on rhevm vt12. Marking as Triaged. |