-
Notifications
You must be signed in to change notification settings - Fork 366
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
Authentication error: Unable to respond to any of these challenges #884
Comments
Enable debug logging. Worth to check if the token's catalog contains the identity v3 service. |
I change user as demo ,the result is same . The command was ok when installed mitaka: So the token's catalog contains the identity v3 service |
As stated in the docs use |
Thank you, I don't know user domain id if it is 'default', The code is as follows : OSClientV3 os3 = OSFactory.builderV3() I run it ,the log is as follows: D:\tools\OpenStack4j>java TestNova |
HTTP/1.1 401 Unauthorized |
I don't know how to solve the problem... |
Check provided values (credentials, names, .. , user exists within domain) are correct. Maybe take a look at the http communication. Since this currently doesn't seem to show an issue in os4j I'd like to ask you to close and continue the discussion e.g. on stackoverflow. |
I installed openstack mitaka on CenOS and tried to connect it using openstack4j-3.0.2 ,The code is like this:
import org.openstack4j.api.OSClient.OSClientV3;
import org.openstack4j.openstack.OSFactory;
import org.openstack4j.model.common.Identifier;
public class TestNova
{
public static void main(String[] args)
{
String projectName = "admin";
String domainName = "default";
OSClientV3 os3 = OSFactory.builderV3()
.endpoint("http://111.207.49.183:5000/v3")
.credentials("admin", "admin")
.scopeToProject(Identifier.byName(projectName), Identifier.byName(domainName))
.authenticate();
}
}
Some problem occurs as follow:
Authentication error: Unable to respond to any of these challenges: {keystone=WWW-Authenticate
: Keystone uri="http://111.207.49.183:5000"}
Exception in thread "main" AuthenticationException{message=Unauthorized, status=401}
at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.jav
a:36)
at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.jav
a:23)
at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV2(OSAuthenticator.java:12
5)
at org.openstack4j.openstack.internal.OSAuthenticator.invoke(OSAuthenticator.java:52)
at org.openstack4j.openstack.client.OSClientBuilder$ClientV2.authenticate(OSClientBuilder.ja
va:117)
at org.openstack4j.openstack.client.OSClientBuilder$ClientV2.authenticate(OSClientBuilder.ja
va:79)
at TestNova.main(TestNova.java:17)
I don't know what is reason , Can Someone help me ?
The text was updated successfully, but these errors were encountered: