Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova image-list failed.

I just installed openstack folsom and verified that keystone and glance installations. However, verification of installation of compute node failed when running:

nova image-list

but when I run the glance image-list, I got back all images correctly. What is possibly wrong with my installation of the compute node?

~Khoivu

Why can't I see the list of images from nova image-list failed.client?

I just installed openstack folsom and verified that keystone and glance installations. However, verification of installation of compute node failed when running:

nova image-list

image-list

but when I run the glance image-list, I got back all images correctly. What is possibly wrong with my installation of the compute node?

~Khoivu

Why can't I see the list of images from nova client?

I just figured from the --debug switch that I missed creating an endpoint for the compute service. After I created an endpoint for the compute note I got other issue to connect to port 8774 where wsgi server is listening to. Below is my environment:

Red Hat Enterprise 6.4 Installing OpenStack Folsom 2 servers for compute nodes (10.0.0.3 and 10.0.0.4) 1 server for controller, glance, and cinder (10.0.0.2) rabbitmq is installed openstack folsom and on controller node

I verified that keystone images were successfully uploaded with the command "glance image-list", "glance image-show" and glance installations. However, verification "glance index".

I also verified that openstack-nova-api is running.

When I ran the command "netstat -a" on 10.0.0.2

out put from netstat -a

tcp 0 0 :8774 *: LISTEN
tcp 0 0 oshead:amqp getnameinfo failed

When I query for clue in the /var/log/nova/api.log (10.0.0.2), I found these line (Why the IP address 0.0.0.0?)

2013-04-19 13:23:15 2865 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774 2013-04-19 13:23:15 2865 INFO nova.service [-] Starting 1 workers 2013-04-19 13:23:15 2865 INFO nova.service [-] Started child 3021 2013-04-19 13:23:15 3021 INFO nova.osapi_compute.wsgi.server [-] (3021) wsgi starting up on http://0.0.0.0:8774/

Below is the output of installation of compute node failed when running:

nova image-list

but when I run the glance image-list, I got back all images correctly. What is possibly wrong with my installation of the compute node?"nova --debug image-list"

REQ: curl -i http://10.0.0.2:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "changeit123"}}}' RESP:{'date': 'Fri, 19 Apr 2013 18:27:50 GMT', 'vary': 'X-Auth-Token', 'content-length': '2161', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"expires": "2013-04-20T18:27:50Z", "id": "4a823a9aa7f249f1ae37b50afcc0d984", "tenant": {"enabled": true, "description": "Default OpenStack Demo Tenant", "name": "openstackDemo", "id": "93d99faec60246899e1f4ae20b00c504"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.0.0.2:8776/v1/93d99faec60246899e1f4ae20b00c504", "region": "Region1", "internalURL": "http://10.0.0.2:8776/v1/93d99faec60246899e1f4ae20b00c504", "id": "d966ffae069b4d5d91d95a04964e1cce", "publicURL": "http://10.0.0.2:8776/v1/93d99faec60246899e1f4ae20b00c504"}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "http://10.0.0.2:9292/v1", "region": "Region1", "internalURL": "http://10.0.0.2:9292/v1", "id": "856ed8ad17bd48a49ad5d6771cfc97ea", "publicURL": "http://10.0.0.2:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504", "region": "Region1", "internalURL": "http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504", "id": "adf550c7fd834608827edf0aec80c40f", "publicURL": "http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.0.0.2:8773/services/Admin", "region": "Region1", "internalURL": "http://10.0.0.2:8773/services/Cloud", "id": "18e873b8f1b6444385a1f85531ba068c", "publicURL": "http://10.0.0.2:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.0.0.2:35357/v2.0", "region": "Region1", "internalURL": "http://10.0.0.2:5000/v2.0", "id": "52d09c74c0a0464386ceca8c8bbcf76c", "publicURL": "http://10.0.0.2:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "82e5f815c6d64a47916be10aae890926", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["e1892593af7d414c8062c27f8e72b7e3"]}}}

