Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The request you have made requires authentication. (HTTP 401)

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 . 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'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': {'username': 'admin', 'project_name': 'admin', 'auth_url': 'http://controller:35357/v3', 'user_domain_id': 'default', 'project_domain_id': 'default'}, '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', u'interface': None, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, 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: token issue -> openstackclient.identity.v3.token.IssueToken Auth plugin password selected Password: auth_type: password Using auth plugin: password Using parameters {'username': 'admin', 'project_name': 'admin', 'auth_url': 'http://controller:35357/v3', 'user_domain_id': 'default', 'password': '', 'project_domain_id': 'default'} Get auth_ref REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.11+" Starting new HTTP connection (1): controller "GET /v3 HTTP/1.1" 200 250 RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.18 (Ubuntu) Connection: Keep-Alive Date: Fri, 17 Jun 2016 17:55:35 GMT x-openstack-request-id: req-c58b578f-8cee-4776-bbe2-cb32e8340ffa Content-Type: application/json X-Distribution: Ubuntu RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

Making authentication request to http://controller:35357/v3/auth/tokens "POST /v3/auth/tokens HTTP/1.1" 401 114 Request returned failure status: 401 The request you have made requires authentication. (HTTP 401) (Request-ID: req-8ce5bb4e-84bf-467b-b579-be70918cc0f2) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 367, in run_subcommand self.prepare_to_run_command(cmd) File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 411, in prepare_to_run_command self.client_manager.auth_ref File "/usr/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 210, in auth_ref self._auth_ref = self.auth.get_auth_ref(self.session) File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/generic/base.py", line 186, in get_auth_ref return self._plugin.get_auth_ref(session, kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py", line 190, in get_auth_ref authenticated=False, log=False, *rkwargs) File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 572, in post return self.request(url, 'POST', *kwargs) File "/usr/lib/python2.7/dist-packages/openstackclient/common/session.py", line 40, in request resp = super(TimingSession, self).request(url, method, *kwargs) File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 94, in inner return func(args, *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 467, in request raise exceptions.from_response(resp, method, url) *Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-8ce5bb4e-84bf-467b-b579-be70918cc0f2) clean_up IssueToken: The request you have made requires authentication. (HTTP 401) (Request-ID: req-8ce5bb4e-84bf-467b-b579-be70918cc0f2) 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 367, in run_subcommand self.prepare_to_run_command(cmd) File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 411, in prepare_to_run_command self.client_manager.auth_ref File "/usr/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 210, in auth_ref self._auth_ref = self.auth.get_auth_ref(self.session) File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/generic/base.py", line 186, in get_auth_ref return self._plugin.get_auth_ref(session, *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py", line 190, in get_auth_ref authenticated=False, log=False, *rkwargs) File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 572, in post return self.request(url, 'POST', *kwargs) File "/usr/lib/python2.7/dist-packages/openstackclient/common/session.py", line 40, in request resp = super(TimingSession, self).request(url, method, *kwargs) File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 94, in inner return func(args, *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 467, in request raise exceptions.from_response(resp, method, url) Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-8ce5bb4e-84bf-467b-b579-be70918cc0f2)

END return value: 1

Although I have set all the environment variables as per the documentation and also set admin token properly, have given password correctly, I could not understand why it is saying authentication problem.

So, I try to look at the keystone.log file. It is showing like this.

