本帖最后由 pig2 于 2015-8-25 13:34 编辑
[mw_shl_code=bash,true] openstack --debug service create --name keystone --description "OpenStack Identity" identity[/mw_shl_code]
[mw_shl_code=bash,true]DEBUG: openstackclient.api.auth Auth plugin osc_password selected
DEBUG: openstackclient.identity.v2_0.service.CreateService take_action(Namespace(columns=[], description='OpenStack Identity', formatter='table', max_width=0, name='keystone', prefix='', type=None, type_or_name='identity', variables=[]))
DEBUG: openstackclient.identity.client Instantiating identity client: <class 'openstackclient.identity.client.IdentityClientv2'>
ERROR: openstack Authorization Failed: Cannot authenticate without an auth_url
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 303, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v2_0/service.py", line 64, in take_action
identity_client = self.app.client_manager.identity
File "/usr/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 43, in __get__
self._handle = self.factory(instance)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/client.py", line 51, in make_client
region_name=instance._region_name,
File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 152, in __init__
self.authenticate()
File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 503, in authenticate
resp = self.get_raw_token_from_identity_service(**kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 196, in get_raw_token_from_identity_service
_("Authorization Failed: %s") % e)
AuthorizationFailure: Authorization Failed: Cannot authenticate without an auth_url
DEBUG: openstackclient.shell clean_up CreateService
DEBUG: openstackclient.shell got an error: Authorization Failed: Cannot authenticate without an auth_url
ERROR: openstackclient.shell Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 176, in run
return super(OpenStackShell, self).run(argv)
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 238, in run
result = self.run_subcommand(remainder)
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 303, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v2_0/service.py", line 64, in take_action
identity_client = self.app.client_manager.identity
File "/usr/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 43, in __get__
self._handle = self.factory(instance)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/client.py", line 51, in make_client
region_name=instance._region_name,
File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 152, in __init__
self.authenticate()
File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 503, in authenticate
resp = self.get_raw_token_from_identity_service(**kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 196, in get_raw_token_from_identity_service
_("Authorization Failed: %s") % e)
AuthorizationFailure: Authorization Failed: Cannot authenticate without an auth_url[/mw_shl_code]
错误原因:
curl http://git.openstack.org/cgit/openstack/keystone/plain/httpd/keystone.py?h=stable/kilo \ | tee /var/www/cgi-bin/keystone/main /var/www/cgi-bin/keystone/admin
下载失败
解决办法:
重新下载,成功即解决
|