REQ: curl -i http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504/images/detail -X GET -H "X-Auth-Project-Id: openstackDemo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 4a823a9aa7f249f1ae37b50afcc0d984" RESP:{'date': 'Fri, 19 Apr 2013 18:27:50 GMT', 'status': '400', 'content-length': '65', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-5f11353f-1edb-4934-bd4e-f5f359165d98'} {"badRequest": {"message": "Malformed request url", "code": 400}} DEBUG (shell:543) Malformed request url (HTTP 400) (Request-ID: req-5f11353f-1edb-4934-bd4e-f5f359165d98) Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 540, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 476, in main args.func(self.cs, args) File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line 517, in do_image_list image_list = cs.images.list() File "/usr/lib/python2.6/site-packages/novaclient/v1_1/images.py", line 47, in list return self._list("/images/detail", "images") File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 62, in _list _resp, body = self.api.client.get(url) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 241, in get return self._cs_request(url, 'GET', kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 228, in _cs_request *kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 210, in _time_request resp, body = self.request(url, method, *kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 204, in request raise exceptions.from_response(resp, body) BadRequest: Malformed request url (HTTP 400) (Request-ID: req-5f11353f-1edb-4934-bd4e-f5f359165d98) ERROR: Malformed request url (HTTP 400) (Request-ID: req-5f11353f-1edb-4934-bd4e-f5f359165d98) connect: (10.0.0.2, 5000) *** send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.0.0.2:5000\r\nContent-Length: 114\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' send: '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "changeit123"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Vary: X-Auth-Token header: Content-Type: application/json header: Content-Length: 2161 header: Date: Fri, 19 Apr 2013 18:27:50 GMT connect: (10.0.0.2, 8774) *** send: u'GET /v2/93d99faec60246899e1f4ae20b00c504/images/detail HTTP/1.1\r\nHost: 10.0.0.2:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 4a823a9aa7f249f1ae37b50afcc0d984\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Length: 65 header: Content-Type: application/json; charset=UTF-8 header: X-Compute-Request-Id: req-5f11353f-1edb-4934-bd4e-f5f359165d98 header: Date: Fri, 19 Apr 2013 18:27:50 GMT

Please help.

V/B Khoivu

click to hide/show revision 4
reverted to revision 2 of the question. Mark the question as answered and ask a new question please.

Why can't I see the list of images from nova client?

I figured from the --debug switch just installed openstack folsom and verified that I missed creating an endpoint for the keystone and glance installations. However, verification of installation of compute service. After I created an endpoint for the compute note I got other issue to connect to port 8774 where wsgi server is listening to. Below is my environment:node failed when running:

Red Hat Enterprise 6.4 Installing OpenStack Folsom 2 servers for compute nodes (10.0.0.3 and 10.0.0.4) 1 server for controller, glance, and cinder (10.0.0.2) rabbitmq is installed on controller node

nova image-list

but when I verified that run the glance image-list, I got back all images were successfully uploaded correctly. What is possibly wrong with my installation of the command "glance image-list", "glance image-show" and "glance index".

I also verified that openstack-nova-api is running.

When I ran the command "netstat -a" on 10.0.0.2

out put from netstat -a

tcp 0 0 :8774 *: LISTEN
tcp 0 0 oshead:amqp getnameinfo failed

When I query for clue in the /var/log/nova/api.log (10.0.0.2), I found these line (Why the IP address 0.0.0.0?)

2013-04-19 13:23:15 2865 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774 2013-04-19 13:23:15 2865 INFO nova.service [-] Starting 1 workers 2013-04-19 13:23:15 2865 INFO nova.service [-] Started child 3021 2013-04-19 13:23:15 3021 INFO nova.osapi_compute.wsgi.server [-] (3021) wsgi starting up on http://0.0.0.0:8774/

Below is the output of "nova --debug image-list"

REQ: curl -i http://10.0.0.2:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "changeit123"}}}' RESP:{'date': 'Fri, 19 Apr 2013 18:27:50 GMT', 'vary': 'X-Auth-Token', 'content-length': '2161', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"expires": "2013-04-20T18:27:50Z", "id": "4a823a9aa7f249f1ae37b50afcc0d984", "tenant": {"enabled": true, "description": "Default OpenStack Demo Tenant", "name": "openstackDemo", "id": "93d99faec60246899e1f4ae20b00c504"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.0.0.2:8776/v1/93d99faec60246899e1f4ae20b00c504", "region": "Region1", "internalURL": "http://10.0.0.2:8776/v1/93d99faec60246899e1f4ae20b00c504", "id": "d966ffae069b4d5d91d95a04964e1cce", "publicURL": "http://10.0.0.2:8776/v1/93d99faec60246899e1f4ae20b00c504"}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "http://10.0.0.2:9292/v1", "region": "Region1", "internalURL": "http://10.0.0.2:9292/v1", "id": "856ed8ad17bd48a49ad5d6771cfc97ea", "publicURL": "http://10.0.0.2:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504", "region": "Region1", "internalURL": "http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504", "id": "adf550c7fd834608827edf0aec80c40f", "publicURL": "http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.0.0.2:8773/services/Admin", "region": "Region1", "internalURL": "http://10.0.0.2:8773/services/Cloud", "id": "18e873b8f1b6444385a1f85531ba068c", "publicURL": "http://10.0.0.2:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.0.0.2:35357/v2.0", "region": "Region1", "internalURL": "http://10.0.0.2:5000/v2.0", "id": "52d09c74c0a0464386ceca8c8bbcf76c", "publicURL": "http://10.0.0.2:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "82e5f815c6d64a47916be10aae890926", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["e1892593af7d414c8062c27f8e72b7e3"]}}}

REQ: curl -i http://10.0.0.2:8774/v2/93d99faec60246899e1f4ae20b00c504/images/detail -X GET -H "X-Auth-Project-Id: openstackDemo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 4a823a9aa7f249f1ae37b50afcc0d984" RESP:{'date': 'Fri, 19 Apr 2013 18:27:50 GMT', 'status': '400', 'content-length': '65', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-5f11353f-1edb-4934-bd4e-f5f359165d98'} {"badRequest": {"message": "Malformed request url", "code": 400}} DEBUG (shell:543) Malformed request url (HTTP 400) (Request-ID: req-5f11353f-1edb-4934-bd4e-f5f359165d98) Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 540, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 476, in main args.func(self.cs, args) File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line 517, in do_image_list image_list = cs.images.list() File "/usr/lib/python2.6/site-packages/novaclient/v1_1/images.py", line 47, in list return self._list("/images/detail", "images") File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 62, in _list _resp, body = self.api.client.get(url) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 241, in get return self._cs_request(url, 'GET', kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 228, in _cs_request *kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 210, in _time_request resp, body = self.request(url, method, *kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 204, in request raise exceptions.from_response(resp, body) BadRequest: Malformed request url (HTTP 400) (Request-ID: req-5f11353f-1edb-4934-bd4e-f5f359165d98) ERROR: Malformed request url (HTTP 400) (Request-ID: req-5f11353f-1edb-4934-bd4e-f5f359165d98) connect: (10.0.0.2, 5000) *** send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.0.0.2:5000\r\nContent-Length: 114\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' send: '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "changeit123"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Vary: X-Auth-Token header: Content-Type: application/json header: Content-Length: 2161 header: Date: Fri, 19 Apr 2013 18:27:50 GMT connect: (10.0.0.2, 8774) *** send: u'GET /v2/93d99faec60246899e1f4ae20b00c504/images/detail HTTP/1.1\r\nHost: 10.0.0.2:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 4a823a9aa7f249f1ae37b50afcc0d984\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Length: 65 header: Content-Type: application/json; charset=UTF-8 header: X-Compute-Request-Id: req-5f11353f-1edb-4934-bd4e-f5f359165d98 header: Date: Fri, 19 Apr 2013 18:27:50 GMT

Please help.

V/B Khoivucompute node?