2016-06-18 00:35:53.655010 2016-06-18 00:35:53.652 3129 INFO keystone.common.wsgi [req-da9b88f6-69e2-4126-907c-ceed520bf015 - - - - -] GET http://controller:35357/v3/ 2016-06-18 00:35:53.690689 2016-06-18 00:35:53.688 3128 INFO keystone.common.wsgi [req-c1063e95-5abb-4920-9d95-deaa8fd5a793 - - - - -] POST http://controller:35357/v3/auth/tokens 2016-06-18 00:35:53.711468 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers [req-c1063e95-5abb-4920-9d95-deaa8fd5a793 - - - - -] Could not find domain: default 2016-06-18 00:35:53.711513 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers Traceback (most recent call last): 2016-06-18 00:35:53.711539 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/auth/controllers.py", line 187, in _lookup_domain 2016-06-18 00:35:53.711551 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers domain_ref = self.resource_api.get_domain(domain_id) 2016-06-18 00:35:53.711561 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 124, in wrapped 2016-06-18 00:35:53.711570 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers __ret_val = __f(args, *kwargs) 2016-06-18 00:35:53.711579 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1053, in decorate 2016-06-18 00:35:53.711589 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers should_cache_fn) 2016-06-18 00:35:53.711607 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 657, in get_or_create 2016-06-18 00:35:53.711655 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers async_creator) as value: 2016-06-18 00:35:53.711665 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 158, in __enter__ 2016-06-18 00:35:53.711674 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers return self._enter() 2016-06-18 00:35:53.711682 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 98, in _enter 2016-06-18 00:35:53.711690 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers generated = self._enter_create(createdtime) 2016-06-18 00:35:53.714325 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 149, in _enter_create 2016-06-18 00:35:53.714349 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers created = self.creator() 2016-06-18 00:35:53.714358 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 625, in gen_value 2016-06-18 00:35:53.714367 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers created_value = creator() 2016-06-18 00:35:53.714375 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1049, in creator 2016-06-18 00:35:53.714383 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers return fn(arg, *kw) 2016-06-18 00:35:53.714391 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/resource/core.py", line 702, in get_domain 2016-06-18 00:35:53.714399 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers raise exception.DomainNotFound(domain_id=domain_id)

2016-06-18 00:35:53.714407 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers DomainNotFound: Could not find domain: default

