from keystoneclient.v2_0 import client as client_v2

asked 2017-08-09 12:51:22 -0500

Okey-doke gravatar image

updated 2017-08-09 13:00:47 -0500

Hi guys, I created an instance as keystone = client_v2.Client(auth_url=auth_url, tenant_name=tenant_name, username=username, password=password) and I can get response from keystone.auth_ref, which means I was authenticated, right?

But I cannot list the roles using keystone.roles.list() even though I can list users using keystone.users.list()

Could anyone help me out? Thanks!

edit retag flag offensive close merge delete


Are you getting any error when you try to list the roles ?

teju gravatar imageteju ( 2017-08-09 20:51:27 -0500 )edit

Yes. I figured it out already, as I was using v2 client API to call v3 API (my OpenStack only has v3 keystone endpoints) and it couldn't get the resource. Thanks.

Okey-doke gravatar imageOkey-doke ( 2017-08-09 22:13:23 -0500 )edit