Created attachment 624658 [details] Logs from jenkins qa run (build 18 si:19.1) Description of problem: update on cdrom triggers vm update (and it fails with appropriate error message) unless '?current' query parameter raised: >> UPDATE api content is -- collection :cdroms element:<cdrom href="/api/vms/00548c94-b208-4ddd-b5a4-e28bf4438e2e/cdroms/00000000-0000-0000-0000-000000000000?current" id="00000000-0000-0000-0000-000000000000"> >> <vm href="/api/vms/00548c94-b208-4ddd-b5a4-e28bf4438e2e" id="00548c94-b208-4ddd-b5a4-e28bf4438e2e"/> >> <file id="en_windows_7_enterprise_x64_dvd_x15-70749.iso"/> >> </cdrom> >> >> Failed to update an element, status: 400, reason: Bad Request, details: >> status: 400 >> reason: Bad Request Version-Release number of selected component (if applicable): 3.1.0 How reproducible: The following test fails each time: http://jenkins.qa.lab.tlv.redhat.com:8080/view/Core+Tools/job/3.1-automation_restapi_reg_vms_sdk Steps to Reproduce (see the above test - Iteration number: 150): 1.Run VM once with boot from cdrom: Test action: runVmOnce Test parameters: True, vm='restvm_run_once', cdrom_image='en_windows_7_enterprise_x64_dvd_x15-70749.iso', boot_dev='cdrom', pause='true' 2.Chance CD while the VM is on: Test action: changeCDWhileRunning Test parameters: vm_name='restvm_run_once', Cdrom_image='en_windows_7_enterprise_x64_dvd_x15-70749.iso' Running command: changeCDWhileRunning(vm_name='restvm_run_once', cdrom_image='en_windows_7_enterprise_x64_dvd_x15-70749.iso') UPDATE api content is :collection :cdroms element: <cdrom href="/api/vms/00548c94-b208-4ddd-b5a4-e28bf4438e2e/cdroms /00000000-0000-0000-0000-000000000000?current" id="00000000-0000-0000-0000-000000000000"> <vm href="/api/vms/00548c94-b208-4ddd-b5a4-e28bf4438e2e" id="00548c94-b208-4ddd-b5a4-e28bf4438e2e"/> <file id="en_windows_7_enterprise_x64_dvd_x15-70749.iso"/> </cdrom> 3. Actual results: Expected results: Additional info:
A patch has been sent to gerrit http://gerrit.ovirt.org/#/c/8607/ Link to merged code http://gerrit.ovirt.org/#/c/8607/2/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata_v-3.1.yaml
Link : http://gerrit.ovirt.org/#/c/8607/ Commit Hash : 7ab9baeea9a0bf3c6a6e0b0668f38bbabd99aae8
Correct Commit Hash Is : 7006d0e91a3b0595bd49d80b1bae15391745d98c
Verified on si24.