Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2014 20:35
Show Gist options
  • Save anonymous/3b9c28ae4583eb3566db to your computer and use it in GitHub Desktop.
Save anonymous/3b9c28ae4583eb3566db to your computer and use it in GitHub Desktop.
root@raptor:/var/log/glance# glance -d image-create --name="CirrOS 0.3.1" --disk-format=qcow2 --container-format=bare --is-public=true < ~/images/cirros-0.3.1-x86_64-disk.img
curl -i -X POST -H 'x-image-meta-container_format: bare' -H 'Transfer-Encoding: chunked' -H 'User-Agent: python-glanceclient' -H 'x-image-meta-size: 13147648' -H 'x-image-meta-is_public: True' -H 'X-Auth-Token: snip’ -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: qcow2' -H 'x-image-meta-name: CirrOS 0.3.1' -d '<open file '<stdin>', mode 'r' at 0x7f40787e1150>' http://raptor:9292/v1/images
2014-04-01 15:32:49.547 10322 WARNING keystoneclient.middleware.auth_token [-] Retrying on HTTP connection exception: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
2014-04-01 15:32:50.062 10322 WARNING keystoneclient.middleware.auth_token [-] Retrying on HTTP connection exception: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
2014-04-01 15:32:51.082 10322 WARNING keystoneclient.middleware.auth_token [-] Retrying on HTTP connection exception: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
2014-04-01 15:32:53.129 10322 ERROR keystoneclient.middleware.auth_token [-] HTTP connection exception: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
2014-04-01 15:32:53.130 10322 WARNING keystoneclient.middleware.auth_token [-] Authorization failed for token
2014-04-01 15:32:53.133 10322 WARNING keystoneclient.middleware.auth_token [-] Unable to find authentication token in headers
HTTP/1.1 500 Internal Server Error
date: Tue, 01 Apr 2014 20:32:53 GMT
content-length: 0
content-type: text/plain
connection: close
Request returned failure status.
HTTPInternalServerError (HTTP 500)
root@raptor:/var/log/glance#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment