deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Karnath (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DTACLOUD-306) can't retrieve instance details with openstack driver
Date Thu, 23 Aug 2012 15:02:42 GMT

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

Christian Karnath edited comment on DTACLOUD-306 at 8/24/12 2:01 AM:
---------------------------------------------------------------------

I can reproduce this issue against an OpenStack Essex installation. I guess this issue occurs
because in older OpenStack-versions (Diablo etc.) the instance-id _and_ image-id were an integer
and in Essex they are now a guid-string.

I did a quick lookup in the file openstack_driver.rb and replaced  some "to_i"-functions in
"to_s"-functions and everything works fine:

server = os.get_server(instance_id.to_i)
changed to
server = os.get_server(instance_id.to_s)

and
server = os.get_server(opts[:id].to_i)
changed to
server = os.get_server(opts[:id].to_s)

(I'm sorry that I'm not familiar in how to produce a patch-file yet)


                
      was (Author: karnath):
    I can reproduce this issue against an OpenStack Essex installation. I guess this issue
occurs because in older OpenStack-versions (Diablo etc.) the instance-id _and_ image-id was
an integer and in Essex it is now a guid-string.

I did a quick lookup in the file openstack_driver.rb and replaced  some "to_i"-functions in
"to_s"-functions and everything works fine:

server = os.get_server(instance_id.to_i)
changed to
server = os.get_server(instance_id.to_s)

and
server = os.get_server(opts[:id].to_i)
changed to
server = os.get_server(opts[:id].to_s)

(I'm sorry that I'm not familiar in how to produce a patch-file yet)


                  
> can't retrieve instance details with openstack driver
> -----------------------------------------------------
>
>                 Key: DTACLOUD-306
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-306
>             Project: DeltaCloud
>          Issue Type: Bug
>            Reporter: Marios Andreou
>            Assignee: Marios Andreou
>
> NOTE: AS REPORTED BY Leander Bessa Beernaert to dev@deltacloud.apache.org mailing list:
> I've been tasked to look at Deltacloud, in particular the OpenStack driver.
> I have a small OpenStack setup running with OpenStack Essex on Ubuntu
> 12.04. Each time i try to see an instance in detail i get the following
> error: 
> OpenStack::Exception::ItemNotFound:The resource could not be found.
> /var/lib/gems/1.9.1/gems/openstack-1.0.1/lib/openstack/connection.rb:436:in `raise_exception'
> /var/lib/gems/1.9.1/gems/openstack-1.0.1/lib/openstack/connection.rb:189:in `req'
> /var/lib/gems/1.9.1/gems/openstack-1.0.1/lib/openstack/compute/server.rb:52:in `populate'
> /var/lib/gems/1.9.1/gems/openstack-1.0.1/lib/openstack/compute/server.rb:37:in `initialize'
> /var/lib/gems/1.9.1/gems/openstack-1.0.1/lib/openstack/compute/connection.rb:28:in `new'
> /var/lib/gems/1.9.1/gems/openstack-1.0.1/lib/openstack/compute/connection.rb:28:in `get_server'
> /var/lib/gems/1.9.1/gems/deltacloud-core-1.0.1/lib/deltacloud/drivers/openstack/openstack_driver.rb:122:in
`block in instances'
> /var/lib/gems/1.9.1/gems/deltacloud-core-1.0.1/lib/deltacloud/drivers/exceptions.rb:181:in
`call'
> /var/lib/gems/1.9.1/gems/deltacloud-core-1.0.1/lib/deltacloud/drivers/exceptions.rb:181:in
`safely'
> /var/lib/gems/1.9.1/gems/deltacloud-core-1.0.1/lib/deltacloud/drivers/openstack/openstack_driver.rb:120:in
`instances'
> /var/lib/gems/1.9.1/gems/deltacloud-core-1.0.1/lib/deltacloud/drivers/base_driver.rb:217:in
`instance'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message