deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Karnath (JIRA)" <>
Subject [jira] [Commented] (DTACLOUD-319) Rackspace driver: GET /api/instances - new instances are not returned until a number of minutes after they are created
Date Wed, 10 Oct 2012 16:01:02 GMT


Christian Karnath commented on DTACLOUD-319:

I checked the 'cloudservers' gem as well and indeed they implemented a 'cacheid'-parameter
(anti_cache_param) to avoid caching. I wrote a little ruby-script to evaluate the caching
behaviour of the rackspace api while using the cloudservers-gem directly. I found out that
the operation list_servers() works as expected without caching old data. After that I checked
the deltacloud rackspace driver and found out that this driver is using the operation list_servers_detail()
and not list_servers(). The operation list_servers_detail() is lacking the cacheid-paramter
to avoid caching. After implementing this parameter in this operation everything works smoothly.

Is anybody in contact with the cloudservers gem maintainer so that he can implement the cacheid-paramter
within the list_servers_detail()-operation? 

> Rackspace driver: GET /api/instances - new instances are not returned until a number
of minutes after they are created
> ----------------------------------------------------------------------------------------------------------------------
>                 Key: DTACLOUD-319
>                 URL:
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: deltacloud gem 1.0.2 (and beyond)
> Rackpsace
> Ruby 1.9
>            Reporter: Ronelle Landy
> I can create an instance .... 
> curl -X POST -F "image_id=120" -F "name=myNewName" -F "hwp_id=3" --user "un:pw" "http:/server:3012/api/instances?format=xml"
> <?xml version='1.0' encoding='utf-8' ?>
> <instance href=''
>   <name>myNewName</name>
>   <owner_id>rlandy</owner_id>
>   <image href='' id='120'></image>
>   <realm href='' id='us'></realm>
>   <state>PENDING</state>
>   <hardware_profile href=''
>   </hardware_profile>
>   <actions>
>     <link href=';id=21118623'
method='post' rel='run' />
>   </actions>
>   <public_addresses><address type='ipv4'></address></public_addresses>
>   <private_addresses><address type='ipv4'></address></private_addresses>
>   <storage_volumes></storage_volumes>
>   <authentication type='password'>
>     <login>
>       <username>root</username>
>       <password><![CDATA[6N6dBvOk2myNewName]]></password>
>     </login>
>   </authentication>
> </instance>
> The instance appears in the Rackspace console - copied output below:
> (Name
>     myNewName
> ID
>     21118623)
> But Deltacloud does not return this instance:
> [rlandy@localhost /]$ curl -X GET --user "un:pw" ""<?xml
version='1.0' encoding='utf-8' ?>
> <instances>
> </instances>

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:

View raw message