Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tenants and roles empty #616

Closed
dimazaur opened this issue Mar 19, 2016 · 3 comments
Closed

Tenants and roles empty #616

dimazaur opened this issue Mar 19, 2016 · 3 comments

Comments

@dimazaur
Copy link

I have several bugs:
tenants().create - returns null
tenants().list() - empty list
roles().list() - empty list
users().list() - is working fine

When I use just simple json requests to the Keystone - this functionality working well.
But wanted to use advanced library.
Where could be an issue?
Thanks.

@babyachievement
Copy link

I find the problem too. When I try to get the size of services by calling list method of ServiceManagerService with admin user, it return 0.

OSClient os = OSFactory.builder()
                .endpoint("http://10.128.8.90:5000/v2.0")
                .credentials("admin","123456")
                .tenantName("admin")
                .authenticate();
ServiceManagerService sm = os.identity().services();

// List Services
List<? extends org.openstack4j.model.identity.Service> services2 = sm.list();
System.out.println(services2.size());
System.out.println(sm.listEndpoints().size());

@zeyuphoenix
Copy link

used
OSClient os = OSFactory.builder()
.endpoint("http://10.128.8.90:5000/v2.0")
.credentials("admin","123456")
.tenantName("admin")
.perspective(Facing.ADMIN)
.authenticate();

can get roles and users

@babyachievement
Copy link

@zeyuphoenix thanks.

@gondor gondor closed this as completed May 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants