花花世界蕾 发表于 2017-6-27 06:17:30

OpenStack kilo keystone endpoint create error

  2015年11月8日
  Error Msg :
  # openstack endpoint create --publicurl http://$controller:9696 --adminurl http://$controller:9696 --internalurl http://$controller:9696 --region RegionOne network ERROR:openstack
  
#
  

Debuge Command:
  openstack endpoint create --publicurl http://$controller:9696 --adminurl http://$controller:9696 --internalurl http://$controller:9696 --region RegionOne network --debug

  

  

  Bug Msg:

  
  DEBUG: openstackclient.shell clean_up CreateEndpoint
  DEBUG: openstackclient.shell got an error:
  ERROR: openstackclient.shell Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 176, in run
  return super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 230, in run
  result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 295, in run_subcommand
  result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 91, in run
  column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/openstackclient/identity/v2_0/endpoint.py", line 68, in take_action
  service = common.find_service(identity_client, parsed_args.service)
  File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 33, in find_service
  return identity_client.services.find(type=name_type_or_id)
  File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 250, in find
  raise exceptions.NoUniqueMatch
  NoUniqueMatch
  Solution:
  There is no service match
  so check the service existance
  # openstack service list
  +----------------------------------+----------+----------+
  | ID                               | Name   | Type   |
  +----------------------------------+----------+----------+
  | 0240bf6255d3417ca9d0b86abf4eae63 | glance   | image    |
  | 0c309e2cc94f42318dac0df2bb81b5bb | neutron| network|
  | 6d5c3e97b2044c9bb40ed952a2966c79 | keystone | identity |
  | 835fe524664144f9bd1e353883805162 | keystone | identity |
  | d9c58f9db6984ee19afdfcb95209154b | nova   | compute|
  +----------------------------------+----------+----------+
  kk I created two services for keystone ......................
  delete both and create again ....
  It works ....
  Reference:
  https://ask.openstack.org/en/question/80924/openstack-keystone-endpoint-create-error-kilo/
页: [1]
查看完整版本: OpenStack kilo keystone endpoint create error