Ask Your Question
0

FloatingIP create() issue

asked 2014-08-15 13:22:03 -0500

chwang718 gravatar image

updated 2014-08-15 16:46:04 -0500

SamYaple gravatar image

Hi Guys,

I am newbie in Opstack and jcloud. i am tracking a FloatingIP create() issue.

When the code call this method.

FloatingIPApi   floatingIPApi   novaApi.getFloatingIPExtensionForZone(regionId).get();
FloatingIP allocatedIp = floatingIPApi.create()

floatingIPApi.create() returns null.
itemNotFound": {"message": "FloatingIpPoolNotFound: Floating ip pool not found.", "code": 404}}"

this is log info:

DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - Sending request -1031641860: POST https://172.24.46.155/rest/compute/v1.1/c52a7129662c4ef9a06da68f77ada809/os-floating-ips HTTP/1.1
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - >> "{}"
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - >> POST https://10.10.10.1/rest/compute/v1.1/c52a7129662c4ef9a06da68f77ada809/os-floating-ips HTTP/1.1
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - >> Accept: application/json
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - >> X-Auth-Token: 97093c1597d9403a9ac197922f35dd3b
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - >> Content-Type: application/json
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - >> Content-Length: 2
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - Receiving response -1031641860: HTTP/1.1 404 Not Found
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << HTTP/1.1 404 Not Found
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << cache-control: no-cache
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << Vary: Accept-Encoding
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << Date: Thu, 14 Aug 2014 05:13:50 GMT
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << Keep-Alive: timeout=15, max=100
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << Via: 1.1 CSAppliance-CAN.Partner.com
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << Connection: Keep-Alive
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << X-Compute-Request-Id: req-200b812f-e46e-4a94-9ebe-9af6fd55a4f2
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << Content-Type: application/json; charset=UTF-8
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << Content-Length: 97
DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - << "{"itemNotFound": {"message": "FloatingIpPoolNotFound: Floating ip pool not found.", "code": 404}}"
2014-08-14 10:44:11,148 [CreateFloatingIPAddressTask-29 -] ERROR com.hp.hpio.cloud.nova.NovaOperationHandler.createFloatingIp - Failed to create floating IP, NULL returns

But we have IP pool. if we allocate a specified floating IP using the following code, it works good. floatingIPApi.addToServer(floatingIpAddress, serverId);

I am not sure if there is any setup in Cloud site?

Thanks for help in advance.

Edward

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-18 04:23:59 -0500

Everett Toews gravatar image

These were the jclouds issues 471 and 607. Both have been resolved.

Please upgrade your jclouds version to 1.8.0 and give it another try.

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

2 followers

Stats

Asked: 2014-08-15 13:22:03 -0500

Seen: 206 times

Last updated: Aug 18 '14