1. [root@test1 ~]# nova --debug image-list
  2. REQ: curl -i http://openstack-internal:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName
  3. ": "service", "passwordCredentials": {"username": "glance", "password": "x"}}}'
  4. RESP:{'date': 'Thu, 07 Feb 2013 19:07:09 GMT', 'vary': 'X-Auth-Token', 'content-length': '2162', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"expires": "2013-02-08T19:07:09Z", "id": "bc925a70847a43f39906ff36f99df4dd", "tenant": {"enabled": true, "description": "Service Tenant", "name": "service", "id": "2c6fb427f71749d4b214039666e3c209"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack-internal:8776/v1/2c6fb427f71749d4b214039666e3c209", "region": "maine-edu-orono", "internalURL": "http://openstack-internal:8776/v1/2c6fb427f71749d4b214039666e3c209", "id": "959e544c48354d4b9b1cddfbc998721f", "publicURL": "http://openstack-internal:8776/v1/2c6fb427f71749d4b214039666e3c209"}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "http://openstack-internal:9292/v1", "region": "maine-edu-orono", "internalURL": "http://openstack-internal:9292/v1", "id": "34ba1b7ad2a3419d9e9ab8427daf0eb3", "publicURL": "http://openstack-internal:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack-internal:8774/v2/2c6fb427f71749d4b214039666e3c209", "region": "maine-edu-orono", "internalURL": "http://openstack-internal:8774/v2/2c6fb427f71749d4b214039666e3c209", "id": "7698cc795f964071be042c88d13734ce", "publicURL": "http://openstack-internal:8774/v2/2c6fb427f71749d4b214039666e3c209"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack-internal:9696/", "region": "maine-edu-orono", "internalURL": "http://openstack-internal:9696", "id": "98743893c0e04f51988f6342d10d4686", "publicURL": "http://openstack-internal:9696/"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "http://openstack-internal:35357/v2.0", "region": "maine-edu-orono", "internalURL": "http://openstack-internal:5000/v2.0", "id": "d1d1c091d5b746e191ad3898de9458ec", "publicURL": "http://openstack-internal:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "glance", "roles_links": [], "id": "02be9445a18e43379bfe5cef8076c4fd", "roles": [{"name": "admin"}], "name": "glance"}, "metadata": {"is_admin": 0, "roles": ["bf2ce990b5e640f7bef81ba130106842"]}}}
  5. REQ: curl -i http://openstack-internal:8774/v2/2c6fb427f71749d4b214039666e3c209/images/detail -X GET -H "X-Auth-Project-Id: service" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: bc925a70847a43f39906ff36f99df4dd"
  6. RESP:{'date': 'Thu, 07 Feb 2013 19:07:09 GMT', 'status': '500', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-100a99fe-9cfe-4772-ab74-7b82a3e32a6b'} {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
  7. DEBUG (shell:543) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-100a99fe-9cfe-4772-ab74-7b82a3e32a6b)
  8. Traceback (most recent call last):
  9. File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 540, in main
  10. OpenStackComputeShell().main(sys.argv[1:])
  11. File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 476, in main
  12. args.func(self.cs, args)
  13. File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line 517, in do_image_list
  14. image_list = cs.images.list()
  15. File "/usr/lib/python2.6/site-packages/novaclient/v1_1/images.py", line 47, in list
  16. return self._list("/images/detail", "images")
  17. File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 62, in _list
  18. _resp, body = self.api.client.get(url)
  19. File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 241, in get
  20. return self._cs_request(url, 'GET', **kwargs)
  21. File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 228, in _cs_request
  22. **kwargs)
  23. File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 210, in _time_request
  24. resp, body = self.request(url, method, **kwargs)
  25. File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 204, in request
  26. raise exceptions.from_response(resp, body)
  27. ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-100a99fe-9cfe-4772-ab74-7b82a3e32a6b)
  28. ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-100a99fe-9cfe-4772-ab74-7b82a3e32a6b)
  29. connect: (openstack-internal, 5000) ************
  30. send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: openstack-internal:5000\r\nContent-Length: 130\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  31. send: '{"auth": {"tenantName": "service", "passwordCredentials": {"username": "glance", "password": "x"}}}'
  32. reply: 'HTTP/1.1 200 OK\r\n'
  33. header: Vary: X-Auth-Token
  34. header: Content-Type: application/json
  35. header: Content-Length: 2162
  36. header: Date: Thu, 07 Feb 2013 19:07:09 GMT
  37. connect: (openstack-internal, 8774) ************
  38. send: u'GET /v2/2c6fb427f71749d4b214039666e3c209/images/detail HTTP/1.1\r\nHost: openstack-internal:8774\r\nx-auth-project-id: service\r\nx-auth-token: bc925a70847a43f39906ff36f99df4dd\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  39. reply: 'HTTP/1.1 500 Internal Server Error\r\n'
  40. header: Content-Length: 128
  41. header: Content-Type: application/json; charset=UTF-8
  42. header: X-Compute-Request-Id: req-100a99fe-9cfe-4772-ab74-7b82a3e32a6b
  43. header: Date: Thu, 07 Feb 2013 19:07:09 GMT