You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Andrejs Abele (JIRA)" <ji...@apache.org> on 2012/09/06 12:19:07 UTC
[jira] [Created] (DTACLOUD-317) Openstack driver understands only
numeric part of instances ID
Andrejs Abele created DTACLOUD-317:
--------------------------------------
Summary: Openstack driver understands only numeric part of instances ID
Key: DTACLOUD-317
URL: https://issues.apache.org/jira/browse/DTACLOUD-317
Project: DeltaCloud
Issue Type: Bug
Components: Native/Frontend
Environment: openstack Essex
Ubuntu 12.04 server amd64 deltacloud-core 1.0.2
installed using "gem install deltacloud-core"
Reporter: Andrejs Abele
I started deltacloud using this command
"deltacloudd -i openstack -r 10.196.2.84"
Listing all instances works
"curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances?format=xml"
but when I try to get information about a certain instance
root@Development1:/home/administrator# curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances/104289a8-a5d0-46a7-8114-c4d7c3ee688d?format=xml
<h1>Not Found</h1>
on Essex side in logs can see, that only first numeric part of instances ID arrived
Instances ID is "104289a8-a5d0-46a7-8114-c4d7c3ee688d" but on Essex arrived only "104289"
/var/log/nova/nova-api.log
2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] GET http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289
2012-09-06 11:14:55 DEBUG nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] Empty body provided in request from (pid=1518) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:705
2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] HTTP exception thrown: The resource could not be found.
2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289 returned with HTTP 404
--
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
[jira] [Assigned] (DTACLOUD-317) Openstack driver understands only
numeric part of instances ID
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-317:
---------------------------------------
Assignee: Marios Andreou
> Openstack driver understands only numeric part of instances ID
> ----------------------------------------------------------------
>
> Key: DTACLOUD-317
> URL: https://issues.apache.org/jira/browse/DTACLOUD-317
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: openstack Essex
> Ubuntu 12.04 server amd64 deltacloud-core 1.0.2
> installed using "gem install deltacloud-core"
> Reporter: Andrejs Abele
> Assignee: Marios Andreou
>
> I started deltacloud using this command
> "deltacloudd -i openstack -r 10.196.2.84"
> Listing all instances works
> "curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances?format=xml"
> but when I try to get information about a certain instance
> root@Development1:/home/administrator# curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances/104289a8-a5d0-46a7-8114-c4d7c3ee688d?format=xml
> <h1>Not Found</h1>
> on Essex side in logs can see, that only first numeric part of instances ID arrived
> Instances ID is "104289a8-a5d0-46a7-8114-c4d7c3ee688d" but on Essex arrived only "104289"
> /var/log/nova/nova-api.log
>
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] GET http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289
> 2012-09-06 11:14:55 DEBUG nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] Empty body provided in request from (pid=1518) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:705
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] HTTP exception thrown: The resource could not be found.
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289 returned with HTTP 404
--
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
[jira] [Commented] (DTACLOUD-317) Openstack driver understands only
numeric part of instances ID
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449673#comment-13449673 ]
Marios Andreou commented on DTACLOUD-317:
-----------------------------------------
Andrej - sorry I just re-read your ticket. You are using deltacloud-core 1.0.2 gem. Apart from the changes in the openstack gem we made a fix in the deltacloud code itself which would cause the behaviour you're seeing.
If you are able to get the latest deltacloud code from git, you'll get the fix. Otherwise, we are preparing the 1.0.3 release in the next few days.
For getting the sources, see http://deltacloud.apache.org/getting-sources.html - basically:
$ mkdir DELTACLOUD; cd DELTACLOUD
$ git clone git://git.apache.org/deltacloud.git
./server/bin/deltacloudd -i openstack
sorry about the confusion,
marios
> Openstack driver understands only numeric part of instances ID
> ----------------------------------------------------------------
>
> Key: DTACLOUD-317
> URL: https://issues.apache.org/jira/browse/DTACLOUD-317
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: openstack Essex
> Ubuntu 12.04 server amd64 deltacloud-core 1.0.2
> installed using "gem install deltacloud-core"
> Reporter: Andrejs Abele
> Assignee: Marios Andreou
>
> I started deltacloud using this command
> "deltacloudd -i openstack -r 10.196.2.84"
> Listing all instances works
> "curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances?format=xml"
> but when I try to get information about a certain instance
> root@Development1:/home/administrator# curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances/104289a8-a5d0-46a7-8114-c4d7c3ee688d?format=xml
> <h1>Not Found</h1>
> on Essex side in logs can see, that only first numeric part of instances ID arrived
> Instances ID is "104289a8-a5d0-46a7-8114-c4d7c3ee688d" but on Essex arrived only "104289"
> /var/log/nova/nova-api.log
>
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] GET http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289
> 2012-09-06 11:14:55 DEBUG nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] Empty body provided in request from (pid=1518) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:705
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] HTTP exception thrown: The resource could not be found.
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289 returned with HTTP 404
--
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
[jira] [Commented] (DTACLOUD-317) Openstack driver understands only
numeric part of instances ID
Posted by "Andrejs Abele (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449613#comment-13449613 ]
Andrejs Abele commented on DTACLOUD-317:
----------------------------------------
I still have the same issue.
I also removed previous openstack gem.
I attached deltaclouds log below
--------------------
OpenStack::Exception::ItemNotFound:The resource could not be found.
/var/lib/gems/1.9.1/gems/openstack-1.0.4/lib/openstack/connection.rb:434:in `raise_exception'
/var/lib/gems/1.9.1/gems/openstack-1.0.4/lib/openstack/connection.rb:187:in `req'
/var/lib/gems/1.9.1/gems/openstack-1.0.4/lib/openstack/compute/server.rb:53:in `populate'
/var/lib/gems/1.9.1/gems/openstack-1.0.4/lib/openstack/compute/server.rb:38:in `initialize'
/var/lib/gems/1.9.1/gems/openstack-1.0.4/lib/openstack/compute/connection.rb:30:in `new'
/var/lib/gems/1.9.1/gems/openstack-1.0.4/lib/openstack/compute/connection.rb:30:in `get_server'
/var/lib/gems/1.9.1/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/openstack/openstack_driver.rb:122:in `block in instances'
/var/lib/gems/1.9.1/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/exceptions.rb:181:in `call'
/var/lib/gems/1.9.1/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/exceptions.rb:181:in `safely'
/var/lib/gems/1.9.1/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/openstack/openstack_driver.rb:120:in `instances'
/var/lib/gems/1.9.1/gems/deltacloud-core-1.0.2/lib/deltacloud/drivers/base_driver.rb:221:in `instance'
10.196.2.84 - - [06/Sep/2012 11:42:22] "GET /api/instances/104289a8-a5d0-46a7-8114-c4d7c3ee688d?format=xml HTTP/1.1" 404 18 1.2994
thanks, Andrejs
> Openstack driver understands only numeric part of instances ID
> ----------------------------------------------------------------
>
> Key: DTACLOUD-317
> URL: https://issues.apache.org/jira/browse/DTACLOUD-317
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: openstack Essex
> Ubuntu 12.04 server amd64 deltacloud-core 1.0.2
> installed using "gem install deltacloud-core"
> Reporter: Andrejs Abele
> Assignee: Marios Andreou
>
> I started deltacloud using this command
> "deltacloudd -i openstack -r 10.196.2.84"
> Listing all instances works
> "curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances?format=xml"
> but when I try to get information about a certain instance
> root@Development1:/home/administrator# curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances/104289a8-a5d0-46a7-8114-c4d7c3ee688d?format=xml
> <h1>Not Found</h1>
> on Essex side in logs can see, that only first numeric part of instances ID arrived
> Instances ID is "104289a8-a5d0-46a7-8114-c4d7c3ee688d" but on Essex arrived only "104289"
> /var/log/nova/nova-api.log
>
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] GET http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289
> 2012-09-06 11:14:55 DEBUG nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] Empty body provided in request from (pid=1518) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:705
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] HTTP exception thrown: The resource could not be found.
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289 returned with HTTP 404
--
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
[jira] [Commented] (DTACLOUD-317) Openstack driver understands only
numeric part of instances ID
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449550#comment-13449550 ]
Marios Andreou commented on DTACLOUD-317:
-----------------------------------------
Hi Andrejs, this sounds like an issue with the openstack ruby gem which we fixed yesterday. Can you please install the latest version of openstack gem (1.0.4) and try again?
gem install openstack (should give you 1.0.4)... "gem list openstack " should tell you what you currently have,
let me know if this works, otherwise we try something else,
thanks, marios
> Openstack driver understands only numeric part of instances ID
> ----------------------------------------------------------------
>
> Key: DTACLOUD-317
> URL: https://issues.apache.org/jira/browse/DTACLOUD-317
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: openstack Essex
> Ubuntu 12.04 server amd64 deltacloud-core 1.0.2
> installed using "gem install deltacloud-core"
> Reporter: Andrejs Abele
> Assignee: Marios Andreou
>
> I started deltacloud using this command
> "deltacloudd -i openstack -r 10.196.2.84"
> Listing all instances works
> "curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances?format=xml"
> but when I try to get information about a certain instance
> root@Development1:/home/administrator# curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances/104289a8-a5d0-46a7-8114-c4d7c3ee688d?format=xml
> <h1>Not Found</h1>
> on Essex side in logs can see, that only first numeric part of instances ID arrived
> Instances ID is "104289a8-a5d0-46a7-8114-c4d7c3ee688d" but on Essex arrived only "104289"
> /var/log/nova/nova-api.log
>
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] GET http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289
> 2012-09-06 11:14:55 DEBUG nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] Empty body provided in request from (pid=1518) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:705
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] HTTP exception thrown: The resource could not be found.
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289 returned with HTTP 404
--
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
[jira] [Commented] (DTACLOUD-317) Openstack driver understands only
numeric part of instances ID
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449646#comment-13449646 ]
Marios Andreou commented on DTACLOUD-317:
-----------------------------------------
Hi Andrejs, I can't reproduce this against Essex.
Can you show me the output of 'all instances' and then for a specific instance. Are you seeing something interesting/different in the nova logs now? (shouldn't be the same issue as before since the 1.0.4 gem addressed that). What happens when you use the HTML UI for deltacloud instead of curl?
thanks, marios
> Openstack driver understands only numeric part of instances ID
> ----------------------------------------------------------------
>
> Key: DTACLOUD-317
> URL: https://issues.apache.org/jira/browse/DTACLOUD-317
> Project: DeltaCloud
> Issue Type: Bug
> Components: Native/Frontend
> Environment: openstack Essex
> Ubuntu 12.04 server amd64 deltacloud-core 1.0.2
> installed using "gem install deltacloud-core"
> Reporter: Andrejs Abele
> Assignee: Marios Andreou
>
> I started deltacloud using this command
> "deltacloudd -i openstack -r 10.196.2.84"
> Listing all instances works
> "curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances?format=xml"
> but when I try to get information about a certain instance
> root@Development1:/home/administrator# curl --user "username+tenant:pass" -H 'X-Deltacloud-Provider:http://nimbus01.sindice.net:5000/v2.0' http://10.196.2.84:3001/api/instances/104289a8-a5d0-46a7-8114-c4d7c3ee688d?format=xml
> <h1>Not Found</h1>
> on Essex side in logs can see, that only first numeric part of instances ID arrived
> Instances ID is "104289a8-a5d0-46a7-8114-c4d7c3ee688d" but on Essex arrived only "104289"
> /var/log/nova/nova-api.log
>
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] GET http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289
> 2012-09-06 11:14:55 DEBUG nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] Empty body provided in request from (pid=1518) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:705
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] HTTP exception thrown: The resource could not be found.
> 2012-09-06 11:14:55 INFO nova.api.openstack.wsgi [req-06da1ca6-8fc4-44e0-a6d7-14eaebf03ab3 13098b0fd6584ed488e41da792df7fc4 fc8b65df1f0748d198e6d99ae7ee9505] http://10.196.106.211:8774/v2/fc8b65df1f0748d198e6d99ae7ee9505/servers/104289 returned with HTTP 404
--
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