[Bug 1392231] Re: ERROR: openstack The plugin token_endpoint could not be found

Bharat Kumar 1392231 at bugs.launchpad.net
Sun Jul 17 02:00:59 UTC 2016


Following openstack installation as specified in
http://docs.openstack.org/mitaka/install-guide-ubuntu/keystone-
users.html

Got error while executing command "openstack role add --project admin
--user admin admin"


root at UBUNTU-133:~# openstack role add --project admin --user admin admin
No role with a name or ID of 'admin' exists.
root at UBUNTU-133:~# openstack role add  --debug --project admin --user admin admin
START with options: ['role', 'add', '--debug', '--project', 'admin', '--user', 'admin', 'admin']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='', project_id='', project_name='', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='http://controller:35357/v3', user_domain_id='', user_domain_name='', user_id='', username='', verbose_level=3, verify=None)
Deferring keystone exception: The plugin token_endpoint could not be found
defaults: {u'auth_type': 'token_endpoint', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'token_endpoint', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'metering_api_version': u'2', u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'url': 'http://controller:35357/v3', 'token': '***'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'timing': False, 'cacert': None, u'key_manager_api_version': u'v1', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
command: role add -> openstackclient.identity.v3.role.AddRole
Auth plugin token_endpoint selected
auth_type: token_endpoint
Using auth plugin: token_endpoint
Using parameters {'url': 'http://controller:35357/v3', 'token': '***'}
Get auth_ref
run(Namespace(domain=None, group=None, group_domain=None, inherited=False, project='admin', project_domain=None, role='admin', user='admin', user_domain=None))
Instantiating identity client: <class 'keystoneclient.v3.client.Client'>
REQ: curl -g -i -X GET http://controller:35357/v3/roles/admin -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}fc690710594e27dd5472f8fa665eab8ff17519cc"
Starting new HTTP connection (1): controller
"GET /v3/roles/admin HTTP/1.1" 404 87
RESP: [404] Content-Length: 87 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Sun, 17 Jul 2016 01:27:41 GMT x-openstack-request-id: req-212b1a1b-54d9-454a-a91d-3ae0419da5b6 Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"error": {"message": "Could not find role: admin", "code": 404, "title": "Not Found"}}

Request returned failure status: 404
REQ: curl -g -i -X GET http://controller:35357/v3/roles?name=admin -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}fc690710594e27dd5472f8fa665eab8ff17519cc"
"GET /v3/roles?name=admin HTTP/1.1" 200 111
RESP: [200] Content-Length: 111 Vary: X-Auth-Token Keep-Alive: timeout=5, max=99 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Sun, 17 Jul 2016 01:27:41 GMT x-openstack-request-id: req-28e4fbf7-8275-44eb-bbca-5645edced429 Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"links": {"self": "http://controller:35357/v3/roles?name=admin", "previous": null, "next": null}, "roles": []}

No role with a name or ID of 'admin' exists.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v3/role.py", line 128, in take_action
    parsed_args.role,
  File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 95, in find_resource
    raise exceptions.CommandError(msg)
CommandError: No role with a name or ID of 'admin' exists.
clean_up AddRole: No role with a name or ID of 'admin' exists.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 118, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 153, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v3/role.py", line 128, in take_action
    parsed_args.role,
  File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 95, in find_resource
    raise exceptions.CommandError(msg)
CommandError: No role with a name or ID of 'admin' exists.

END return value: 1
root at UBUNTU-133:~#

** Also affects: keystone (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to keystone in Ubuntu.
https://bugs.launchpad.net/bugs/1392231

Title:
  ERROR: openstack The plugin token_endpoint could not be found

Status in devstack:
  New
Status in keystone package in Ubuntu:
  New

Bug description:
  openstack CI failed with devstack.

  2014-11-13 04:36:31.919 | +++ openstack project show admin -f value -c id
  2014-11-13 04:36:32.632 | +++ openstack project create admin -f value -c id
  2014-11-13 04:36:33.323 | ERROR: openstack The plugin token_endpoint could not be found
  2014-11-13 04:36:33.357 | ++ local project_id=
  2014-11-13 04:36:33.357 | ++ echo
  2014-11-13 04:36:33.357 | + local admin_tenant=
  2014-11-13 04:36:33.358 | ++ get_or_create_user admin secretadmin ''
  2014-11-13 04:36:33.358 | ++ [[ ! -z '' ]]
  2014-11-13 04:36:33.358 | ++ local email=
  2014-11-13 04:36:33.359 | ++ local os_cmd=openstack
  2014-11-13 04:36:33.359 | ++ local domain=
  2014-11-13 04:36:33.359 | ++ [[ ! -z '' ]]
  2014-11-13 04:36:33.360 | +++ openstack user show admin -f value -c id
  2014-11-13 04:36:34.145 | +++ openstack user create admin --password secretadmin --project -f value -c id
  2014-11-13 04:36:34.882 | ERROR: openstack The plugin token_endpoint could not be found

To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/1392231/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list