The resource could not be found
I am trying to run the example present at "https://github.com/jdutton/java-openstack-sdk-cli-example". I gave the tenant, admin and password correct and gave the end point as the end point present for "identity" in openstack dashboard. I get the following error:
{"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}
Exception in thread "main" com.woorea.openstack.base.client.OpenStackResponseException: Not Found
at com.woorea.openstack.connector.JerseyResponse.getEntity(JerseyResponse.java:22)
at com.woorea.openstack.base.client.OpenStackClient.execute(OpenStackClient.java:67)
at com.woorea.openstack.base.client.OpenStackRequest.execute(OpenStackRequest.java:98)
at example.Cli.init(Cli.java:204)
at example.Cli.run(Cli.java:159)
at example.Cli.main(Cli.java:104)
Also, I get
INFO: 1 * Client out-bound request
1 > POST http://172.x.x.x:5000/v2.0/tokens
1 > Accept: application/json
1 > Content-Type: application/json
{
"auth" : {
"tenantName" : "admin",
"passwordCredentials" : {
"username" : "admin",
"password" : "******"
}
}
}
The password has 6 stars and my password is just 5 alphabets.
After this the output is as follows :
Services:
Mar 03, 2014 4:18:08 PM com.woorea.openstack.connector.JerseyLoggingFilter log
INFO: 2 * Client out-bound request
2 > GET http://172.x.x.x:5000/v2.0/OS-KSADM/services
2 > X-Auth-Token: 7266620ccb6f485ba681937bb99719a2
2 > Accept: application/json
2 > Content-Type: application/json
Mar 03, 2014 4:18:15 PM com.woorea.openstack.connector.JerseyLoggingFilter log
INFO: 2 * Client in-bound response
2 < 404
2 < Date: Mon, 03 Mar 2014 10:48:08 GMT
2 < Vary: X-Auth-Token
2 < Content-Length: 93
2 < Connection: keep-alive
2 < Content-Type: application/json
2 <
{"error": {"message": "The resource could not be found.", "code": 404, "title":
"Not Found"}}
Exception in thread "main" com.woorea.openstack.base.client.OpenStackResponseExc
eption: Not Found
at com.woorea.openstack.connector.JerseyResponse.getEntity(JerseyResponse.java:22)
at com.woorea.openstack.base.client.OpenStackClient.execute(OpenStackClient.java:67)
at com.woorea.openstack.base.client.OpenStackRequest.execute(OpenStackRequest.java:98)
at example.Cli.init(Cli.java:204)
at example.Cli.run(Cli.java:159)
OpenStack runs on CentOS Havana release !.
Any suggestions on how to proceed ? Thanks