Ask Your Question
0

keystone user-list returns nothing

asked 2014-07-03 07:08:22 -0500

hannuvisti gravatar image

updated 2014-07-03 07:29:16 -0500

dbaxps gravatar image

Hi,

I am trying to install Openstack (keystone version 0.7.1) on an Ubuntu 14.04 server. I am new to this so I decided to follow the Openstack installation guide. I managed to do well until this stage: http://docs.openstack.org/icehouse/in...

As long as I am using service tokens, everything is fine.  When I unset OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT, my luck stops there. 

I am able to run keystone token-get with either command line options (username/passwd/os-auth-url etc) or environment variables.  However, user-list works with neither  If I revert back to OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT it does work.  I do not get any error messages except the "no handlers" -warning, which appears to be normal. It just does not report back anything, nor do other commands like endpoint-get, tenant-list etc). 

visti@ubuntu:~$ keystone --debug --os-username=admin --os-password=xxx --os-tenant-name=admin --os-auth-url=http://172.241.0.101:35357/v2.0 user-list
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://172.241.0.101:35357/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "foobar"}}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 172.241.0.101
DEBUG:urllib3.connectionpool:Setting read timeout to 600.0
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 2520
DEBUG:keystoneclient.session:RESP: [200] CaseInsensitiveDict({'date': 'Thu, 03 Jul 2014 12:05:38 GMT', 'vary': 'X-Auth-Token', 'content-length': '2520', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2014-07-03T12:05:38.828937", "expires": "2014-07-03T13:05:38Z", "id": "MIIE-AYJKoZIhvcNAQcCoIIE7TCCBOkCAQExDTALBglghkgBZQMEAgEwggNKBgkqhkiG9w0BBwGgggM7BIIDN3siYWNjZXNzIjogeyJ0b2tlbiI6IHsiaXNzdWVkX2F0IjogIjIwMTQtMD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VTMQ4wDAYDVQQIDAVVbnNldDEOMAwGA1UEBwwFVW5zZXQxDjAMBgNVBAoMBVVuc2V0MRgwFgYDVQQDDA93d3cuZXhhbXBsZS5jb20CAQEwCwYJYIZIAWUDBAIBMA0GCSqGSIb3DQEBAQUABIIBABDnoll-Gwc1gBOXAFf5l+Wqgem4eccKWmZx5g+jWQ6lHqbuc8qpKTg9xzMErh+eJE2j90qFTBzZBB5xk5LKT-7vuztDtDRstzIKrKcDaXB3+3zfgDHPYprqq3UxesN7ciUWEOdGnsnRm4KmDPOU9Glhfb0DXKFlc3ai1+xciAph+KPW+qmSnWIMZ3vd-A57c8NFcEkdBe0q3JKFr6BFJHRF1XlK+oEg+bRNnJbf7MeCmt2jrks1mDlERe6WD6zn+5lLTK6u1vZypGJMAYm2FZycuH65bM1ucYAVbehcXCi-JbkcmF7V7ydBSfm54KLD-vzlLthuG28+1xafbj+Mz00=", "tenant": {"description": "admin tenant", "enabled": true, "id": "781fb930c10747b1b554d56b65663ed4", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://172.241.0.101:35357/v2.0", "region": "regionOne", "internalURL": "http://172.241.0.101:5000/v2.0", "id": "05d2523ff8f64ab5b0ad22b1dcb05acb", "publicURL": "http://172.241.0.101:5000/v2.0"}], "endpoints_links": [], "type": "idenity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "427d616f249b49f086748834d0df408c", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "7e66a88befa5468f808de85d5f129b04"]}}}

WARNING:keystoneclient.httpclient:Failed to retrieve management_url from token
DEBUG:iso8601.iso8601:Parsed 2014-07-03T13:05:38Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'13', 'daydash': u'03', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'38', 'tz_minute': None, 'year': u'2014', 'separator': u'T', 'monthdash': u'07', 'day': None, 'minute': u'05'} with default timezone <iso8601.iso8601.Utc object at 0x7fcfd3c932d0>
DEBUG:iso8601.iso8601:Got u'2014' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'07' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 7 for 'month' with default 7
DEBUG:iso8601.iso8601:Got u'03' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 3 for 'day' with default 3
DEBUG:iso8601.iso8601:Got u'13' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'05' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'38' for 'second' with default None


If I enter a wrong username/password combination, I do get an error message ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-07-03 10:52:38 -0500

Your service catalog is wrong. Not sure how you setup your service catalog. It can either be templated or sql based. You have a typo there. The type of the service is "identity" and not "idenity" as given in your log response.

], "type": "idenity", "name": "keystone"}], "us
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: 2014-07-03 07:08:22 -0500

Seen: 1,156 times

Last updated: Jul 03 '14