I can't create a snapshot - nova image-create fails

asked 2017-04-03 11:12:42 -0500

Daniel Kallner gravatar image


When trying to create a snapshot from Horizon, the operation started and finished without prompting an error, without an image in the end. It worked for two instances but fails for the other.

When trying to create the snapshot from CLI:

root@ctrl0:/etc/glance# nova --debug image-create --poll  867b2f9e-88b9-466c-a9f2-8437374fdd65 vsetup-content-v2
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.3.0 python-requests/2.9.1 CPython/2.7.6"
INFO (connectionpool:207) Starting new HTTP connection (1):
DEBUG (connectionpool:387) "GET / HTTP/1.1" 300 593
DEBUG (session:277) RESP: [300] Content-Length: 593 Vary: X-Auth-Token Server: Apache Connection: close Date: Mon, 03 Apr 2017 15:33:27 GMT Content-Type: application/json 
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}

DEBUG (v2:63) Making authentication request to
INFO (connectionpool:242) Resetting dropped connection:
DEBUG (connectionpool:387) "POST /v2.0/tokens HTTP/1.1" 200 4911
DEBUG (session:248) REQ: curl -g -i -X GET -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}62024e285eb1d76fed48dbfedd7c85e45a79850a"
INFO (connectionpool:207) Starting new HTTP connection (1):
DEBUG (connectionpool:387) "GET /v2.1 HTTP/1.1" 302 0
DEBUG (session:277) RESP: [302] Content-Length: 0 X-Compute-Request-Id: req-4cb3ceea-e823-438c-a966-4cbebc897f35 Connection: close Location: Date: Mon, 03 Apr 2017 15:33:27 GMT Content-Type: text/plain; charset=utf8
INFO (connectionpool:242) Resetting dropped connection:
DEBUG (connectionpool:387) "GET /v2.1/ HTTP/1.1" 200 386
DEBUG (session:277) RESP: [200] Content-Length: 386 X-Compute-Request-Id: req-09672e3b-50de-436f-82d3-24904fb7576f Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.1 Date: Mon, 03 Apr 2017 15:33:27 ...
edit retag flag offensive close merge delete


It seems something prevents the image upload from completing. You should get clues from the glance-api log. You can also test Glance by manually uploading a file as large as your instance's memory using glance image-create. Any big file works; Glance doesn't care if it's real image.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-04 00:18:16 -0500 )edit