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@UBUNTU-133:~# openstack role add --project admin --user admin admin
No role with a name or ID of 'admin' exists.
root@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:
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