<div dir="ltr">Thank you, but which one is incorrect?<div><br></div><div>All my passwd is set to 'gateway', and I use 'gateway' username not 'admin' or 'openstack'.</div><div><br></div><div>And in <a href="https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-install.html" target="_blank" style="font-size:14px">https://docs.openstack.org/<wbr>ocata/install-guide-ubuntu/<wbr>keystone-install.html</a> this step, I set every thing as doc said except env as bellow, but event I set env as doc said(which set OS_USERNAME=admin), I also got errors as bellow.</div><div><br></div><div>So how to do....</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-12 23:01 GMT+08:00 Chris Suttles <span dir="ltr"><<a href="mailto:suttles@gmail.com" target="_blank">suttles@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Your env looks incorrect to me. Take a look here for setting those vars correctly:<br><br><a href="https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-install.html" target="_blank">https://docs.openstack.org/<wbr>ocata/install-guide-ubuntu/<wbr>keystone-install.html</a><br><div><br></div><div>It's crucial that you set those variables to the same information you provide to keystone in the steps listed there.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Mar 12, 2017 at 6:35 AM, Sam <span dir="ltr"><<a href="mailto:batmanustc@gmail.com" target="_blank">batmanustc@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div class="m_-277143866151635483HOEnZb"><div class="m_-277143866151635483h5"><div dir="ltr">Hi all,<div><br></div><div>I'm installing openstack ocata version, in this step:</div><div><a href="https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-users.html" target="_blank">https://docs.openstack.org/oca<wbr>ta/install-guide-ubuntu/keysto<wbr>ne-users.html</a><br></div><div>I got error while run 'openstack' command:</div><div>Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-1ee39bdd-03b8-4ea8-9432-d0<wbr>27f91c131a)<br></div><div><br></div><div>My env is:</div><div><div>export OS_USERNAME=gateway</div><div>export OS_PASSWORD=gateway</div><div>export OS_PROJECT_NAME=gateway</div><div>export OS_USER_DOMAIN_NAME=Default</div><div>export OS_PROJECT_DOMAIN_NAME=Default</div><div>export OS_AUTH_URL=<a href="http://controller:35357/v3" target="_blank">http://controller:<wbr>35357/v3</a></div><div>export OS_IDENTITY_API_VERSION=3</div></div><div><br></div><div><br></div><div>detail error is as bellow, does that mean my env is wrong? Thank you!</div><div><br></div><div><div>gateway@gateway-virtual-machin<wbr>e:~$ openstack project create --domain default --description "Service Project" service</div><div>The request you have made requires authentication. (HTTP 401) (Request-ID: req-cf395e9a-a69f-4a71-9f08-26<wbr>cb149cb7bd)</div><div>gateway@gateway-virtual-machin<wbr>e:~$ openstack project create --domain default --description "Service Project" service --debug</div><div>START with options: [u'project', u'create', u'--domain', u'default', u'--description', u'Service Project', u'service', u'--debug']</div><div>options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='<a href="http://controller:35357/v3" target="_blank">http://controller:35<wbr>357/v3</a>', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, old_profile=None, openid_scope='', os_beta_command=False, 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='', passcode='', password='***', profile=None, project_domain_id='', project_domain_name='Default', project_id='', project_name='gateway', protocol='', redirect_uri='', region_name='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='gateway', verbose_level=3, verify=None)</div><div>Auth plugin password selected</div><div>auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'cacert': None, 'auth_url': '<a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a>', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'gateway', u'container_infra_api_version'<wbr>: u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'gateway', 'project_domain_name': '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', 'timing': False, 'password': '***', u'application_catalog_api_vers<wbr>ion': u'1', 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', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}</div><div>defaults: {u'auth_type': 'password', u'status': u'active', 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', u'container_infra_api_version'<wbr>: u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_vers<wbr>ion': u'1', u'key_manager_api_version': u'v1', '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'interface': None, u'disable_vendor_agent': {}}</div><div>cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'cacert': None, 'auth_url': '<a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a>', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'gateway', u'container_infra_api_version'<wbr>: u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'gateway', 'project_domain_name': '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', 'timing': False, 'password': '***', u'application_catalog_api_vers<wbr>ion': u'1', 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', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}</div><div>compute API version 2, cmd group openstack.compute.v2</div><div>network API version 2, cmd group openstack.network.v2</div><div>image API version 2, cmd group openstack.image.v2</div><div>volume API version 2, cmd group openstack.volume.v2</div><div>identity API version 3, cmd group openstack.identity.v3</div><div>object_store API version 1, cmd group openstack.object_store.v1</div><div>neutronclient API version 2, cmd group openstack.neutronclient.v2</div><div>Auth plugin password selected</div><div>auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'cacert': None, 'auth_url': '<a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a>', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'gateway', u'container_infra_api_version'<wbr>: u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'gateway', 'project_domain_name': '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', 'timing': False, 'password': '***', u'application_catalog_api_vers<wbr>ion': u'1', 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', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}</div><div>Auth plugin password selected</div><div>auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'cacert': None, 'auth_url': '<a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a>', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'gateway', u'container_infra_api_version'<wbr>: u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'gateway', 'project_domain_name': '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', 'timing': False, 'password': '***', u'application_catalog_api_vers<wbr>ion': u'1', 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', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}</div><div>command: project create -> <a href="http://openstackclient.identity.v3.pr" target="_blank">openstackclient.identity.v3.pr</a><wbr>oject.CreateProject</div><div>Auth plugin password selected</div><div>auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'cacert': None, 'auth_url': '<a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a>', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'gateway', u'container_infra_api_version'<wbr>: u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'gateway', 'project_domain_name': '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', 'timing': False, 'password': '***', u'application_catalog_api_vers<wbr>ion': u'1', 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', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}</div><div>Using auth plugin: password</div><div>Using parameters {'username': 'gateway', 'project_name': 'gateway', 'user_domain_name': 'Default', 'auth_url': '<a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a>', 'password': '***', 'project_domain_name': 'Default'}</div><div>Get auth_ref</div><div>REQ: curl -g -i -X GET <a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a> -H "Accept: application/json" -H "User-Agent: osc-lib/1.3.0 keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"</div><div>Starting new HTTP connection (1): controller</div><div><a href="http://controller:35357" target="_blank">http://controller:35357</a> "GET /v3 HTTP/1.1" 200 250</div><div>RESP: [200] Date: Sun, 12 Mar 2017 07:42:13 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-a5985b14-797e-4269-88bb-c2<wbr>a7147742db Content-Length: 250 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json </div><div>RESP BODY: {"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.ide<wbr>ntity-v3+json"}], "id": "v3.8", "links": [{"href": "<a href="http://controller:35357/v3/" target="_blank">http://controller:35357/v3/</a>", "rel": "self"}]}}</div><div><br></div><div>GET call to None for <a href="http://controller:35357/v3" target="_blank">http://controller:35357/v3</a> used request id req-a5985b14-797e-4269-88bb-c2<wbr>a7147742db</div><div>Making authentication request to <a href="http://controller:35357/v3/auth/tokens" target="_blank">http://controller:35357/v3/aut<wbr>h/tokens</a></div><div><a href="http://controller:35357" target="_blank">http://controller:35357</a> "POST /v3/auth/tokens HTTP/1.1" 401 114</div><div>Request returned failure status: 401</div><div>The request you have made requires authentication. (HTTP 401) (Request-ID: req-1ee39bdd-03b8-4ea8-9432-d0<wbr>27f91c131a)</div><div>Traceback (most recent call last):</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/cliff/app.py", line 393, in run_subcommand</div><div> self.prepare_to_run_command(cm<wbr>d)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/openstackclient/shell.py", line 198, in prepare_to_run_command</div><div> return super(OpenStackShell, self).prepare_to_run_command(c<wbr>md)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/shell.py", line 457, in prepare_to_run_command</div><div> self.client_manager.auth_ref</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/clientmanager.py", line 215, in auth_ref</div><div> self._auth_ref = self.auth.get_auth_ref(<a href="http://self.se" target="_blank">self.se</a><wbr>ssion)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/identity/gen<wbr>eric/base.py", line 198, in get_auth_ref</div><div> return self._plugin.get_auth_ref(sess<wbr>ion, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/identity/v3/<wbr>base.py", line 167, in get_auth_ref</div><div> authenticated=False, log=False, **rkwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/session.py", line 766, in post</div><div> return self.request(url, 'POST', **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/session.py", line 40, in request</div><div> resp = super(TimingSession, self).request(url, method, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/positional/__init__.py", line 101, in inner</div><div> return wrapped(*args, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/session.py", line 655, in request</div><div> raise exceptions.from_response(resp, method, url)</div><div>Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-1ee39bdd-03b8-4ea8-9432-d0<wbr>27f91c131a)</div><div>clean_up CreateProject: The request you have made requires authentication. (HTTP 401) (Request-ID: req-1ee39bdd-03b8-4ea8-9432-d0<wbr>27f91c131a)</div><div>Traceback (most recent call last):</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/shell.py", line 135, in run</div><div> ret_val = super(OpenStackShell, self).run(argv)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/cliff/app.py", line 279, in run</div><div> result = self.run_subcommand(remainder)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/shell.py", line 180, in run_subcommand</div><div> ret_value = super(OpenStackShell, self).run_subcommand(argv)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/cliff/app.py", line 393, in run_subcommand</div><div> self.prepare_to_run_command(cm<wbr>d)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/openstackclient/shell.py", line 198, in prepare_to_run_command</div><div> return super(OpenStackShell, self).prepare_to_run_command(c<wbr>md)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/shell.py", line 457, in prepare_to_run_command</div><div> self.client_manager.auth_ref</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/clientmanager.py", line 215, in auth_ref</div><div> self._auth_ref = self.auth.get_auth_ref(<a href="http://self.se" target="_blank">self.se</a><wbr>ssion)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/identity/gen<wbr>eric/base.py", line 198, in get_auth_ref</div><div> return self._plugin.get_auth_ref(sess<wbr>ion, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/identity/v3/<wbr>base.py", line 167, in get_auth_ref</div><div> authenticated=False, log=False, **rkwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/session.py", line 766, in post</div><div> return self.request(url, 'POST', **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/osc_lib/session.py", line 40, in request</div><div> resp = super(TimingSession, self).request(url, method, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/positional/__init__.py", line 101, in inner</div><div> return wrapped(*args, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packa<wbr>ges/keystoneauth1/session.py", line 655, in request</div><div> raise exceptions.from_response(resp, method, url)</div><div>Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-1ee39bdd-03b8-4ea8-9432-d0<wbr>27f91c131a)</div><div><br></div><div>END return value: 1</div></div><div><br></div></div>
</div></div><br></div></div>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>