[ 
https://issues.apache.org/jira/browse/DTACLOUD-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronelle Landy closed DTACLOUD-417.
----------------------------------

    Resolution: Fixed

Closing issue as fixed in deltacloud 1.1.2 using Opennebula KVM Sandbox:

curl -X GET --user "un:pw" 
"http://localhost:3008/api/hardware_profiles?format=xml";
<?xml version='1.0' encoding='utf-8' ?>
<hardware_profiles>
  <hardware_profile href='http://localhost:3008/api/hardware_profiles/small' 
id='small'>
    <id>small</id>
    <name>small</name>
    <property kind='fixed' name='cpu' unit='count' value='1' />
    <property kind='fixed' name='memory' unit='MB' value='1024' />
  </hardware_profile>
  <hardware_profile href='http://localhost:3008/api/hardware_profiles/medium' 
id='medium'>
    <id>medium</id>
    <name>medium</name>
    <property kind='fixed' name='cpu' unit='count' value='4' />
    <property kind='fixed' name='memory' unit='MB' value='4096' />
  </hardware_profile>
  <hardware_profile href='http://localhost:3008/api/hardware_profiles/large' 
id='large'>
    <id>large</id>
    <name>large</name>
    <property kind='fixed' name='cpu' unit='count' value='8' />
    <property kind='fixed' name='memory' unit='MB' value='8192' />
  </hardware_profile>
</hardware_profiles>

Suspect error was as a result of the OCCI server which was eventually removed 
in favor of using the sandbox.

                
> OpenNebula driver: GET /api/hardware_profiles (or instances/images) gives 
> 'Internal Server Error"
> -------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-417
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-417
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Native/Frontend
>         Environment: Deltacloud commit version: 
> 46374925e9aad1fda635d87fa1c39290176e66f6
> Opennebula driver
> OCCI_URL=​http://occi.c12g.com
> Native frontend
>            Reporter: Ronelle Landy
>
> [rlandy@localhost /]$ curl -X GET --user "un:pw" 
> "http://hostname:3003/api/hardware_profiles?format=xml";
> <?xml version='1.0' encoding='utf-8' ?>
> <error status='500' url='/api/hardware_profiles'>
>   <kind>backend_error</kind>
>   <backend driver='opennebula' provider='default'>
>     <code>500</code>
>   </backend>
>   <message><![CDATA[Internal Server Error]]></message>
>   <request>
>     <param name='format'>xml</param>
>   </request>
> </error>
> [rlandy@localhost /]$ curl -X GET --user "un:pw" 
> "http://hostname:3003/api/hardware_profiles?format=json";
> {"code":500,"message":"Internal Server 
> Error","error":"Deltacloud::Exceptions::BackendError"}
> /GET realms, drivers, api etc. all return ok.
> The last time we saw a similar issue, the OCCI_URL needed updating or 
> modification.

--
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

Reply via email to