Comment 4 for bug 1395207

Revision history for this message
Danny Choi (dannchoi) wrote :

localadmin@qa4:~/devstack$ glance --version
0.14.2.15

localadmin@qa4:~/devstack$ glance --debug image-create --name stcva_4.46 --is-public true --disk-format qcow2 --container-format bare --file /home/localadmin/latest.img
curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}c55d6612cdccb2ca95b4ffc9e43da089f97a850d' -H 'x-image-meta-size: 1073741824' -H 'x-image-meta-is_public: True' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: qcow2' -H 'x-image-meta-name: stcva_4.46' http://172.29.172.161:9292/v1/images
Request returned failure status 403.
Traceback (most recent call last):
  File "/opt/stack/python-glanceclient/glanceclient/shell.py", line 602, in main
    args.func(client, args)
  File "/opt/stack/python-glanceclient/glanceclient/v1/shell.py", line 232, in do_image_create
    image = gc.images.create(**fields)
  File "/opt/stack/python-glanceclient/glanceclient/v1/images.py", line 288, in create
    data=image_data)
  File "/opt/stack/python-glanceclient/glanceclient/common/http.py", line 258, in post
    return self._request('POST', url, **kwargs)
  File "/opt/stack/python-glanceclient/glanceclient/common/http.py", line 223, in _request
    raise exc.from_response(resp, resp.content)
HTTPForbidden: <html>
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
  Access was denied to this resource.<br /><br />

 </body>
</html> (HTTP 403)
<html>
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
  Access was denied to this resource.<br /><br />

 </body>
</html> (HTTP 403)