nova image-list ERROR: n/a (HTTP 503)

Asked by Qiangqiang RAO on 2012-05-15

When install openstack (keystone, glance, nova) in fedora 15, at last execute "nova image-list " failed, Error message: ERROR: n/a (HTTP 503).

I found keystone can not get SERVICE_TENANT_NAME, SERVICE_USER, SERVICE_PASSWORD

Follow is keystone message:

2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] ******************** REQUEST ENVIRON ********************
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <Response at 0xb0446ac 200 OK>}
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] REQUEST_METHOD = POST
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] PATH_INFO = /tokens
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] CONTENT_LENGTH = 138
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] eventlet.posthooks = []
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] SERVER_NAME = 127.0.0.1
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] REMOTE_ADDR = 127.0.0.1
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.Input object at 0xaffd04c>
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] wsgi.url_scheme = http
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] SERVER_PORT = 35357
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] wsgi.input = <_io.BytesIO object at 0xb03c50c>
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] HTTP_HOST = 127.0.0.1:35357
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] wsgi.multithread = True
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] openstack.params = {u'auth': {u'tenantName': u'%SERVICE_TENANT_NAME%', u'passwordCredentials': {u'username': u'%SERVICE_USER%', u'password': u'%SERVICE_PASSWORD%'}}}
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] HTTP_ACCEPT = application/json
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] wsgi.version = (1, 0)
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] openstack.context = {'token_id': None, 'is_admin': False}
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] GATEWAY_INTERFACE = CGI/1.1
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] wsgi.run_once = False
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] wsgi.errors = <open file '<stderr>', mode 'w' at 0xb779c0d0>
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] wsgi.multiprocess = False
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] webob.is_body_seekable = True
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] CONTENT_TYPE = application/json
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] HTTP_ACCEPT_ENCODING = identity
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi]
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ********************
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] {"auth": {"tenantName": "%SERVICE_TENANT_NAME%", "passwordCredentials": {"username": "%SERVICE_USER%", "password": "%SERVICE_PASSWORD%"}}}
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi]
2012-05-16 01:30:40 DEBUG [routes.middleware] Matched POST /tokens
2012-05-16 01:30:40 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.contrib.admin_crud.core.CrudExtension object at 0xacfb06c>}
2012-05-16 01:30:40 DEBUG [routes.middleware] Match dict: {'controller': <keystone.contrib.admin_crud.core.CrudExtension object at 0xacfb06c>, 'path_info': '/tokens'}
2012-05-16 01:30:40 DEBUG [routes.middleware] Matched POST /tokens
2012-05-16 01:30:40 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.service.AdminRouter object at 0xa50762c>}
2012-05-16 01:30:40 DEBUG [routes.middleware] Match dict: {'controller': <keystone.service.AdminRouter object at 0xa50762c>, 'path_info': '/tokens'}
2012-05-16 01:30:40 DEBUG [routes.middleware] Matched POST /tokens
2012-05-16 01:30:40 DEBUG [routes.middleware] Route path: '/tokens', defaults: {'action': u'authenticate', 'controller': <keystone.service.TokenController object at 0xac35bac>}
2012-05-16 01:30:40 DEBUG [routes.middleware] Match dict: {'action': u'authenticate', 'controller': <keystone.service.TokenController object at 0xac35bac>}
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] arg_dict: {}
/opt/openstack/keystone/keystone/service.py:280: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise exception.Unauthorized(e.message)
2012-05-16 01:30:40 WARNING [keystone.common.wsgi] Invalid user / password
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] ******************** RESPONSE HEADERS ********************
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] Content-Type = application/json
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] Vary = X-Auth-Token
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] Content-Length = 89
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi]
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] ******************** RESPONSE BODY ********************
2012-05-16 01:30:40 DEBUG [keystone.common.wsgi] {"error": {"message": "Invalid user / password", "code": 401, "title": "Not Authorized"}}

2012-05-16 01:30:40 DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [16/May/2012 01:30:40] "POST /v2.0/tokens HTTP/1.1" 401 229 0.035205

Who can help me, Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nova Edit question
Assignee:
No assignee Edit question
Solved by:
Qiangqiang RAO
Solved:
2012-05-18
Last query:
2012-05-18
Last reply:
2012-05-16

Please copy and paste this teminal command:

lsb_relase -rd

Qiangqiang RAO (iac-rq) said : #2

Follow is lsb_release -rd output:

Description: Fedora release 15 (Lovelock)
Release: 15

Qiangqiang RAO (iac-rq) said : #3

Thanks, I think I foud my problem, I should modify configuration file api-paste.ini like follow:

admin_token= ADMIN
#admin_tenant_name = %SERVICE_TENANT_NAME%
#admin_user = %SERVICE_USER%
#admin_password = %SERVICE_PASSWORD%

befor modify like follow:

#admin_tenant_name = %SERVICE_TENANT_NAME%
#admin_user = %SERVICE_USER%
#admin_password = %SERVICE_PASSWORD%

Thanks!!!

Qiangqiang RAO (iac-rq) said : #4

Thanks, I think I foud my problem, I should modify configuration file api-paste.ini like follow:

admin_token= ADMIN
#admin_tenant_name = %SERVICE_TENANT_NAME%
#admin_user = %SERVICE_USER%
#admin_password = %SERVICE_PASSWORD%

before modify like follow:

admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%

Thanks!!!