FloatingIP create() issue
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