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)
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/localadmi n/latest. img meta-container_ format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}c55d6612c dccb2ca95b4ffc9 e43da089f97a850 d' -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 python- glanceclient/ glanceclient/ shell.py" , line 602, in main func(client, args) python- glanceclient/ glanceclient/ v1/shell. py", line 232, in do_image_create create( **fields) python- glanceclient/ glanceclient/ v1/images. py", line 288, in create image_data) python- glanceclient/ glanceclient/ common/ http.py" , line 258, in post 'POST', url, **kwargs) python- glanceclient/ glanceclient/ common/ http.py" , line 223, in _request response( resp, resp.content)
curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-
Request returned failure status 403.
Traceback (most recent call last):
File "/opt/stack/
args.
File "/opt/stack/
image = gc.images.
File "/opt/stack/
data=
File "/opt/stack/
return self._request(
File "/opt/stack/
raise exc.from_
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)