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 I can get users list or project list correctly using keystone V2. Mainly code is:
os = OSFactory.builder().endpoint(tokenUrl)
.credentials(userName,password)
.authenticate();
UserService userService = os.identity().users();
List<? extends User> users = userService.list();
But when using keystone V3, the code is:
Identifier domainId = Identifier.byId("default");
os = OSFactory.builderV3().endpoint(tokenUrl)
.credentials(userName, password,domainId)
.authenticate();
I got this exception :
Exception in thread "main" java.lang.NullPointerException
at org.openstack4j.openstack.identity.internal.DefaultEndpointURLResolver.resolveV3(DefaultEndpointURLResolver.java:110)
at org.openstack4j.openstack.identity.internal.DefaultEndpointURLResolver.findURL(DefaultEndpointURLResolver.java:50)
at org.openstack4j.openstack.internal.OSClientSession.getEndpoint(OSClientSession.java:202)
at org.openstack4j.core.transport.HttpRequest$RequestBuilder.build(HttpRequest.java:405)
at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:177)
at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:172)
at org.openstack4j.openstack.identity.internal.UserServiceImpl.list(UserServiceImpl.java:25)
at com.cloudmap.csmc.kernel.cloud.openstack_v3_kilo.util.Openstack4jUtil.authenticated(Openstack4jUtil.java:57)
at com.cloudmap.csmc.kernel.cloud.openstack_v3_kilo.util.Openstack4jUtil.main(Openstack4jUtil.java:114)
I can get the correct user list or project list with keystone v3, using openstack REST API.
The text was updated successfully, but these errors were encountered:
My openstack version is kilo, and I can get users list or project list correctly using keystone V2. Mainly code is:
os = OSFactory.builder().endpoint(tokenUrl)
.credentials(userName,password)
.authenticate();
UserService userService = os.identity().users();
List<? extends User> users = userService.list();
But when using keystone V3, the code is:
Identifier domainId = Identifier.byId("default");
os = OSFactory.builderV3().endpoint(tokenUrl)
.credentials(userName, password,domainId)
.authenticate();
I got this exception :
Exception in thread "main" java.lang.NullPointerException
at org.openstack4j.openstack.identity.internal.DefaultEndpointURLResolver.resolveV3(DefaultEndpointURLResolver.java:110)
at org.openstack4j.openstack.identity.internal.DefaultEndpointURLResolver.findURL(DefaultEndpointURLResolver.java:50)
at org.openstack4j.openstack.internal.OSClientSession.getEndpoint(OSClientSession.java:202)
at org.openstack4j.core.transport.HttpRequest$RequestBuilder.build(HttpRequest.java:405)
at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:177)
at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:172)
at org.openstack4j.openstack.identity.internal.UserServiceImpl.list(UserServiceImpl.java:25)
at com.cloudmap.csmc.kernel.cloud.openstack_v3_kilo.util.Openstack4jUtil.authenticated(Openstack4jUtil.java:57)
at com.cloudmap.csmc.kernel.cloud.openstack_v3_kilo.util.Openstack4jUtil.main(Openstack4jUtil.java:114)
I can get the correct user list or project list with keystone v3, using openstack REST API.
The text was updated successfully, but these errors were encountered: