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-319) Rackspace driver: GET /api/instances - new instances are not returned until a number of minutes after they are created
Date Tue, 02 Oct 2012 12:47:07 GMT

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

Michal Fojtik commented on DTACLOUD-319:
----------------------------------------

I checked the 'cloudservers' gem we're using currently. It seems like they use some 'cacheid'
parameter to avoid this caching problem:

https://github.com/rackspace/ruby-cloudservers/blob/master/lib/cloudservers/connection.rb#L115

If Rackspace changed that to use Cache-Control, it should be easy to change it in this gem.
                
> Rackspace driver: GET /api/instances - new instances are not returned until a number
of minutes after they are created
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-319
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-319
>             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='http://qeblade39.rhq.lab.eng.bos.redhat.com:3012/api/instances/21118623'
id='21118623'>
>   <name>myNewName</name>
>   <owner_id>rlandy</owner_id>
>   <image href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3012/api/images/120' id='120'></image>
>   <realm href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3012/api/realms/us' id='us'></realm>
>   <state>PENDING</state>
>   <hardware_profile href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3012/api/hardware_profiles/3'
id='3'>
>   </hardware_profile>
>   <actions>
>     <link href='http://qeblade39.rhq.lab.eng.bos.redhat.com:3012/api/run_instances/21118623;id=21118623'
method='post' rel='run' />
>   </actions>
>   <public_addresses><address type='ipv4'>198.61.198.101</address></public_addresses>
>   <private_addresses><address type='ipv4'>10.178.99.81</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" "http://qeblade39.rhq.lab.eng.bos.redhat.com:3012/api/instances?format=xml"<?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: http://www.atlassian.com/software/jira

Mime
View raw message