[ https://issues.apache.org/jira/browse/DTACLOUD-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy resolved DTACLOUD-456. ------------------------------------ Resolution: Fixed Thanks to Christian for providing the test environment ... Tested out this patch by applying it to deltacloud commit version: 9227da24b312ded7f1fc3fa8d4f5a24d1e009257 (master) With the patch, GET /api/instances worked with instances (with and w/o vm type set) [root@qeblade39 ~]# curl -X GET --user "un:pw" "http://localhost:3001/api/instances?format=xml" <?xml version='1.0' encoding='utf-8' ?> <instances> <instance href='http://localhost:3001/api/instances/14' id='14'> <name>...</name> <owner_id>...</owner_id> <image href='http://localhost:3001/api/images/0' id='0'></image> <realm href='http://localhost:3001/api/realms/ONE' id='ONE'></realm> <state>RUNNING</state> <hardware_profile href='http://localhost:3001/api/hardware_profiles/small' id='small'> </hardware_profile> <actions> <link href='http://localhost:3001/api/instances/14/reboot' method='post' rel='reboot' /> <link href='http://localhost:3001/api/instances/14/stop' method='post' rel='stop' /> <link href='http://localhost:3001/api/instances/14' method='delete' rel='destroy' /> </actions> <public_addresses><address type='ipv4'>....</address></public_addresses> <private_addresses></private_addresses> <storage_volumes></storage_volumes> </instance> <instance href='http://localhost:3001/api/instances/17' id='17'> <name>....</name> <owner_id>...</owner_id> <image href='http://localhost:3001/api/images/0' id='0'></image> <realm href='http://localhost:3001/api/realms/ONE' id='ONE'></realm> <state>PENDING</state> <hardware_profile href='http://localhost:3001/api/hardware_profiles/small' id='small'> </hardware_profile> <actions> </actions> <public_addresses></public_addresses> <private_addresses></private_addresses> <storage_volumes></storage_volumes> </instance> </instances> Side note: we hit an issue with getting instances started via OCCI to transition from PENDING to RUNNIING. Please push this patch to master ... after which we can close out this JIRA. > Opennebula: Error occurs when requesting all instances against opennebula > ------------------------------------------------------------------------- > > Key: DTACLOUD-456 > URL: https://issues.apache.org/jira/browse/DTACLOUD-456 > Project: DeltaCloud > Issue Type: Bug > Reporter: Christian Karnath > Assignee: Ronelle Landy > Attachments: > 0001-Opennebula-Fix-when-computehash-INSTANCE_TYPE-is-nil.patch > > > The following error occurs when requesting all instances against opennebula > and one instance has no ‘INSTANCE_TYPE’ set: > E, [2013-02-06T17:42:50.830852 #12715] ERROR -- 500: > [Deltacloud::Exceptions::BackendError] Internal Server Error > 84.62.25.145 - - [06/Feb/2013 17:42:50] "GET /api/instances HTTP/1.1" > opennebula http://occi.c12g.com 500 93 0.5609 > > The attached patch will fix this issue. -- 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