deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Fojtik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-329) format=json leaves out information available when using format=xml
Date Tue, 02 Oct 2012 12:41:07 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467659#comment-13467659
] 

Michal Fojtik commented on DTACLOUD-329:
----------------------------------------

This sounds like a bug in 'crack' library. I'll do more investigation here.
                
> format=json leaves out information available when using format=xml
> ------------------------------------------------------------------
>
>                 Key: DTACLOUD-329
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-329
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Native/Frontend
>         Environment: deltacloud 1.0.3
>            Reporter: Ronelle Landy
>
> When executing GET /api/instance/instance_id there is more information returned about
the collections when using format=xml than when using format=json. For example, see the address
of the instance returned from the two commands below (the xml returns the address type and
port number while the json does not):
> >> curl -X GET --user "un:pw" "http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/instances/0970b349-a32c-48e1-ab04-7f0f3f54065e?format=json"
> {"instance":{"state":"RUNNING","public_addresses":{"address":["10.16.120.155","10.16.120.47"]},"private_addresses":null,"actions":{"link":[{"method":"post","rel":"stop","href":"http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/instances/0970b349-a32c-48e1-ab04-7f0f3f54065e/stop"},{"method":"post","rel":"create_image","href":"http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/create_image;instance_id=0970b349-a32c-48e1-ab04-7f0f3f54065e"}]},"hardware_profile":{"property":[{"value":"512","kind":"fixed","name":"memory","unit":"MB"},{"value":"1","kind":"fixed","name":"cpu","unit":"count"},{"value":"1","kind":"fixed","name":"storage","unit":"GB"}],"id":"SERVER","href":"http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/hardware_profiles/SERVER"},"storage_volumes":null,"realm":{"id":"a9347fb8-5976-11e1-a53e-5254005809b7","href":"http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/realms/a9347fb8-5976-11e1-a53e-5254005809b7"},"id":"0970b349-a32c-48e1-ab04-7f0f3f54065e","name":"i-1348534541","owner_id":"admin@internal","href":"http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/instances/0970b349-a32c-48e1-ab04-7f0f3f54065e","image":{"id":"efea89dc-c952-457d-8202-57261abca50f","href":"http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/images/efea89dc-c952-457d-8202-57261abca50f"},"launch_time":"2012-09-24T20:55:41.539-04:00"}}[rlandy@localhost
~]$ 
> >> curl -X GET --user "un:pw" "http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/instances/0970b349-a32c-48e1-ab04-7f0f3f54065e?format=xml"
> <?xml version='1.0' encoding='utf-8' ?>
> <instance href='http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/instances/0970b349-a32c-48e1-ab04-7f0f3f54065e'
id='0970b349-a32c-48e1-ab04-7f0f3f54065e'>
>   <name>i-1348534541</name>
>   <owner_id>admin@internal</owner_id>
>   <image href='http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/images/efea89dc-c952-457d-8202-57261abca50f'
id='efea89dc-c952-457d-8202-57261abca50f'></image>
>   <realm href='http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/realms/a9347fb8-5976-11e1-a53e-5254005809b7'
id='a9347fb8-5976-11e1-a53e-5254005809b7'></realm>
>   <state>RUNNING</state>
>   <hardware_profile href='http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/hardware_profiles/SERVER'
id='SERVER'>
>     <property kind='fixed' name='memory' unit='MB' value='512'></property>
>     <property kind='fixed' name='cpu' unit='count' value='1'></property>
>     <property kind='fixed' name='storage' unit='GB' value='1'></property>
>   </hardware_profile>
>   <actions>
>     <link href='http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/instances/0970b349-a32c-48e1-ab04-7f0f3f54065e/stop'
method='post' rel='stop' />
>     <link href='http://qeblade26.rhq.lab.eng.bos.redhat.com:3004/api/create_image;instance_id=0970b349-a32c-48e1-ab04-7f0f3f54065e'
method='post' rel='create_image' />
>   </actions>
>   <launch_time>2012-09-24T20:55:41.539-04:00</launch_time>
>   <public_addresses><address type='ipv4'>10.16.120.155</address>
> <address port='5904' type='vnc'>10.16.120.47</address></public_addresses>
>   <private_addresses></private_addresses>
>   <storage_volumes></storage_volumes>
> </instance>
> [rlandy@localhost ~]$ 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message