Ask Your Question
0

Not able to use Apache jcloud to connect to Openstack sandbox

asked 2014-10-09 07:46:11 -0500

anonymous user

Anonymous

I have installed Rackspace private cloud in my VMware box from the OVA file. I am able to do all operations from Horizon Dashboard. But when trying to list down the server using Apache jclouds getting this exception -

SEVERE: Cannot retry after server error, command has exceeded retry limit 5: [method=public abstract com.google.common.util.concurrent.ListenableFuture org.jclouds.openstack.keystone.v2_0.AuthenticationAsyncApi.authenticateWithTenantNameAndCredentials(java.lang.String,org.jclouds.openstack.keystone.v2_0.domain.PasswordCredentials)[admin, PasswordCredentials{username=admin, password=Passw0rd}], request=POST http://.133..70:5000/v2.0/tokens HTTP/1.1] Exception in thread "main" org.jclouds.http.HttpResponseException: connect timed out connecting to POST http://.133..70:5000/v2.0/tokens HTTP/1.1

I am using Jcloud 1.7.3 and here is the code snippet how I am using the API

String provider = "openstack-nova"; String identity = "admin:admin"; // tenantName:userName String credential = "Passw0rd"; novaApi = ContextBuilder.newBuilder(provider) .endpoint("http://.133.*.70:5000/v2.0") .credentials(identity, credential) .buildApi(NovaApi.class); zones = novaApi.getConfiguredZones();

Here is my keystone endpoint

keystone | Value | +-------------+----------------------------------+ | adminURL | http://.133..70:35357/v2.0 | | region | RegionOne | | publicURL | http://.133..70:5000/v2.0 | | internalURL | http://.133.*.70:5000/v2.0 | | id | 3c418c03c0bf423085a3d5380b83737c |

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-10-09 11:30:30 -0500

Does this IP look good?. Please correct the endpoints in you endpoint table

POST http://.133..70:5000

edit flag offensive delete link more

Comments

Hey Haneef, I have just sanitized the IP. I am using valid IP only.

Tanmoy gravatar imageTanmoy ( 2014-10-09 12:01:23 -0500 )edit

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-10-09 07:46:11 -0500

Seen: 483 times

Last updated: Oct 09 '14