Ronelle Landy created DTACLOUD-450:
--------------------------------------
Summary: Creating images from instances - Openstack provider
returns 404 although the image is created
Key: DTACLOUD-450
URL: https://issues.apache.org/jira/browse/DTACLOUD-450
Project: DeltaCloud
Issue Type: Bug
Environment: Deltacloud commit version:
3ecb4feeefab8af9481a7a74aa70ba9f4ce7d87a
Openstack provider
Reporter: Ronelle Landy
Not sure how reproducible this is, but I found it while working on HP's cloud.
Note the 404 error returned below, yet querying for the image it exists...
curl -v -X POST -F "name=myName" -F "instance_id=1014703" --user "un:pw"
"http://localhost:3001/api/images?format=xml"
* About to connect() to localhost port 3001 (#0)
* Trying ::1...
* Connection refused
* Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 3001 (#0)
* Server auth using Basic with user ''
> POST /api/images?format=xml HTTP/1.1
>
* Done waiting for 100-continue
< HTTP/1.1 404 Not Found
< Content-Type: application/xml
< X-Cascade: pass
< Server: Apache-Deltacloud/1.1.0
< X-Deltacloud-Driver: openstack
< X-Deltacloud-Provider:
https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/
< Content-Length: 199
< Date: Thu, 31 Jan 2013 18:18:23 GMT
< Connection: keep-alive
* HTTP error before end of send, stop sending
<
<error status='404' url='/api/images'>
<backend driver='openstack'
provider='https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/'></backend>
<message>Resource not found</message>
</error>
curl -v -X GET --user "un:pw" "http://localhost:3001/api/images?format=xml"
< HTTP/1.1 200 OK
<?xml version='1.0' encoding='utf-8' ?>
<images>
<image href='http://localhost:3001/api/images/67576' id='67576'>
<name>myName</name>
<description>myName</description>
<owner_id>xxxxxxx</owner_id>
<architecture>x86_64</architecture>
<state>ACTIVE</state>
<creation_time>2013-01-31T18:18:22Z</creation_time>
<hardware_profiles>
<hardware_profile href='http://localhost:3001/api/hardware_profiles/100'
id='100' rel='hardware_profile'></hardware_profile>
<hardware_profile href='http://localhost:3001/api/hardware_profiles/101'
id='101' rel='hardware_profile'></hardware_profile>
<hardware_profile href='http://localhost:3001/api/hardware_profiles/105'
id='105' rel='hardware_profile'></hardware_profile>
<hardware_profile href='http://localhost:3001/api/hardware_profiles/103'
id='103' rel='hardware_profile'></hardware_profile>
<hardware_profile href='http://localhost:3001/api/hardware_profiles/102'
id='102' rel='hardware_profile'></hardware_profile>
<hardware_profile href='http://localhost:3001/api/hardware_profiles/104'
id='104' rel='hardware_profile'></hardware_profile>
</hardware_profiles>
<root_type>transient</root_type>
<actions>
<link href='http://localhost:3001/api/instances;image_id=67576'
method='post' rel='create_instance' />
<link href='http://localhost:3001/api/images/67576' method='delete'
rel='destroy_image' />
</actions>
</image>
--
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