2016-06-18 00:35:53.714415 2016-06-18 00:35:53.707 3128 ERROR keystone.auth.controllers 2016-06-18 00:35:53.718030 2016-06-18 00:35:53.715 3128 WARNING keystone.common.wsgi [req-c1063e95-5abb-4920-9d95-deaa8fd5a793 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.0.72 2016-06-18 10:23:52.355577 2016-06-18 10:23:52.351 3129 INFO keystone.common.wsgi [req-0bb9fde9-3f1c-4f68-af35-ce0e8cb85373 - - - - -] GET http://controller:35357/v3/ 2016-06-18 10:23:52.384837 2016-06-18 10:23:52.383 3128 INFO keystone.common.wsgi [req-465fa306-7c06-4171-9f08-c05a4f52595b - - - - -] POST http://controller:35357/v3/auth/tokens 2016-06-18 10:23:52.407107 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers

[req-465fa306-7c06-4171-9f08-c05a4f52595b - - - - -] Could not find domain: default 2016-06-18 10:23:52.407125 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers Traceback (most recent call last):

2016-06-18 10:23:52.407131 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/auth/controllers.py", line 187, in _lookup_domain 2016-06-18 10:23:52.407136 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers domain_ref = self.resource_api.get_domain(domain_id) 2016-06-18 10:23:52.407141 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 124, in wrapped 2016-06-18 10:23:52.407146 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers __ret_val = __f(args, kwargs) 2016-06-18 10:23:52.407151 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1053, in decorate 2016-06-18 10:23:52.407155 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers should_cache_fn) 2016-06-18 10:23:52.407172 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 657, in get_or_create 2016-06-18 10:23:52.407190 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers async_creator) as value: 2016-06-18 10:23:52.407196 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 158, in __enter__ 2016-06-18 10:23:52.407200 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers return self._enter() 2016-06-18 10:23:52.407204 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 98, in _enter 2016-06-18 10:23:52.407208 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers generated = self._enter_create(createdtime) 2016-06-18 10:23:52.407218 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 149, in _enter_create 2016-06-18 10:23:52.407224 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers created = self.creator() 2016-06-18 10:23:52.407228 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 625, in gen_value 2016-06-18 10:23:52.407232 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers created_value = creator() 2016-06-18 10:23:52.407236 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1049, in creator 2016-06-18 10:23:52.407241 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers return fn(arg, *kw) 2016-06-18 10:23:52.407245 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/resource/core.py", line 702, in get_domain 2016-06-18 10:23:52.407250 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers raise exception.DomainNotFound(domain_id=domain_id) 2016-06-18 10:23:52.407254 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers DomainNotFound: Could not find domain: default 2016-06-18 10:23:52.407258 2016-06-18 10:23:52.404 3128 ERROR keystone.auth.controllers 2016-06-18 10:23:52.409300 2016-06-18 10:23:52.408 3128 WARNING keystone.common.wsgi *[req-465fa306-7c06-4171-9f08-c05a4f52595b - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.0.72

I concluded that may be problem is related to the way I have created domain so I try to check keystone database

here is all my observation

MariaDB [(none)]> show databases;

+--------------------+ | Database | +--------------------+ | information_schema | | keystone | | mysql | | performance_schema | +--------------------+ 4 rows in set (0.01 sec)

MariaDB [(none)]> use keystone;

Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A

Database changed

MariaDB [keystone]> show tables;

+------------------------+ | Tables_in_keystone | +------------------------+ | access_token | | assignment | | config_register | | consumer | | credential | | domain | | endpoint | | endpoint_group | | federated_user | | federation_protocol | | group | | id_mapping | | identity_provider | | idp_remote_ids | | implied_role | | local_user | | mapping | | migrate_version | | password | | policy | | policy_association | | project | | project_endpoint | | project_endpoint_group | | region | | request_token | | revocation_event | | role | | sensitive_config | | service | | service_provider | | token | | trust | | trust_role | | user | | user_group_membership | | whitelisted_config | +------------------------+ 37 rows in set (0.01 sec)

MariaDB [keystone]> select * from user;

+----------------------------------+-------+---------+--------------------+ | id | extra | enabled | default_project_id | +----------------------------------+-------+---------+--------------------+ | 11f1f925c98041aaa378211917b02226 | {} | 1 | NULL | | fca161b1802d4e8f9f5a360f62e33111 | {} | 1 | NULL | +----------------------------------+-------+---------+--------------------+ 2 rows in set (0.00 sec)

MariaDB [keystone]> select * from project;

+----------------------------------+--------------------------+-------+-----------------+---------+----------------------------------+----------------------------------+-----------+ | id | name | extra | description | enabled | domain_id | parent_id | is_domain | +----------------------------------+--------------------------+-------+-----------------+---------+----------------------------------+----------------------------------+-----------+ | 52db0dcc85454c749808469c341707bd | admin | {} | Admin Project | 1 | feb778f0835a4bb8a318bdb3a5c04857 | feb778f0835a4bb8a318bdb3a5c04857 | 0 | | <<keystone.domain.root>> | <<keystone.domain.root>> | {} | | 0 | <<keystone.domain.root>> | NULL | 1 | | b78170e346f14be9a2aecf8ab2dfcc2c | demo | {} | Demo Project | 1 | feb778f0835a4bb8a318bdb3a5c04857 | feb778f0835a4bb8a318bdb3a5c04857 | 0 | | d12ff7deaaa14d7db527d3b9e156fc94 | service | {} | Service Project | 1 | feb778f0835a4bb8a318bdb3a5c04857 | feb778f0835a4bb8a318bdb3a5c04857 | 0 | | feb778f0835a4bb8a318bdb3a5c04857 | Default | {} | | 1 | <<keystone.domain.root>> | NULL | 1 | +----------------------------------+--------------------------+-------+-----------------+---------+----------------------------------+----------------------------------+-----------+

5 rows in set (0.00 sec)

MariaDB [keystone]> select * from domain;

+--------------------------+--------------------------+---------+-------+ | id | name | enabled | extra | +--------------------------+--------------------------+---------+-------+ | <<keystone.domain.root>> | <<keystone.domain.root>> | 0 | {} | +--------------------------+--------------------------+---------+-------+ 1 row in set (0.00 sec)

few more observation..

root@controller:/home/user# service apache2 status

● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: active (running) since Mon 2016-06-20 19:32:08 IST; 17h ago Docs: man:systemd-sysv-generator(8) Process: 1075 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─1385 /usr/sbin/apache2 -k start ├─1397 (wsgi:keystone-pu -k start ├─1398 (wsgi:keystone-pu -k start ├─1399 (wsgi:keystone-pu -k start ├─1400 (wsgi:keystone-pu -k start ├─1401 (wsgi:keystone-pu -k start ├─1402 (wsgi:keystone-ad -k start ├─1403 (wsgi:keystone-ad -k start ├─1404 (wsgi:keystone-ad -k start ├─1405 (wsgi:keystone-ad -k start ├─1406 (wsgi:keystone-ad -k start ├─1407 /usr/sbin/apache2 -k start └─1408 /usr/sbin/apache2 -k start

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

root@controller:/home/user# service mysql status

● mysql.service - LSB: Start and stop the mysql database server daemon Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled) Active: active (running) since Mon 2016-06-20 19:32:12 IST; 17h ago Docs: man:systemd-sysv-generator(8) Process: 1074 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS) CGroup: /system.slice/mysql.service ├─1209 /bin/bash /usr/bin/mysqld_safe ├─1210 logger -p daemon err -t /etc/init.d/mysql -i ├─1383 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-log-error --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/my └─1384 logger -t mysqld -p daemon error

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

root@controller:/home/user# service keystone status

● keystone.service - OpenStack Identity service Loaded: loaded (/lib/systemd/system/keystone.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2016-06-21 13:16:11 IST; 382ms ago Process: 24052 ExecStartPre=/bin/chown keystone:keystone /var/lock/keystone /var/log/keystone /var/lib/keystone (code=exited, status=0/SUCCESS) Process: 24048 ExecStartPre=/bin/mkdir -p /var/lock/keystone /var/log/keystone /var/lib/keystone (code=exited, status=0/SUCCESS) Main PID: 24054 (keystone-all) CGroup: /system.slice/keystone.service └─24054 /usr/bin/python /usr/bin/keystone-all --config-file=/etc/keystone/keystone.conf --log-file=/var/log/keystone/keystone.log

Jun 21 13:16:11 controller systemd[1]: Starting OpenStack Identity service... Jun 21 13:16:11 controller systemd[1]: Started OpenStack Identity service.

root@controller:/home/user# systemctl | grep keystone

keystone.service loaded active running OpenStack Identity service

root@controller:/home/user# netstat -lntp | grep 35357

tcp6 0 0 :::35357 :::* LISTEN 1385/apache2

root@controller:/home/user# netstat -lntp | grep 5000

tcp6 0 0 :::5000 :::* LISTEN 1385/apache2

root@controller:/home/user# ps -ef | grep keystone

keystone 1397 1385 0 Jun20 ? 00:00:04 (wsgi:keystone-pu -k start keystone 1398 1385 0 Jun20 ? 00:00:03 (wsgi:keystone-pu -k start keystone 1399 1385 0 Jun20 ? 00:00:03 (wsgi:keystone-pu -k start keystone 1400 1385 0 Jun20 ? 00:00:03 (wsgi:keystone-pu -k start keystone 1401 1385 0 Jun20 ? 00:00:03 (wsgi:keystone-pu -k start keystone 1402 1385 0 Jun20 ? 00:00:07 (wsgi:keystone-ad -k start keystone 1403 1385 0 Jun20 ? 00:00:07 (wsgi:keystone-ad -k start keystone 1404 1385 0 Jun20 ? 00:00:06 (wsgi:keystone-ad -k start keystone 1405 1385 0 Jun20 ? 00:00:07 (wsgi:keystone-ad -k start keystone 1406 1385 0 Jun20 ? 00:00:07 (wsgi:keystone-ad -k start keystone 24570 1 0 13:17 ? 00:00:00 /usr/bin/python /usr/bin/keystone-all --config-file=/etc/keystone/keystone.conf --log-file=/var/log/keystone/keystone.log root 24584 23329 0 13:17 pts/8 00:00:00 grep --color=auto keystone root@controller:/home/user#

**user@controller:~$ export OS_TOKEN=07fa60062f168acd180c

user@controller:~$ export OS_URL=http://controller:35357/v3

user@controller:~$ export OS_IDENTITY_API_VERSION=3**

user@controller:~$ openstack domain list

+----------------------------------+---------+---------+-------------+ | ID | Name | Enabled | Description | +----------------------------------+---------+---------+-------------+ | 6616991f947b49ee9d4d02c3e9de9c8d | default | True | | +----------------------------------+---------+---------+-------------+

user@controller:~$ mysql -u root -p

Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 16 Server version: 10.0.25-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use keystone; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A

Database changed

MariaDB [keystone]> select * from domain;

+--------------------------+--------------------------+---------+-------+ | id | name | enabled | extra | +--------------------------+--------------------------+---------+-------+ | <<keystone.domain.root>> | <<keystone.domain.root>> | 0 | {} | +--------------------------+--------------------------+---------+-------+ 1 row in set (0.00 sec)

MariaDB [keystone]>

I could not understand what's wrong. Please help me.

Thanks in advance for any kind of help.