Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-11 Thread Giulio Casella
On 10/04/2017 17:50, Juan Hernández wrote: On 04/10/2017 05:38 PM, Giorgio Biacchi wrote: ... OK, that makes sense. I think this is a bug in the server then. If the users are not oVirt users we should just not report them, or maybe report just the user name and domain, if available. But

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-10 Thread Juan Hernández
On 04/10/2017 05:38 PM, Giorgio Biacchi wrote: > Hi, > I'm taking over Giulio because he's not at work now. I'm starting to > understand what's happening because we have not that users (and many > others) in the users tab in the admin portal. > > We have heavily modified the paradigm of ovirt, VM

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-10 Thread Giorgio Biacchi
Hi, I'm taking over Giulio because he's not at work now. I'm starting to understand what's happening because we have not that users (and many others) in the users tab in the admin portal. We have heavily modified the paradigm of ovirt, VM are bound to thin clients and not to users, this

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-10 Thread Juan Hernández
On 04/10/2017 11:10 AM, Giulio Casella wrote: > On 07/04/2017 16:00, Juan Hernández wrote: >> I have been trying to reproduce this and I wasn't able. In theory the >> 404 error that you get should only happen if the virtual machine doesn't >> exist, but that isn't the case. >> >> Can you check the

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-10 Thread Giulio Casella
On 07/04/2017 16:00, Juan Hernández wrote: I have been trying to reproduce this and I wasn't able. In theory the 404 error that you get should only happen if the virtual machine doesn't exist, but that isn't the case. Can you check the server.log file and share the complete stack traces that

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-07 Thread Juan Hernández
I have been trying to reproduce this and I wasn't able. In theory the 404 error that you get should only happen if the virtual machine doesn't exist, but that isn't the case. Can you check the server.log file and share the complete stack traces that should appear after the "HTTP 404 Not Found"

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-31 Thread Giulio Casella
On 30/03/2017 20:05, Juan Hernández wrote: On 03/30/2017 01:01 PM, Giulio Casella wrote: Hi, I'm trying to obtain a list of users connected to a VM, using python SDK v4. Here's what I'm doing: vm = vms_service.list(search="name=vmname")[0] vm_service = vms_service.vm_service(vm.id) sessions =

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Juan Hernández
On 03/30/2017 01:01 PM, Giulio Casella wrote: > Hi, > I'm trying to obtain a list of users connected to a VM, using python SDK > v4. > Here's what I'm doing: > > vm = vms_service.list(search="name=vmname")[0] > vm_service = vms_service.vm_service(vm.id) > sessions =

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Ondra Machacek
On Thu, Mar 30, 2017 at 2:25 PM, Giulio Casella wrote: > On 30/03/2017 13:39, nico...@devels.es wrote: > >> Hi Giulio, >> >> I tried to reproduce your same steps and it returns an non-empty list >> for me. >> >> In [1]: vms_serv = sys_serv.vms_service() >> >> In [2]: vm =

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Giulio Casella
On 30/03/2017 13:39, nico...@devels.es wrote: Hi Giulio, I tried to reproduce your same steps and it returns an non-empty list for me. In [1]: vms_serv = sys_serv.vms_service() In [2]: vm = vms_serv.list(search='name=bleh')[0] In [3]: vmsv = vms_serv.vm_service(vm.id) In [4]: vmsess =

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread nicolas
Hi Giulio, I tried to reproduce your same steps and it returns an non-empty list for me. In [1]: vms_serv = sys_serv.vms_service() In [2]: vm = vms_serv.list(search='name=bleh')[0] In [3]: vmsv = vms_serv.vm_service(vm.id) In [4]: vmsess = vmsv.sessions_service() In [5]: vmsess.list()

[ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Giulio Casella
Hi, I'm trying to obtain a list of users connected to a VM, using python SDK v4. Here's what I'm doing: vm = vms_service.list(search="name=vmname")[0] vm_service = vms_service.vm_service(vm.id) sessions = vm_service.sessions_service().list() But "sessions" is None. Same result using: s =