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

[Xen-API] Difficulties creating a VDI



Hi,

Lastly I've been trying to create a VDI with XAPI (latest Debian pkg, version: 0.1+1318941016-1) on a file-based SR. 
Based on this call (generated by Apache XMLRPC client, comment added): 

<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
    <methodName>VDI.create</methodName>
    <params>
        <param>
            <value>OpaqueRef:8cb4e11c-fbd9-25c7-b0ab-66d31316e4f6</value>
        </param>
        <param>
            <value>
                <struct>
                    <member>
                        <name>other_config</name>
                        <value>
                            <struct/>
                        </value>
                    </member>
                    <member>
                        <name>read_only</name>
                        <value>
                            <boolean>0</boolean>
                        </value>
                    </member>
                    <member>
<!-- Typo in API -->
                        <name>sharable</name>
                        <value>
                            <boolean>1</boolean>
                        </value>
                    </member>
                    <member>
                        <name>name_label</name>
                        <value>VDI-Test</value>
                    </member>
                    <member>
                        <name>virtual_size</name>
                        <value>1073741824</value>
                    </member>
                    <member>
                        <name>type</name>
                        <value>user</value>
                    </member>
                    <member>
                        <name>SR</name>
                        <value>OpaqueRef:abe14a40-c18a-20de-43bd-b0cd33cf351c</value>
                    </member>
                    <member>
                        <name>name_description</name>
                        <value>A VDI test image</value>
                    </member>
                </struct>
            </value>
        </param>
    </params>
</methodCall>

The following log messages are produced (emphasis added):

