Ask Your Question
0

Identity token issue failed(keystone): The request you have made requires authentication. (HTTP 401)

asked 2016-06-21 09:47:50 -0500

Mutty Putty gravatar image

I am trying to install controller node on ubuntu-16.04

.....

....

When I try to create openstack project.

It is showing the following

user@controller:~$ openstack project create --domain default --description "Admin Project" admin No domain with a name or ID of 'default' exists

I created default domain, then service entity,project,user etc. Here is the sample output.

user@controller:~$ openstack domain create Default

+-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | | | enabled | True | | id | feb778f0835a4bb8a318bdb3a5c04857 | | name | Default | +-------------+----------------------------------+

user@controller:~$ openstack project create --domain default --description "Admin Project" admin

+-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Admin Project | | domain_id | feb778f0835a4bb8a318bdb3a5c04857 | | enabled | True | | id | 52db0dcc85454c749808469c341707bd | | is_domain | False | | name | admin | | parent_id | feb778f0835a4bb8a318bdb3a5c04857 | +-------------+----------------------------------+

user@controller:~$ openstack user create --domain default --password-prompt admin

User Password: Repeat User Password: +-----------+----------------------------------+ | Field | Value | +-----------+----------------------------------+ | domain_id | feb778f0835a4bb8a318bdb3a5c04857 | | enabled | True | | id | fca161b1802d4e8f9f5a360f62e33111 | | name | admin | +-----------+----------------------------------+

user@controller:~$ openstack role create admin

+-----------+----------------------------------+ | Field | Value | +-----------+----------------------------------+ | domain_id | None | | id | 7f2db5ea9f814a74a1a3bdedb2ea6542 | | name | admin | +-----------+----------------------------------+

user@controller:~$ openstack role add --project admin --user admin admin

user@controller:~$ clear

**user@controller:~$ openstack project create --domain default \

--description "Service Project" service**

+-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Service Project | | domain_id | feb778f0835a4bb8a318bdb3a5c04857 | | enabled | True | | id | d12ff7deaaa14d7db527d3b9e156fc94 | | is_domain | False | | name | service | | parent_id | feb778f0835a4bb8a318bdb3a5c04857 | +-------------+----------------------------------+ **user@controller:~$ openstack project create --domain default \

--description "Demo Project" demo**

+-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Demo Project | | domain_id | feb778f0835a4bb8a318bdb3a5c04857 | | enabled | True | | id | b78170e346f14be9a2aecf8ab2dfcc2c | | is_domain | False | | name | demo | | parent_id | feb778f0835a4bb8a318bdb3a5c04857 | +-------------+----------------------------------+

**user@controller:~$ openstack user create --domain default \

--password-prompt demo**

User Password: Repeat User Password: +-----------+----------------------------------+ | Field | Value | +-----------+----------------------------------+ | domain_id | feb778f0835a4bb8a318bdb3a5c04857 | | enabled | True | | id | 11f1f925c98041aaa378211917b02226 | | name | demo | +-----------+----------------------------------+

user@controller:~$ openstack role create user +-----------+----------------------------------+ | Field | Value | +-----------+----------------------------------+ | domain_id | None | | id | bd58a39664ed477a98e8ce4b6ecd3eed | | name | user | +-----------+----------------------------------+

user@controller:~$ openstack role add --project demo --user demo user

But when I request authentication token for admin user following http://docs.openstack.org/liberty/install-guide-ubuntu/keystone-verify.html (http://docs.openstack.org/liberty/ins...) . I got the following error.

user@controller:~$ openstack --debug --os-auth-url http://controller:35357/v3 --os-project-domain-id default --os-user-domain-id default --os-project-name admin --os-username admin --os-auth-type password token issue

START with options: ['--debug', '--os-auth-url', 'http://controller:35357/v3', '--os-project-domain-id', 'default', '--os-user-domain-id', 'default', '--os-project-name', 'admin', '--os-username', 'admin', '--os-auth-type', 'password', 'token', 'issue'] options: Namespace(access_token_endpoint='', auth_type='password', auth_url='http://controller:35357/v3', 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='default', project_domain_name='', project_id='', project_name='admin', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='', trust_id='', url='', user_domain_id='default', user_domain_name='', user_id='', username='admin', verbose_level=3, verify=None) defaults: {u'auth_type': 'password', 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': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'timing': False, u ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-02 07:48:43 -0500

Looks like the same issue as in https://ask.openstack.org/en/question/95889/domainnotfound-could-not-find-domain-default/ (https://ask.openstack.org/en/question...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-06-21 09:45:28 -0500

Seen: 2,670 times

Last updated: Sep 02 '16