Hi,

can you paste the credentials you're using?
The config values (e.g. domain) are case sensitive, the ID of the default domain is usually "domain", its name is "Default". But if you're sourcing the credentials with ID "Default" this would go wrong, although I'm not sure if this would be the expected error message.

Just a couple of weeks ago there was someone on ask.openstack.org who ignored case-sensitive options and failed to operate his cloud.

Did the keystone-manage bootstrap command work?

Regards


Zitat von Shyam Prasad N <nspmangal...@gmail.com>:

Hi,

I'm trying to install keystone for my swift cluster.
I followed this document for install and configuration:
https://docs.openstack.org/keystone/pike/install/

However, I'm getting this error for a command:
# openstack user create --domain default --password-prompt swift
The request you have made requires authentication. (HTTP 401) (Request-ID:
req-8f888754-1cf5-4c24-81b6-7481c9c0dfb8)

# tail /var/log/keystone/keystone.log
2018-04-11 22:45:10.895 29335 INFO keystone.common.wsgi
[req-147f239e-2205-40b5-8aea-40604c99b695 - - - - -] GET
http://20.20.20.7:35357/v3/
2018-04-11 22:45:10.898 29335 INFO eventlet.wsgi.server
[req-147f239e-2205-40b5-8aea-40604c99b695 - - - - -] 20.20.20.7 - -
[11/Apr/2018 22:45:10] "GET /v3 HTTP/1.1" 200 493 0.062545
2018-04-11 22:45:10.908 29335 INFO keystone.common.wsgi
[req-8f888754-1cf5-4c24-81b6-7481c9c0dfb8 - - - - -] POST
http://20.20.20.7:35357/v3/auth/tokens
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers
[req-8f888754-1cf5-4c24-81b6-7481c9c0dfb8 - - - - -] Could not find domain:
Default
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers Traceback
(most recent call last):
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/keystone/auth/controllers.py", line 185,
in _lookup_domain
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers
domain_name)
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 124, in
wrapped
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers     __ret_val
= __f(*args, **kwargs)
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1053, in
decorate
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers
should_cache_fn)
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 657, in
get_or_create
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers
async_creator) as value:
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 158, in
__enter__
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers     return
self._enter()
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 98, in
_enter
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers     generated
= self._enter_create(createdtime)
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 149, in
_enter_create
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers     created =
self.creator()
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 625, in
gen_value
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers
created_value = creator()
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1049, in
creator
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers     return
fn(*arg, **kw)
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers   File
"/usr/lib/python2.7/dist-packages/keystone/resource/core.py", line 720, in
get_domain_by_name
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers     raise
exception.DomainNotFound(domain_id=domain_name)
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers
DomainNotFound: Could not find domain: Default
2018-04-11 22:45:11.011 29335 ERROR keystone.auth.controllers
2018-04-11 22:45:11.016 29335 WARNING keystone.common.wsgi
[req-8f888754-1cf5-4c24-81b6-7481c9c0dfb8 - - - - -] Authorization failed.
The request you have made requires authentication. from 20.20.20.7
2018-04-11 22:45:11.018 29335 INFO eventlet.wsgi.server
[req-8f888754-1cf5-4c24-81b6-7481c9c0dfb8 - - - - -] 20.20.20.7 - -
[11/Apr/2018 22:45:11] "POST /v3/auth/tokens HTTP/1.1" 401 425 0.113822

Can someone please tell me what's going on?
Thanks in advance for your replies.

--
-Shyam



--
Eugen Block                             voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG      fax     : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg                         e-mail  : ebl...@nde.ag

        Vorsitzende des Aufsichtsrates: Angelika Mozdzen
          Sitz und Registergericht: Hamburg, HRB 90934
                  Vorstand: Jens-U. Mozdzen
                   USt-IdNr. DE 814 013 983


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to