[20111021T15:06:06.716Z|debug|r2d2|230 INET 172.16.222.205:80|VDI.create R:15bd0dd04f9a|audit] VDI.create: SR = 'e9b69e07-c83f-d965-eeaf-0188a2bf6e70 (File-based SR)'; name label = 'VDI-Test'
[20111021T15:06:06.718Z|debug|r2d2|230 INET 172.16.222.205:80|VDI.create R:15bd0dd04f9a|xapi] Marking SR for VDI.create (task=OpaqueRef:15bd0dd0-4f9a-8302-976c-615a0702ca9b)
[20111021T15:06:06.722Z| info|r2d2|230 INET 172.16.222.205:80|VDI.create R:15bd0dd04f9a|storage_impl] VDI.create task:OpaqueRef:15bd0dd0-4f9a-8302-976c-615a0702ca9b sr:OpaqueRef:abe14a40-c18a-20de-43bd-b0cd33cf351c vdi_info:{"vdi": "", "name_label": "VDI-Test", "name_description": "A VDI test image", "ty": "user", "metadata_of_pool": "", "is_a_snapshot": false, "snapshot_time": "19700101T00:00:00Z", "snapshot_of": "", "read_only": false, "virtual_size": 1073741824, "physical_utilisation": 0} params:
[20111021T15:06:06.723Z|debug|r2d2|230 INET 172.16.222.205:80|VDI.create R:15bd0dd04f9a|dummytaskhelper] task VDI.create D:6d171ad2faa5 created by task R:15bd0dd04f9a
[20111021T15:06:06.723Z|debug|r2d2|230 INET 172.16.222.205:80|VDI.create D:6d171ad2faa5|sm] SM file vdi_create sr=OpaqueRef:abe14a40-c18a-20de-43bd-b0cd33cf351c sm_config=[] type=[user] size=1073741824
[20111021T15:06:06.729Z| info|r2d2|230 INET 172.16.222.205:80|sm_exec D:af57648085be|xapi] Session.create trackid=30c0496742c009f93f26937bd2c388c3 pool=false uname= is_local_superuser=true auth_user_sid= parent=trackid=9834f5af41c964e225f24279aefe4e49
[20111021T15:06:06.730Z|debug|r2d2|230 INET 172.16.222.205:80|sm_exec D:af57648085be|xapi] Attempting to open /var/xapi/xapi
[20111021T15:06:06.734Z|debug|r2d2|268 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:session.get_uuid D:925d97aded5c created by task D:af57648085be
[20111021T15:06:06.883Z|debug|r2d2|269 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:host.get_other_config D:96d9dde902cb created by task D:6d171ad2faa5
[20111021T15:06:06.894Z|debug|r2d2|269 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:06.964Z|debug|r2d2|270 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:VDI.db_introduce D:7b436b78a786 created by task D:6d171ad2faa5
[20111021T15:06:06.973Z| info|r2d2|270 UNIX /var/xapi/xapi|dispatch:VDI.db_introduce D:7b436b78a786|taskhelper] task VDI.db_introduce R:b9c9936e0708 (uuid:f6fe11a7-e41c-69b5-d692-c96afe0a1d58) created (trackid=30c0496742c009f93f26937bd2c388c3) by task D:6d171ad2faa5
[20111021T15:06:06.973Z|debug|r2d2|270 UNIX /var/xapi/xapi|VDI.db_introduce R:b9c9936e0708|xapi] {pool,db}_introduce uuid=058b84a0-61b1-40fa-a9d0-1e454c351e17 name_label=
[20111021T15:06:06.975Z|debug|r2d2|270 UNIX /var/xapi/xapi|VDI.db_introduce R:b9c9936e0708|xapi] VDI.introduce read_only = false
[20111021T15:06:06.980Z|debug|r2d2|270 UNIX /var/xapi/xapi|VDI.db_introduce R:b9c9936e0708|rbac_audit] cannot marshall arguments for the action VDI.db_introduce: name and value list lengths don't match. str_names=[session_id,uuid,name_label,name_description,sR,_type,sharable,read_only,other_config,location,xenstore_data,sm_config,managed,virtual_size,physical_utilisation,metadata_of_pool,is_a_snapshot,snapshot_time,snapshot_of,], xml_values=[<value><string>OpaqueRef:12838b23-e9e3-4e4a-908b-10b922a7d3c6</string></value>,<value><string>058b84a0-61b1-40fa-a9d0-1e454c351e17</string></value>,<value><string/></value>,<value><string/></value>,<value><string>OpaqueRef:abe14a40-c18a-20de-43bd-b0cd33cf351c</string></value>,<value><string>user</string></value>,<value><boolean>0</boolean></value>,<value><boolean>0</boolean></value>,<value><struct/></value>,<value><string>058b84a0-61b1-40fa-a9d0-1e454c351e17</string></value>,<value><struct/></value>,<value><struct/></value>,]
[20111021T15:06:06.990Z|debug|r2d2|270 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:06.992Z|debug|r2d2|271 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:VDI.set_sm_config D:94e799c17a1a created by task D:6d171ad2faa5
[20111021T15:06:06.995Z| info|r2d2|271 UNIX /var/xapi/xapi|dispatch:VDI.set_sm_config D:94e799c17a1a|api_effect] VDI.set_sm_config
[20111021T15:06:06.999Z|debug|r2d2|271 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.004Z|debug|r2d2|272 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:VDI.set_managed D:9bf09214b86d created by task D:6d171ad2faa5
[20111021T15:06:07.010Z|debug|r2d2|272 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.012Z|debug|r2d2|273 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:VDI.set_virtual_size D:7cbe06ab5b5e created by task D:6d171ad2faa5
[20111021T15:06:07.018Z|debug|r2d2|273 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.021Z|debug|r2d2|274 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:VDI.set_physical_utilisation D:1488c6de226e created by task D:6d171ad2faa5
[20111021T15:06:07.028Z|debug|r2d2|274 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.031Z|debug|r2d2|275 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:SR.get_virtual_allocation D:63321b1c5288 created by task D:6d171ad2faa5
[20111021T15:06:07.035Z|debug|r2d2|275 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.037Z|debug|r2d2|276 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:SR.get_by_uuid D:3f9ec1c9f3a5 created by task D:6d171ad2faa5
[20111021T15:06:07.040Z|debug|r2d2|276 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.042Z|debug|r2d2|277 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:SR.set_virtual_allocation D:9cb5b4a7cee6 created by task D:6d171ad2faa5
[20111021T15:06:07.047Z|debug|r2d2|277 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.050Z|debug|r2d2|278 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:SR.set_physical_size D:fd599890513b created by task D:6d171ad2faa5
[20111021T15:06:07.055Z|debug|r2d2|278 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.057Z|debug|r2d2|279 UNIX /var/xapi/xapi||dummytaskhelper] task dispatch:SR.set_physical_utilisation D:cfbb200b3f3e created by task D:6d171ad2faa5
[20111021T15:06:07.069Z|debug|r2d2|279 UNIX /var/xapi/xapi||http_critical] Connection terminated
[20111021T15:06:07.076Z| info|r2d2|230 INET 172.16.222.205:80|sm_exec D:af57648085be|xapi] Session.destroy trackid=30c0496742c009f93f26937bd2c388c3
[20111021T15:06:07.078Z|debug|r2d2|230 INET 172.16.222.205:80|VDI.create R:15bd0dd04f9a|xapi] OpaqueRef:455747a1-a6e2-0a28-0e31-72efc6c4e496 snapshot_of <- OpaqueRef:NULL
[20111021T15:06:07.080Z|debug|r2d2|230 INET 172.16.222.205:80|VDI.create R:15bd0dd04f9a|xapi] Unmarking SR after VDI.create (task=OpaqueRef:15bd0dd0-4f9a-8302-976c-615a0702ca9b)
[20111021T15:06:07.160Z|debug|r2d2|230 INET 172.16.222.205:80||http_critical] Connection terminated

The name and description aren't passed on apparently and the boolean values are all zero (shareable should be 1). 
Here is the output from xe vd-list:

uuid ( RO)                : 058b84a0-61b1-40fa-a9d0-1e454c351e17
          name-label ( RW): 
    name-description ( RW): 
             sr-uuid ( RO): e9b69e07-c83f-d965-eeaf-0188a2bf6e70
        virtual-size ( RO): 1073741824
            sharable ( RO): false
           read-only ( RO): false

This seems to be a bug or am I missing something?

Kind regards,
W
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.