Ask Your Question
0

The resource could not be found

asked 2014-03-03 12:01:05 -0500

xyzxyzxyz gravatar image

updated 2014-03-03 19:09:13 -0500

smaffulli gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-03 19:09:54 -0500

smaffulli gravatar image

Is your clod working correctly? I would start debugging from there

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-03-03 12:01:05 -0500

Seen: 1,204 times

Last updated: Mar 03 '14