[
https://issues.apache.org/jira/browse/DTACLOUD-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439491#comment-13439491
]
Leander Beernaert commented on DTACLOUD-306:
--------------------------------------------
1:
* About to connect() to 127.0.0.1 port 3001 (#0)
* Trying 127.0.0.1... connected
* Server auth using Basic with user 'admin+admin'
> GET /api/instances?format=xml HTTP/1.1
> Authorization: Basic YWRtaW4rYWRtaW46bm92YQ==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
> zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 127.0.0.1:3001
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Frame-Options: sameorigin
< X-XSS-Protection: 1; mode=block
< Content-Type: application/xml
< X-Backend-Runtime: 0.6583676338195801
< Server: Apache-Deltacloud/1.0.0
< X-Deltacloud-Driver: openstack
< X-Deltacloud-Provider: http://192.168.111.220:35357/v2.0/
< Content-Length: 5372
< ETag: "55c9e339c7ce2b0cfc3e17b337d9b8c5"
< Cache-Control: max-age=0, private, must-revalidate
< Date: Wed, 22 Aug 2012 13:39:25 GMT
< Connection: keep-alive
<
<?xml version='1.0' encoding='utf-8' ?>
<instances>
<instance
href='http://127.0.0.1:3001/api/instances/18b1cf8a-873c-448c-b377-ea646a61a62d'
id='18b1cf8a-873c-448c-b377-ea646a61a62d'>
<name>region1</name>
<owner_id>admin</owner_id>
<image
href='http://127.0.0.1:3001/api/images/fb7aa7f1-89a4-4fee-ba08-c4081dacd413'
id='fb7aa7f1-89a4-4fee-ba08-c4081dacd413'></image>
<realm href='http://127.0.0.1:3001/api/realms/default' id='default'></realm>
<state>RUNNING</state>
<hardware_profile href='http://127.0.0.1:3001/api/hardware_profiles/6'
id='6'>
</hardware_profile>
<actions>
<link
href='http://127.0.0.1:3001/api/instances/18b1cf8a-873c-448c-b377-ea646a61a62d/reboot'
method='post' rel='reboot' />
<link
href='http://127.0.0.1:3001/api/instances/18b1cf8a-873c-448c-b377-ea646a61a62d/stop'
method='post' rel='stop' />
<link
href='http://127.0.0.1:3001/api/create_image;instance_id=18b1cf8a-873c-448c-b377-ea646a61a62d'
method='post' rel='create_image' />
</actions>
<public_addresses></public_addresses>
<private_addresses></private_addresses>
<storage_volumes></storage_volumes>
<authentication type='key'>
<login>
<username>root</username>
<password><![CDATA[]]></password>
</login>
<login>
<keyname></keyname>
</login>
</authentication>
</instance>
<instance
href='http://127.0.0.1:3001/api/instances/ecadf392-9278-41fb-a6d2-5b2e4e2ebe52'
id='ecadf392-9278-41fb-a6d2-5b2e4e2ebe52'>
<name>region2</name>
<owner_id>admin</owner_id>
<image
href='http://127.0.0.1:3001/api/images/fb7aa7f1-89a4-4fee-ba08-c4081dacd413'
id='fb7aa7f1-89a4-4fee-ba08-c4081dacd413'></image>
<realm href='http://127.0.0.1:3001/api/realms/default' id='default'></realm>
<state>RUNNING</state>
<hardware_profile href='http://127.0.0.1:3001/api/hardware_profiles/6'
id='6'>
</hardware_profile>
<actions>
<link
href='http://127.0.0.1:3001/api/instances/ecadf392-9278-41fb-a6d2-5b2e4e2ebe52/reboot'
method='post' rel='reboot' />
<link
href='http://127.0.0.1:3001/api/instances/ecadf392-9278-41fb-a6d2-5b2e4e2ebe52/stop'
method='post' rel='stop' />
<link
href='http://127.0.0.1:3001/api/create_image;instance_id=ecadf392-9278-41fb-a6d2-5b2e4e2ebe52'
method='post' rel='create_image' />
</actions>
<public_addresses></public_addresses>
<private_addresses></private_addresses>
<storage_volumes></storage_volumes>
<authentication type='key'>
<login>
<username>root</username>
<password><![CDATA[]]></password>
</login>
<login>
<keyname></keyname>
</login>
</authentication>
</instance>
<instance
href='http://127.0.0.1:3001/api/instances/2a308316-ee76-4df7-b050-c7de0d18b569'
id='2a308316-ee76-4df7-b050-c7de0d18b569'>
<name>master</name>
<owner_id>admin</owner_id>
<image
href='http://127.0.0.1:3001/api/images/fb7aa7f1-89a4-4fee-ba08-c4081dacd413'
id='fb7aa7f1-89a4-4fee-ba08-c4081dacd413'></image>
<realm href='http://127.0.0.1:3001/api/realms/default' id='default'></realm>
<state>RUNNING</state>
<hardware_profile href='http://127.0.0.1:3001/api/hardware_profiles/6'
id='6'>
</hardware_profile>
<actions>
<link
href='http://127.0.0.1:3001/api/instances/2a308316-ee76-4df7-b050-c7de0d18b569/reboot'
method='post' rel='reboot' />
<link
href='http://127.0.0.1:3001/api/instances/2a308316-ee76-4df7-b050-c7de0d18b569/stop'
method='post' rel='stop' />
<link
href='http://127.0.0.1:3001/api/create_image;instance_id=2a308316-ee76-4df7-b050-c7de0d18b569'
method='post' rel='create_image' />
</actions>
<public_addresses></public_addresses>
<private_addresses></private_addresses>
<storage_volumes></storage_volumes>
<authentication type='key'>
<login>
<username>root</username>
<password><![CDATA[]]></password>
</login>
<login>
<keyname></keyname>
</login>
</authentication>
</instance>
<instance
href='http://127.0.0.1:3001/api/instances/e7a2695a-9ac2-4cf4-a720-2dc2e2f7adfb'
id='e7a2695a-9ac2-4cf4-a720-2dc2e2f7adfb'>
<name>client1</name>
<owner_id>admin</owner_id>
<image
href='http://127.0.0.1:3001/api/images/fb7aa7f1-89a4-4fee-ba08-c4081dacd413'
id='fb7aa7f1-89a4-4fee-ba08-c4081dacd413'></image>
<realm href='http://127.0.0.1:3001/api/realms/default' id='default'></realm>
<state>RUNNING</state>
<hardware_profile href='http://127.0.0.1:3001/api/hardware_profiles/6'
id='6'>
</hardware_profile>
<actions>
<link
href='http://127.0.0.1:3001/api/instances/e7a2695a-9ac2-4cf4-a720-2dc2e2f7adfb/reboot'
method='post' rel='reboot' />
<link
href='http://127.0.0.1:3001/api/instances/e7a2695a-9ac2-4cf4-a720-2dc2e2f7adfb/stop'
method='post' rel='stop' />
<link
href='http://127.0.0.1:3001/api/create_image;instance_id=e7a2695a-9ac2-4cf4-a720-2dc2e2f7adfb'
method='post' rel='create_image' />
</actions>
<public_addresses></public_addresses>
<private_addresses></private_addresses>
<storage_volumes></storage_volumes>
<authentication type='key'>
<login>
<username>root</username>
<password><![CDATA[]]></password>
</login>
<login>
<keyname></keyname>
</login>
</authentication>
</instance>
</instances>
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
2:
<h1>Not Found</h1>
curl -v --user "admin+admin:nova"
"http://127.0.0.1:3001/api/instances/2a308316-ee76-4df7-b050-c7de0d18b569?format=xml"
* About to connect() to 127.0.0.1 port 3001 (#0)
* Trying 127.0.0.1... connected
* Server auth using Basic with user 'admin+admin'
> GET /api/instances/2a308316-ee76-4df7-b050-c7de0d18b569?format=xml HTTP/1.1
> Authorization: Basic YWRtaW4rYWRtaW46bm92YQ==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
> zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 127.0.0.1:3001
> Accept: */*
>
< HTTP/1.1 404 Not Found
< X-Frame-Options: sameorigin
< X-XSS-Protection: 1; mode=block
< Content-Type: text/html;charset=utf-8
< X-Cascade: pass
< Server: Apache-Deltacloud/1.0.0
< X-Deltacloud-Driver: openstack
< X-Deltacloud-Provider: http://192.168.111.220:35357/v2.0/
< Content-Length: 18
< Date: Wed, 22 Aug 2012 13:41:49 GMT
< Connection: keep-alive
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
> 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 [email protected]
> 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