Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova image-create fails for taking snapshot

Open stack Version Kilo OS RHEL Issue with both command line as well as dashboard

nova --debug image-create --poll test123 test123snap

DEBUG (session:195) REQ: curl -g -i -X GET http://auth:5000/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" INFO (connectionpool:203) Starting new HTTP connection (1): auth DEBUG (connectionpool:383) "GET /v3 HTTP/1.1" 200 245 DEBUG (session:224) RESP: [200] content-length: 245 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.6 (Red Hat Enterprise Linux) mod_wsgi/3.4 Python/2.7.5 connection: Keep-Alive date: Fri, 02 Sep 2016 10:25:37 GMT content-type: application/json x-openstack-request-id: req-18f190bf-932a-4e0e-8a8c-b6376240b9db RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://auth:5000/v3/", "rel": "self"}]}}

DEBUG (base:171) Making authentication request to http://auth:5000/v3/auth/tokens DEBUG (connectionpool:383) "POST /v3/auth/tokens HTTP/1.1" 201 13122 DEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers?name=test123 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" INFO (connectionpool:203) Starting new HTTP connection (1): proxy DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/servers?name=test123 HTTP/1.1" 200 386 DEBUG (session:224) RESP: [200] date: Fri, 02 Sep 2016 10:25:37 GMT connection: keep-alive content-type: application/json content-length: 386 x-compute-request-id: req-a394a3d4-574c-47f0-b242-0dc5bfec34dc RESP BODY: {"servers": [{"id": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "bookmark"}], "name": "test123"}]}

DEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6 HTTP/1.1" 200 1743 DEBUG (session:224) RESP: [200] date: Fri, 02 Sep 2016 10:25:38 GMT connection: keep-alive content-type: application/json content-length: 1743 x-compute-request-id: req-e54b5335-cdae-487e-b000-c770097bfa39 RESP BODY: {"server": {"status": "ACTIVE", "updated": "2016-09-02T10:19:31Z", "hostId": "34ad73e9f940b02c9aee24b832cfd4112536e7217e4590e7c24357c1", "addresses": {"ext-relay": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:b3:1a:af", "version": 4, "addr": "192.0.0.22", "OS-EXT-IPS:type": "fixed"}], "pub-relay": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:34:18:c4", "version": 4, "addr": "172.16.0.8", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "bookmark"}], "key_name": "dalauth", "image": {"id": "9722a9aa-d8c2-4dfa-8e2f-57a5a2124a2d", "links": [{"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/images/9722a9aa-d8c2-4dfa-8e2f-57a5a2124a2d", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-SRV-USG:launched_at": "2016-09-01T10:58:28.000000", "flavor": {"id": "1", "links": [{"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/flavors/1", "rel": "bookmark"}]}, "id": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "security_groups": [{"name": "default"}, {"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "dal10", "user_id": "116af8b9592f48e68b7e992c7784c39c", "name": "test123", "created": "2016-09-01T10:58:12Z", "tenant_id": "513056986b69432880c9fa829983b46d", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}

DEBUG (session:195) REQ: curl -g -i -X POST http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6/action -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" -d '{"createImage": {"name": "test123snap", "metadata": {}}}' DEBUG (connectionpool:383) "POST /v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6/action HTTP/1.1" 202 0 DEBUG (session:224) RESP: [202] content-length: 0 x-compute-request-id: req-723dd627-b884-483d-ab00-6d78d3fb790d connection: keep-alive location: http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee date: Fri, 02 Sep 2016 10:25:39 GMT content-type: text/html; charset=UTF-8

DEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee HTTP/1.1" 200 1268 DEBUG (session:224) RESP: [200] date: Fri, 02 Sep 2016 10:25:39 GMT connection: keep-alive content-type: application/json content-length: 1268 x-compute-request-id: req-c319639c-7fa4-4712-a0af-4c3defac18b7 RESP BODY: {"image": {"status": "SAVING", "updated": "2016-09-02T10:25:38Z", "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "rel": "bookmark"}, {"href": "http://proxy:9292/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "OS-EXT-IMG-SIZE:size": 0, "name": "test123snap", "created": "2016-09-02T10:25:38Z", "minDisk": 1, "server": {"id": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "bookmark"}]}, "progress": 25, "minRam": 0, "metadata": {"image_type": "snapshot", "instance_uuid": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "user_id": "116af8b9592f48e68b7e992c7784c39c", "base_image_ref": "9722a9aa-d8c2-4dfa-8e2f-57a5a2124a2d"}}}

Server snapshotting... 25% completeDEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee HTTP/1.1" 404 62 DEBUG (session:224) RESP: DEBUG (shell:914) Image not found. (HTTP 404) (Request-ID: req-9ba72da7-d155-4cde-b3fd-697cc0224453) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main OpenStackComputeShell().main(argv) File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main args.func(self.cs, args) File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1747, in do_image_create ['active']) File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 550, in _poll_for_status obj = poll_fn(obj_id) File "/usr/lib/python2.7/site-packages/novaclient/v2/images.py", line 53, in get return self._get("/images/%s" % base.getid(image), "image") File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 156, in _get _resp, body = self.api.client.get(url) File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get return self.request(url, 'GET', **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 96, in request raise exceptions.from_response(resp, body, url, method)

NotFound: Image not found. (HTTP 404) (Request-ID: req-9ba72da7-d155-4cde-b3fd-697cc0224453) ERROR (NotFound): Image not found. (HTTP 404) (Request-ID: req-9ba72da7-d155-4cde-b3fd-697cc0224453)

click to hide/show revision 2
No.2 Revision

nova image-create fails for taking snapshot

Open stack Version Kilo Kilo

OS RHEL RHEL

Issue with both command line as well as dashboard

#  nova --debug image-create --poll test123 test123snap

test123snap DEBUG (session:195) REQ: curl -g -i -X GET http://auth:5000/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" INFO (connectionpool:203) Starting new HTTP connection (1): auth DEBUG (connectionpool:383) "GET /v3 HTTP/1.1" 200 245 DEBUG (session:224) RESP: [200] content-length: 245 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.6 (Red Hat Enterprise Linux) mod_wsgi/3.4 Python/2.7.5 connection: Keep-Alive date: Fri, 02 Sep 2016 10:25:37 GMT content-type: application/json x-openstack-request-id: req-18f190bf-932a-4e0e-8a8c-b6376240b9db RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://auth:5000/v3/", "rel": "self"}]}}

"self"}]}} DEBUG (base:171) Making authentication request to http://auth:5000/v3/auth/tokens DEBUG (connectionpool:383) "POST /v3/auth/tokens HTTP/1.1" 201 13122 DEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers?name=test123 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" INFO (connectionpool:203) Starting new HTTP connection (1): proxy DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/servers?name=test123 HTTP/1.1" 200 386 DEBUG (session:224) RESP: [200] date: Fri, 02 Sep 2016 10:25:37 GMT connection: keep-alive content-type: application/json content-length: 386 x-compute-request-id: req-a394a3d4-574c-47f0-b242-0dc5bfec34dc RESP BODY: {"servers": [{"id": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "bookmark"}], "name": "test123"}]}

