Bug 1280251

Summary: Can't update template display disconnect action
Product: [oVirt] ovirt-engine Reporter: Juan Hernández <juan.hernandez>
Component: Database.CoreAssignee: Vinzenz Feenstra [evilissimo] <vfeenstr>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: medium Docs Contact:
Priority: high    
Version: 3.6.0CC: bugs, michal.skrivanek, vfeenstr
Target Milestone: ovirt-3.6.2Flags: michal.skrivanek: ovirt-3.6.z?
rule-engine: planning_ack?
michal.skrivanek: devel_ack+
pstehlik: testing_ack+
Target Release: 3.6.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:19:34 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 Juan Hernández 2015-11-11 10:38:54 UTC
This issue was reported by Cristian Mammoli in the oVirt users list:

  http://lists.ovirt.org/pipermail/users/2015-November/035827.html

In 3.6 it is not possible to change display disconnect policy in templates. Well, you can change it and save but when you go back to the config it goes back to lock_screen.

It does not work even with shell:

[oVirt shell (connected)]# update template vdiMaster 
--display-disconnect_action NONE | grep display-disconnect_action
display-disconnect_action    : LOCK_SCREEN

It works fine in VMS though.

Comment 1 Juan Hernández 2015-11-11 10:40:55 UTC
The reason for this is that the "v_console_disconnect_action" that was added to the "UpdateVmStatic" procedure wasn't added to the "UpdateVmTemplate" procedure, thus it is simply ignored.

Comment 2 Sandro Bonazzola 2015-12-23 13:43:20 UTC
oVirt 3.6.2 RC1 has been released for testing, moving to ON_QA

Comment 3 Jiri Belka 2016-01-05 16:44:35 UTC
ok, rhevm-backend-3.6.2-0.1.el6.noarch

[RHEVM shell (connected)]# show template vdcadmin | grep disconnect_action
display-disconnect_action    : LOCK_SCREEN
[RHEVM shell (connected)]# update template vdcadmin --display-disconnect_action NONE    
...
[RHEVM shell (connected)]# show template vdcadmin | grep disconnect_action
display-disconnect_action    : NONE

work both via shell and web UI.