oVirt/ovirt-engine

Console Disconnect Action Logout user

shubhaOracle opened this issue · 0 comments

Affected version
oVirt-4.5.4-1

Describe the bug

It provides four actions on disconnect.
• Lock screen - This is the default option. For all Linux machines and for Windows desktops this locks the currently active user session. For Windows servers, this locks the desktop and the currently active user.
• Logout user - For all Linux machines and Windows desktops, this logs out the currently active user session. For Windows servers, the desktop and the currently active user are logged out.
• Shutdown virtual machine - Initiates a graceful virtual machine shutdown.
• Reboot virtual machine - Initiates a graceful virtual machine reboot.
In my testing, the shutdown and reboot options worked. However, lock screen and logout user option did not work for me.

I looked around and found out that qemu-guest agent has no command to log off a user. I see ovirt-guest-agent has some code to logout user as described below - https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/LogoutActiveUser.py
However, it turns out that the ovirt-guest-agent is not supported anymore. So I am wondering how the ‘lock screen’ and ‘logout user’ is implemented and whether it is still supported/supposed to work?

To reproduce

  1. Create VM with console disconnect action set to logout.
  2. Start VM and install qemu-guest-agent
  3. Start the VM and connect to the console
  4. Disconnect the console. Connect to the console again. User is logged to previous session

Expected behavior

When console is disconnected, user is logged out