You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My openstack version is kilo and there are a few users created using the Web GUI. However, I can only get a empty users list with the following code. Is there any problem with openstack? My openstack version is 2.0.6.
OSClient os = OSFactory.builderV3() .endpoint("http://172.20.4.195:5000/v3").credentials("bb50ab5d331c4f4aa307e0fc6f4f8e8c","redhat")
.authenticate();
Hi @yingwail,
Sorry for the late response. Maybe in the meantime you figured out how to do it yourself.
If not:
I think your authentication might fail.
Using v3 authentication in the latest release of OpenStack4j, which is currently 2.0.9, requires a project- or domain-scope. I described how to do it in issue #506.
So you just need to add a scopeTo..()-line in your code.
My openstack version is kilo and there are a few users created using the Web GUI. However, I can only get a empty users list with the following code. Is there any problem with openstack? My openstack version is 2.0.6.
// Find all Users
UserService userService = os.identity().users();
List<? extends User> users = userService.list();
The text was updated successfully, but these errors were encountered: