Re: govirt 0.30 plans

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christophe,

I got around the issue of the self-signed certificate and not being
able to set the ssl-ca-file property through OvirtProxy by manually
hacking rest-0.7.90 for now. If you would like to see the rest-0.7.90
hack, please let me know, but I don't think it's relevant.

Once I get past the certificate issue, I encounter another difficulty
with both oVirt 3.2 and oVirt 3.3 (I installed both in an effort to
see if an older oVirt will work).

What happens is that both the new govirt usage:
    vms = ovirt_api_get_vms(api);
    ovirt_collection_fetch(vms, proxy, &error);
    vm = OVIRT_VM(ovirt_collection_lookup_resource(vms, vm_name));

and the old govirt usage:
    ovirt_proxy_fetch_vms(proxy, &error);
    vm = ovirt_proxy_lookup_vm(proxy, vm_name);

result in vm == NULL (vms was not NULL).

The exact call which fails with resource == NULL is:
    resource = g_hash_table_lookup(collection->priv->resources, name);

What I have done is manually navigated to https://FQDN/api/vms in
order to attach the output I get there for you to see if you can spot
why libgovirt fails to look up the VMs. The call failed with name set
to both "win" and "winbak".

I will be happy to test patches to libgovirt 0.30 for both the
ssl-ca-file issue and the issue I'm reporting now. Let me know how I
can be of additional assistance.

Many thanks!
iordan iordanov

-- 
The conscious mind has only one thread of execution.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vms>
    <vm href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0" id="6ad6fdcd-9643-446d-824e-edf3443700b0">
        <actions>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/cancelmigration" rel="cancelmigration"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/ticket" rel="ticket"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/move" rel="move"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/migrate" rel="migrate"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/detach" rel="detach"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/export" rel="export"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/shutdown" rel="shutdown"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/start" rel="start"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/stop" rel="stop"/>
            <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/suspend" rel="suspend"/>
        </actions>
        <name>win</name>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/applications" rel="applications"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/disks" rel="disks"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/nics" rel="nics"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/cdroms" rel="cdroms"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/snapshots" rel="snapshots"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/tags" rel="tags"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/permissions" rel="permissions"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/statistics" rel="statistics"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/reporteddevices" rel="reporteddevices"/>
        <link href="/api/vms/6ad6fdcd-9643-446d-824e-edf3443700b0/watchdogs" rel="watchdogs"/>
        <type>desktop</type>
        <status>
            <state>up</state>
        </status>
        <memory>2147483648</memory>
        <cpu>
            <topology sockets="2" cores="1"/>
        </cpu>
        <os type="unassigned">
            <boot dev="hd"/>
        </os>
        <high_availability>
            <enabled>false</enabled>
            <priority>1</priority>
        </high_availability>
        <display>
            <type>spice</type>
            <address>NODE_FQDN</address>
            <secure_port>5900</secure_port>
            <monitors>1</monitors>
            <allow_override>false</allow_override>
            <smartcard_enabled>false</smartcard_enabled>
        </display>
        <host href="/api/hosts/5f912f3a-cc1a-43ca-a92e-cda049d19796" id="5f912f3a-cc1a-43ca-a92e-cda049d19796"/>
        <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
        <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
        <start_time>2013-11-05T02:49:48.331-05:00</start_time>
        <creation_time>2013-11-05T01:21:05.697-05:00</creation_time>
        <origin>ovirt</origin>
        <stateless>false</stateless>
        <delete_protected>false</delete_protected>
        <placement_policy>
            <affinity>migratable</affinity>
        </placement_policy>
        <memory_policy>
            <guaranteed>1073741824</guaranteed>
        </memory_policy>
        <quota id="00000000-0000-0000-0000-000000000000"/>
        <usb>
            <enabled>true</enabled>
            <type>native</type>
        </usb>
    </vm>
    <vm href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd" id="e9e384bd-08d2-4b37-96c5-de8dd6bf94cd">
        <actions>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/cancelmigration" rel="cancelmigration"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/ticket" rel="ticket"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/move" rel="move"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/migrate" rel="migrate"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/detach" rel="detach"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/export" rel="export"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/shutdown" rel="shutdown"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/start" rel="start"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/stop" rel="stop"/>
            <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/suspend" rel="suspend"/>
        </actions>
        <name>winbak</name>
        <description/>
        <comment/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/applications" rel="applications"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/disks" rel="disks"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/nics" rel="nics"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/cdroms" rel="cdroms"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/snapshots" rel="snapshots"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/tags" rel="tags"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/permissions" rel="permissions"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/statistics" rel="statistics"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/reporteddevices" rel="reporteddevices"/>
        <link href="/api/vms/e9e384bd-08d2-4b37-96c5-de8dd6bf94cd/watchdogs" rel="watchdogs"/>
        <type>desktop</type>
        <status>
            <state>up</state>
        </status>
        <memory>2147483648</memory>
        <cpu>
            <topology sockets="2" cores="1"/>
        </cpu>
        <os type="unassigned">
            <boot dev="hd"/>
        </os>
        <high_availability>
            <enabled>false</enabled>
            <priority>1</priority>
        </high_availability>
        <display>
            <type>spice</type>
            <address>NODE_FQDN</address>
            <secure_port>5901</secure_port>
            <monitors>1</monitors>
            <allow_override>false</allow_override>
            <smartcard_enabled>false</smartcard_enabled>
        </display>
        <host href="/api/hosts/5f912f3a-cc1a-43ca-a92e-cda049d19796" id="5f912f3a-cc1a-43ca-a92e-cda049d19796"/>
        <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
        <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
        <start_time>2013-11-05T11:01:56.955-05:00</start_time>
        <creation_time>2013-11-05T02:36:09.126-05:00</creation_time>
        <origin>ovirt</origin>
        <stateless>false</stateless>
        <delete_protected>false</delete_protected>
        <placement_policy>
            <affinity>migratable</affinity>
        </placement_policy>
        <memory_policy>
            <guaranteed>1073741824</guaranteed>
        </memory_policy>
        <quota id="00000000-0000-0000-0000-000000000000"/>
        <usb>
            <enabled>true</enabled>
            <type>native</type>
        </usb>
    </vm>
</vms>
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]