"test123"}]} DEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6 HTTP/1.1" 200 1743 DEBUG (session:224) RESP: [200] date: Fri, 02 Sep 2016 10:25:38 GMT connection: keep-alive content-type: application/json content-length: 1743 x-compute-request-id: req-e54b5335-cdae-487e-b000-c770097bfa39 RESP BODY: {"server": {"status": "ACTIVE", "updated": "2016-09-02T10:19:31Z", "hostId": "34ad73e9f940b02c9aee24b832cfd4112536e7217e4590e7c24357c1", "addresses": {"ext-relay": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:b3:1a:af", "version": 4, "addr": "192.0.0.22", "OS-EXT-IPS:type": "fixed"}], "pub-relay": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:34:18:c4", "version": 4, "addr": "172.16.0.8", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "bookmark"}], "key_name": "dalauth", "image": {"id": "9722a9aa-d8c2-4dfa-8e2f-57a5a2124a2d", "links": [{"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/images/9722a9aa-d8c2-4dfa-8e2f-57a5a2124a2d", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-SRV-USG:launched_at": "2016-09-01T10:58:28.000000", "flavor": {"id": "1", "links": [{"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/flavors/1", "rel": "bookmark"}]}, "id": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "security_groups": [{"name": "default"}, {"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "dal10", "user_id": "116af8b9592f48e68b7e992c7784c39c", "name": "test123", "created": "2016-09-01T10:58:12Z", "tenant_id": "513056986b69432880c9fa829983b46d", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}

{}}} DEBUG (session:195) REQ: curl -g -i -X POST http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6/action -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" -d '{"createImage": {"name": "test123snap", "metadata": {}}}' DEBUG (connectionpool:383) "POST /v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6/action HTTP/1.1" 202 0 DEBUG (session:224) RESP: [202] content-length: 0 x-compute-request-id: req-723dd627-b884-483d-ab00-6d78d3fb790d connection: keep-alive location: http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee date: Fri, 02 Sep 2016 10:25:39 GMT content-type: text/html; charset=UTF-8

charset=UTF-8 DEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee HTTP/1.1" 200 1268 DEBUG (session:224) RESP: [200] date: Fri, 02 Sep 2016 10:25:39 GMT connection: keep-alive content-type: application/json content-length: 1268 x-compute-request-id: req-c319639c-7fa4-4712-a0af-4c3defac18b7 RESP BODY: {"image": {"status": "SAVING", "updated": "2016-09-02T10:25:38Z", "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "rel": "bookmark"}, {"href": "http://proxy:9292/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "1a3dd5c3-c5a3-4466-b99b-932c15fe1aee", "OS-EXT-IMG-SIZE:size": 0, "name": "test123snap", "created": "2016-09-02T10:25:38Z", "minDisk": 1, "server": {"id": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "links": [{"href": "http://proxy:8774/v2/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "self"}, {"href": "http://proxy:8774/513056986b69432880c9fa829983b46d/servers/92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "rel": "bookmark"}]}, "progress": 25, "minRam": 0, "metadata": {"image_type": "snapshot", "instance_uuid": "92c2fd37-8ea2-46a5-ac4a-bf6b2a82f5e6", "user_id": "116af8b9592f48e68b7e992c7784c39c", "base_image_ref": "9722a9aa-d8c2-4dfa-8e2f-57a5a2124a2d"}}}

"9722a9aa-d8c2-4dfa-8e2f-57a5a2124a2d"}}} Server snapshotting... 25% completeDEBUG (session:195) REQ: curl -g -i -X GET http://proxy:8774/v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4b97bd307851c6602ccfc4594cbe69b4119ebef1" DEBUG (connectionpool:383) "GET /v2/513056986b69432880c9fa829983b46d/images/1a3dd5c3-c5a3-4466-b99b-932c15fe1aee HTTP/1.1" 404 62 DEBUG (session:224) RESP: DEBUG (shell:914) Image not found. (HTTP 404) (Request-ID: req-9ba72da7-d155-4cde-b3fd-697cc0224453) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main OpenStackComputeShell().main(argv) File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main args.func(self.cs, args) File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1747, in do_image_create ['active']) File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 550, in _poll_for_status obj = poll_fn(obj_id) File "/usr/lib/python2.7/site-packages/novaclient/v2/images.py", line 53, in get return self._get("/images/%s" % base.getid(image), "image") File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 156, in _get _resp, body = self.api.client.get(url) File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get return self.request(url, 'GET', **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 96, in request raise exceptions.from_response(resp, body, url, method)

method) NotFound: Image not found. (HTTP 404) (Request-ID: req-9ba72da7-d155-4cde-b3fd-697cc0224453) ERROR (NotFound): Image not found. (HTTP 404) (Request-ID: req-9ba72da7-d155-4cde-b3fd-697cc0224453)

req-9ba72da7-d155-4cde-b3fd-697cc0224453)