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

Bug 1236497

Summary: add spice+vnc to rest api
Product: [oVirt] ovirt-engine Reporter: Tomas Jelinek <tjelinek>
Component: RestAPIAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Shira Maximov <mshira>
Severity: medium Docs Contact:
Priority: high    
Version: ---CC: bugs, ecohen, gklein, istein, lsurette, mavital, mgoldboi, michal.skrivanek, rbalakri, yeylon
Target Milestone: ovirt-3.6.1Flags: rule-engine: ovirt-3.6.z+
ylavi: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 3.6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: 3.6.0-9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-16 12:21:45 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:
Bug Depends On: 976044, 1033547    
Bug Blocks:    

Description Tomas Jelinek 2015-06-29 08:54:58 UTC
currently, the <display> of VM in rest api shows/lets to edit only SPICE or VNC. Since now the VM can have both SPICE and VNC this option has to be supported by REST

Comment 1 Shira Maximov 2015-10-20 11:26:51 UTC
try to verify on :Red Hat Enterprise Virtualization Manager Version: 3.6.0.1-0.1.el6

verifcation steps : 
1. GET request - https://<engine_ip>/ovirt-engine/api/vms/<vm_id>/graphicsconsoles/ - PASSED 
2. DELETE request - https://<engine_ip>/ovirt-engine/api/vms/<vm_id>/graphicsconsoles/<console_id> - PASSED 
3. POST request - https://<engine_ip>/ovirt-engine/api/vms/<vm_id>/graphicsconsoles/

 <graphics_console>
  <protocol>VNC</protocol>
 </graphics_console>

 - Worked but with "JBWEB000065: HTTP Status 500 - java.lang.NullPointerException"

Comment 2 Red Hat Bugzilla Rules Engine 2015-10-20 11:27:32 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 3 Red Hat Bugzilla Rules Engine 2015-10-21 18:26:43 UTC
This bug is not marked for z-stream, yet the milestone is for a z-stream version, therefore the milestone has been reset.
Please set the correct milestone or add the z-stream flag.

Comment 4 Yaniv Lavi 2015-10-29 12:30:20 UTC
In oVirt testing is done on single release by default. Therefore I'm removing the 4.0 flag. If you think this bug must be tested in 4.0 as well, please re-add the flag. Please note we might not have testing resources to handle the 4.0 clone.

Comment 5 Red Hat Bugzilla Rules Engine 2015-11-27 04:39:06 UTC
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.

Comment 6 Shira Maximov 2015-12-03 11:52:48 UTC
verified on :
Red Hat Enterprise Virtualization Manager Version: 3.6.1.1-0.1.el6 

verifcation steps : 
1. GET request - https://<engine_ip>/ovirt-engine/api/vms/<vm_id>/graphicsconsoles/ - PASSED 
2. DELETE request - https://<engine_ip>/ovirt-engine/api/vms/<vm_id>/graphicsconsoles/<console_id> - PASSED 
3. POST request - https://<engine_ip>/ovirt-engine/api/vms/<vm_id>/graphicsconsoles/

 <graphics_console>
  <protocol>VNC</protocol>
 </graphics_console>

Comment 7 Sandro Bonazzola 2015-12-16 12:21:45 UTC
According to verification status and target milestone this issue should be fixed in oVirt 3.6.1. Closing current release.