[ovirt-users] Python-SDK4: How to list VM user sessions?
Giulio Casella
giulio at di.unimi.it
Fri Mar 31 08:25:08 UTC 2017
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 = vm_service.sessions_service().list()
>>
>> But "sessions" is None.
>>
>> Same result using:
>>
>> s = connection.follow_link(vm.sessions)
>>
>> "s" is None.
>>
>> I tried also using curl, and if I connect to:
>>
>> https://my.ovirt.host/ovirt-engine/api/v4/vms/<vmid>/sessions
>>
>> I get a beautiful 404.
>>
>> Also using v3 of python SDK I obtain the same behaviour.
>>
>> So I suspect that retrieving user sessions via API is not implemented,
>> is it? If not, what I'm doing wrong?
>>
>> I'm using RHV 4.0.6.3-0.1.el7ev
>>
>> Thanks in advance,
>> Giulio
>>
>
> Giulio, you should never get a 404 error from that URL, unless the
> virtual doesn't exist or isn't visible for you. What user name are you
> to create the SDK connection? An administrator or a regular user?
>
I tried with a regular domain user (with superuser role assigned) and
admin at internal, with same result.
> Also, please check the /var/log/ovirt-engine/server.log and
> /var/log/ovirt-engine/engine.log when you send that request. Do you see
> there something relevant?
server.log reports:
2017-03-31 10:03:11,346 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n]
(default task-33) RESTEASY002010: Failed to execute:
javax.ws.rs.WebApplicationException: HTTP 404 Not Found
(no surprise here, same message obtained by curl).
engine.log is full of:
ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default
task-7) [] Cannot authenticate using authentication Headers:
invalid_grant: The provided authorization grant for the auth code has
expired
(indipendently of my request)
It's quite strange I can perform almost every other operation (e.g.
getting other VM parameters, running methods, etc.)
>
> Finally, please run your script with the 'debug=True' option in the
> connection, and with a log file, like here:
>
>
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/list_vms.py#L20-L37
>
> Then share that log file so that we can check what the server is
> returning exactly. Make sure to remove your password from that log file
> before sharing it.
>
Find attached produced log (passwords purged).
BTW: VM is a Fedora 24, with guest agents correctly installed (I can see
user sessions in admin portal and in postgresql DB).
Thanks,
Giulio
-------------- next part --------------
DEBUG:root:About to connect() to rhev-manager.unicloudidattica.unimi.it port 443 (#0)
DEBUG:root:Trying 172.21.250.100...
DEBUG:root:Connected to rhev-manager.unicloudidattica.unimi.it (172.21.250.100) port 443 (#0)
DEBUG:root:Initializing NSS with certpath: sql:/etc/pki/nssdb
DEBUG:root:skipping SSL peer certificate verification
DEBUG:root:SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
DEBUG:root:Server certificate:
DEBUG:root:subject: CN=rhev-manager.unicloudidattica.unimi.it,OU=Servizio UniCloud,O=Università degli Studi di Milano,L=MIlano,ST=Milano,C=IT
DEBUG:root:start date: Jan 03 00:00:00 2017 GMT
DEBUG:root:expire date: Jan 08 12:00:00 2020 GMT
DEBUG:root:common name: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:issuer: CN=TERENA SSL CA 3,O=TERENA,L=Amsterdam,ST=Noord-Holland,C=NL
DEBUG:root:POST /ovirt-engine/sso/oauth/token HTTP/1.1
DEBUG:root:Host: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:User-Agent: PythonSDK/4.0.4
DEBUG:root:Accept: application/json
DEBUG:root:Content-Length: 93
DEBUG:root:Content-Type: application/x-www-form-urlencoded
DEBUG:root:username=admin%40internal&scope=ovirt-app-api&password=mypasswordhere&grant_type=password
DEBUG:root:upload completely sent off: 93 out of 93 bytes
DEBUG:root:HTTP/1.1 200 OK
DEBUG:root:Date: Fri, 31 Mar 2017 08:14:26 GMT
DEBUG:root:Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips
DEBUG:root:Added cookie locale="en_US" for domain rhev-manager.unicloudidattica.unimi.it, path /, expire 3638431713
DEBUG:root:Set-Cookie: locale=en_US; path=/; HttpOnly; Max-Age=2147483647; Expires=Wed, 18-Apr-2085 11:28:33 GMT
DEBUG:root:X-XSS-PROTECTION: 1; MODE=BLOCK
DEBUG:root:X-CONTENT-TYPE-OPTIONS: NOSNIFF
DEBUG:root:X-FRAME-OPTIONS: SAMEORIGIN
DEBUG:root:Content-Type: application/json
DEBUG:root:Content-Length: 278
DEBUG:root:Vary: Accept-Encoding
DEBUG:root:
DEBUG:root:{"access_token":"lCVRqJmXd03jpEMvrFjCQ2X-pCeC_VH1j0MncOUdg__Ph-CYX6hkxlIVcj18kjIc9fSPenwoTUzisymf_Y584g","scope":"ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate","exp":"1491552866000","token_type":"bearer"}
DEBUG:root:Connection #0 to host rhev-manager.unicloudidattica.unimi.it left intact
DEBUG:root:Found bundle for host rhev-manager.unicloudidattica.unimi.it: 0x208c2d0
DEBUG:root:Re-using existing connection! (#0) with host rhev-manager.unicloudidattica.unimi.it
DEBUG:root:Connected to rhev-manager.unicloudidattica.unimi.it (172.21.250.100) port 443 (#0)
DEBUG:root:GET /ovirt-engine/api/vms?search=name%3DSILABIN-057-4 HTTP/1.1
DEBUG:root:Host: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:Cookie: locale=en_US
DEBUG:root:User-Agent: PythonSDK/4.0.4
DEBUG:root:Version: 4
DEBUG:root:Content-Type: application/xml
DEBUG:root:Accept: application/xml
DEBUG:root:Authorization: Bearer lCVRqJmXd03jpEMvrFjCQ2X-pCeC_VH1j0MncOUdg__Ph-CYX6hkxlIVcj18kjIc9fSPenwoTUzisymf_Y584g
DEBUG:root:Content-Length: 0
DEBUG:root:HTTP/1.1 200 OK
DEBUG:root:Date: Fri, 31 Mar 2017 08:14:26 GMT
DEBUG:root:Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips
DEBUG:root:Content-Type: application/xml
DEBUG:root:Content-Length: 10072
DEBUG:root:Vary: Accept-Encoding
DEBUG:root:
DEBUG:root:<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
DEBUG:root:<vms>
DEBUG:root: <vm href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e" id="38542425-ff44-4e53-aec1-b1c6a12d943e">
DEBUG:root: <actions>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/ticket" rel="ticket"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/reboot" rel="reboot"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/previewsnapshot" rel="previewsnapshot"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/detach" rel="detach"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/migrate" rel="migrate"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/export" rel="export"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/commitsnapshot" rel="commitsnapshot"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/clone" rel="clone"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/freezefilesystems" rel="freezefilesystems"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/logon" rel="logon"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/maintenance" rel="maintenance"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/reordermacaddresses" rel="reordermacaddresses"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/thawfilesystems" rel="thawfilesystems"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/undosnapshot" rel="undosnapshot"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/cancelmigration" rel="cancelmigration"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/shutdown" rel="shutdown"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/start" rel="start"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/stop" rel="stop"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/suspend" rel="suspend"/>
DEBUG:root: </actions>
DEBUG:root: <name>SILABIN-057-4</name>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/affinitylabels" rel="affinitylabels"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/applications" rel="applications"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/cdroms" rel="cdroms"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/diskattachments" rel="diskattachments"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/graphicsconsoles" rel="graphicsconsoles"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/hostdevices" rel="hostdevices"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/katelloerrata" rel="katelloerrata"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/nics" rel="nics"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/numanodes" rel="numanodes"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/permissions" rel="permissions"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/reporteddevices" rel="reporteddevices"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/sessions" rel="sessions"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/snapshots" rel="snapshots"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/statistics" rel="statistics"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/tags" rel="tags"/>
DEBUG:root: <link href="/ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/watchdogs" rel="watchdogs"/>
DEBUG:root: <bios>
DEBUG:root: <boot_menu>
DEBUG:root: <enabled>false</enabled>
DEBUG:root: </boot_menu>
DEBUG:root: </bios>
DEBUG:root: <cpu>
DEBUG:root: <architecture>x86_64</architecture>
DEBUG:root: <topology>
DEBUG:root: <cores>2</cores>
DEBUG:root: <sockets>1</sockets>
DEBUG:root: <threads>1</threads>
DEBUG:root: </topology>
DEBUG:root: </cpu>
DEBUG:root: <cpu_shares>512</cpu_shares>
DEBUG:root: <creation_time>2017-03-09T20:47:01.477+01:00</creation_time>
DEBUG:root: <delete_protected>false</delete_protected>
DEBUG:root: <display>
DEBUG:root: <address>172.21.247.103</address>
DEBUG:root: <allow_override>false</allow_override>
DEBUG:root: <copy_paste_enabled>true</copy_paste_enabled>
DEBUG:root: <disconnect_action>LOCK_SCREEN</disconnect_action>
DEBUG:root: <file_transfer_enabled>true</file_transfer_enabled>
DEBUG:root: <monitors>1</monitors>
DEBUG:root: <secure_port>5906</secure_port>
DEBUG:root: <single_qxl_pci>false</single_qxl_pci>
DEBUG:root: <smartcard_enabled>false</smartcard_enabled>
DEBUG:root: <type>spice</type>
DEBUG:root: </display>
DEBUG:root: <domain>
DEBUG:root: <name>unicloudidattica.local</name>
DEBUG:root: </domain>
DEBUG:root: <high_availability>
DEBUG:root: <enabled>false</enabled>
DEBUG:root: <priority>1</priority>
DEBUG:root: </high_availability>
DEBUG:root: <initialization>
DEBUG:root: <custom_script>runcmd:
DEBUG:root:- '/sbin/ip link set mtu 1400 dev $(/sbin/ip route | awk ''/default/ { print $5 }'' | cut -f1-3 -d.)'
DEBUG:root:- '/usr/sbin/ntpdate 172.21.251.8; systemctl enable ntpdate; systemctl start ntpdate'
DEBUG:root:- 'sed -i ''s/^hosts:.*/hosts: files dns myhostname mymachines/'' /etc/nsswitch.conf; systemctl stop avahi-daemon.service; systemctl stop avahi-daemon.socket; systemctl mask avahi-daemon.service; systemctl mask avahi-daemon.socket'
DEBUG:root:- '/usr/sbin/ipa-client-install --unattended --uninstall'
DEBUG:root:- '/bin/sleep 20; until /usr/sbin/ipa-client-install --unattended --force-join --force-ntpd --enable-dns-updates --domain=linux.unicloudidattica.local --principal=admin --password=myipapassword ; do echo "join failed, sleeping and retrying"; sleep 5; done'
DEBUG:root:- '/usr/bin/kinit -k; ipa-getkeytab -s idc01.linux.unicloudidattica.local -p nfs/fs01.linux.unicloudidattica.local -k /etc/krb5.keytab -r'
DEBUG:root:- '/usr/sbin/ipa-client-automount --unattended --uninstall; /usr/sbin/ipa-client-automount --unattended'
DEBUG:root:
DEBUG:root:hostname: silabin-057-4
DEBUG:root:fqdn: silabin-057-4.linux.unicloudidattica.local
DEBUG:root:manage_etc_hosts: true</custom_script>
DEBUG:root: <domain>unicloudidattica.local</domain>
DEBUG:root: <host_name>SILABIN-057-4</host_name>
DEBUG:root: <nic_configurations/>
DEBUG:root: <regenerate_ssh_keys>false</regenerate_ssh_keys>
DEBUG:root: </initialization>
DEBUG:root: <io>
DEBUG:root: <threads>0</threads>
DEBUG:root: </io>
DEBUG:root: <large_icon href="/ovirt-engine/api/icons/c2cd522e-48e7-4f6d-b569-876ff16396ce" id="c2cd522e-48e7-4f6d-b569-876ff16396ce"/>
DEBUG:root: <memory>4294967296</memory>
DEBUG:root: <memory_policy>
DEBUG:root: <guaranteed>1073741824</guaranteed>
DEBUG:root: </memory_policy>
DEBUG:root: <migration>
DEBUG:root: <auto_converge>inherit</auto_converge>
DEBUG:root: <compressed>inherit</compressed>
DEBUG:root: </migration>
DEBUG:root: <migration_downtime>0</migration_downtime>
DEBUG:root: <origin>rhev</origin>
DEBUG:root: <os>
DEBUG:root: <boot>
DEBUG:root: <devices>
DEBUG:root: <device>hd</device>
DEBUG:root: </devices>
DEBUG:root: </boot>
DEBUG:root: <type>rhel_7x64</type>
DEBUG:root: </os>
DEBUG:root: <small_icon href="/ovirt-engine/api/icons/7a5736a2-4b04-4efc-be7f-af4b3b8e085b" id="7a5736a2-4b04-4efc-be7f-af4b3b8e085b"/>
DEBUG:root: <sso>
DEBUG:root: <methods>
DEBUG:root: <method id="guest_agent"/>
DEBUG:root: </methods>
DEBUG:root: </sso>
DEBUG:root: <start_paused>false</start_paused>
DEBUG:root: <stateless>false</stateless>
DEBUG:root: <time_zone>
DEBUG:root: <name>Etc/GMT</name>
DEBUG:root: </time_zone>
DEBUG:root: <type>desktop</type>
DEBUG:root: <usb>
DEBUG:root: <enabled>true</enabled>
DEBUG:root: <type>native</type>
DEBUG:root: </usb>
DEBUG:root: <cluster href="/ovirt-engine/api/clusters/7a01d9f6-b76d-4e57-9e89-c6d37938177b" id="7a01d9f
DEBUG:root:6-b76d-4e57-9e89-c6d37938177b"/>
DEBUG:root: <cpu_profile href="/ovirt-engine/api/cpuprofiles/bf363e92-3753-4e1a-b2cb-62b0daf87c83" id="bf363e92-3753-4e1a-b2cb-62b0daf87c83"/>
DEBUG:root: <fqdn>silabin-057-4.linux.unicloudidattica.local</fqdn>
DEBUG:root: <guest_operating_system>
DEBUG:root: <architecture>x86_64</architecture>
DEBUG:root: <codename>Twenty Four</codename>
DEBUG:root: <distribution>Fedora</distribution>
DEBUG:root: <family>Linux</family>
DEBUG:root: <kernel>
DEBUG:root: <version>
DEBUG:root: <build>13</build>
DEBUG:root: <full_version>4.9.13-100.fc24.x86_64</full_version>
DEBUG:root: <major>4</major>
DEBUG:root: <minor>9</minor>
DEBUG:root: <revision>100</revision>
DEBUG:root: </version>
DEBUG:root: </kernel>
DEBUG:root: <version>
DEBUG:root: <full_version>24</full_version>
DEBUG:root: <major>24</major>
DEBUG:root: </version>
DEBUG:root: </guest_operating_system>
DEBUG:root: <guest_time_zone>
DEBUG:root: <name>Europe/Rome</name>
DEBUG:root: <utc_offset>+01:00</utc_offset>
DEBUG:root: </guest_time_zone>
DEBUG:root: <next_run_configuration_exists>false</next_run_configuration_exists>
DEBUG:root: <numa_tune_mode>interleave</numa_tune_mode>
DEBUG:root: <placement_policy>
DEBUG:root: <affinity>migratable</affinity>
DEBUG:root: </placement_policy>
DEBUG:root: <run_once>false</run_once>
DEBUG:root: <start_time>2017-03-11T05:00:41.582+01:00</start_time>
DEBUG:root: <status>up</status>
DEBUG:root: <stop_time>2017-03-11T05:00:36.502+01:00</stop_time>
DEBUG:root: <host href="/ovirt-engine/api/hosts/c6f4de6a-179f-4034-8805-5b747fcc12ec" id="c6f4de6a-179f-4034-8805-5b747fcc12ec"/>
DEBUG:root: <template href="/ovirt-engine/api/templates/bdf63587-9dba-435b-bb7e-e2acd24e30f0" id="bdf63587-9dba-435b-bb7e-e2acd24e30f0"/>
DEBUG:root: <vm_pool href="/ovirt-engine/api/vmpools/ac293cc3-ccf1-4666-8fbe-79925ca011c0" id="ac293cc3-ccf1-4666-8fbe-79925ca011c0"/>
DEBUG:root: </vm>
DEBUG:root:</vms>
DEBUG:root:Connection #0 to host rhev-manager.unicloudidattica.unimi.it left intact
DEBUG:root:Found bundle for host rhev-manager.unicloudidattica.unimi.it: 0x208c2d0
DEBUG:root:Re-using existing connection! (#0) with host rhev-manager.unicloudidattica.unimi.it
DEBUG:root:Connected to rhev-manager.unicloudidattica.unimi.it (172.21.250.100) port 443 (#0)
DEBUG:root:GET /ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/sessions HTTP/1.1
DEBUG:root:Host: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:Cookie: locale=en_US
DEBUG:root:User-Agent: PythonSDK/4.0.4
DEBUG:root:Version: 4
DEBUG:root:Content-Type: application/xml
DEBUG:root:Accept: application/xml
DEBUG:root:Authorization: Bearer lCVRqJmXd03jpEMvrFjCQ2X-pCeC_VH1j0MncOUdg__Ph-CYX6hkxlIVcj18kjIc9fSPenwoTUzisymf_Y584g
DEBUG:root:Content-Length: 0
DEBUG:root:HTTP/1.1 404 Not Found
DEBUG:root:Date: Fri, 31 Mar 2017 08:14:27 GMT
DEBUG:root:Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips
DEBUG:root:Content-Length: 0
DEBUG:root:HTTP error before end of send, stop sending
DEBUG:root:
DEBUG:root:Closing connection 0
DEBUG:root:About to connect() to rhev-manager.unicloudidattica.unimi.it port 443 (#1)
DEBUG:root:Trying 172.21.250.100...
DEBUG:root:Connected to rhev-manager.unicloudidattica.unimi.it (172.21.250.100) port 443 (#1)
DEBUG:root:skipping SSL peer certificate verification
DEBUG:root:SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
DEBUG:root:Server certificate:
DEBUG:root:subject: CN=rhev-manager.unicloudidattica.unimi.it,OU=Servizio UniCloud,O=Università degli Studi di Milano,L=MIlano,ST=Milano,C=IT
DEBUG:root:start date: Jan 03 00:00:00 2017 GMT
DEBUG:root:expire date: Jan 08 12:00:00 2020 GMT
DEBUG:root:common name: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:issuer: CN=TERENA SSL CA 3,O=TERENA,L=Amsterdam,ST=Noord-Holland,C=NL
DEBUG:root:GET /ovirt-engine/api/vms/38542425-ff44-4e53-aec1-b1c6a12d943e/sessions HTTP/1.1
DEBUG:root:Host: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:Cookie: locale=en_US
DEBUG:root:User-Agent: PythonSDK/4.0.4
DEBUG:root:Version: 4
DEBUG:root:Content-Type: application/xml
DEBUG:root:Accept: application/xml
DEBUG:root:Authorization: Bearer lCVRqJmXd03jpEMvrFjCQ2X-pCeC_VH1j0MncOUdg__Ph-CYX6hkxlIVcj18kjIc9fSPenwoTUzisymf_Y584g
DEBUG:root:Content-Length: 0
DEBUG:root:HTTP/1.1 404 Not Found
DEBUG:root:Date: Fri, 31 Mar 2017 08:14:27 GMT
DEBUG:root:Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips
DEBUG:root:Content-Length: 0
DEBUG:root:HTTP error before end of send, stop sending
DEBUG:root:
DEBUG:root:Closing connection 1
DEBUG:root:About to connect() to rhev-manager.unicloudidattica.unimi.it port 443 (#2)
DEBUG:root:Trying 172.21.250.100...
DEBUG:root:Connected to rhev-manager.unicloudidattica.unimi.it (172.21.250.100) port 443 (#2)
DEBUG:root:skipping SSL peer certificate verification
DEBUG:root:SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
DEBUG:root:Server certificate:
DEBUG:root:subject: CN=rhev-manager.unicloudidattica.unimi.it,OU=Servizio UniCloud,O=Università degli Studi di Milano,L=MIlano,ST=Milano,C=IT
DEBUG:root:start date: Jan 03 00:00:00 2017 GMT
DEBUG:root:expire date: Jan 08 12:00:00 2020 GMT
DEBUG:root:common name: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:issuer: CN=TERENA SSL CA 3,O=TERENA,L=Amsterdam,ST=Noord-Holland,C=NL
DEBUG:root:POST /ovirt-engine/services/sso-logout HTTP/1.1
DEBUG:root:Host: rhev-manager.unicloudidattica.unimi.it
DEBUG:root:Cookie: locale=en_US
DEBUG:root:User-Agent: PythonSDK/4.0.4
DEBUG:root:Accept: application/json
DEBUG:root:Content-Length: 112
DEBUG:root:Content-Type: application/x-www-form-urlencoded
DEBUG:root:scope=ovirt-app-api&token=lCVRqJmXd03jpEMvrFjCQ2X-pCeC_VH1j0MncOUdg__Ph-CYX6hkxlIVcj18kjIc9fSPenwoTUzisymf_Y584g
DEBUG:root:upload completely sent off: 112 out of 112 bytes
DEBUG:root:HTTP/1.1 200 OK
DEBUG:root:Date: Fri, 31 Mar 2017 08:14:27 GMT
DEBUG:root:Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips
DEBUG:root:Replaced cookie locale="en_US" for domain rhev-manager.unicloudidattica.unimi.it, path /, expire 3638431714
DEBUG:root:Set-Cookie: locale=en_US; path=/; HttpOnly; Max-Age=2147483647; Expires=Wed, 18-Apr-2085 11:28:34 GMT
DEBUG:root:Content-Type: application/json
DEBUG:root:Content-Length: 3
DEBUG:root:Vary: Accept-Encoding
DEBUG:root:
DEBUG:root:{ }
DEBUG:root:Connection #2 to host rhev-manager.unicloudidattica.unimi.it left intact
More information about the Users
mailing list