[
https://issues.apache.org/jira/browse/STRATOS-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeffrey Nguyen resolved STRATOS-646.
------------------------------------
Resolution: Fixed
Commit: 535a645561f75d98d6d79acd2506a9651d8b64f9 [535a645]
This fix requires a new property named defaultFloatingIpPool in
cloud-controller.xml to specify the name of the floating IP pool to be used.
<iaasProviders>
<iaasProvider type="openstack" name="openstack specific
details">
...
<property name="autoAssignIp" value="true"/>
<property name="defaultFloatingIpPool" value="public"/>
</iaasProvider>
</iaasProviders>
> Floating IP allocation fails if we don't pre-allocate floating IPs
> ------------------------------------------------------------------
>
> Key: STRATOS-646
> URL: https://issues.apache.org/jira/browse/STRATOS-646
> Project: Stratos
> Issue Type: Bug
> Components: Cloud Controller
> Affects Versions: 4.0.0 RC1
> Environment: Stratos 4.0.0-incubating-RC1
> Reporter: Jeffrey Nguyen
>
> Floating IP allocation fails when launching cartridge if we don't have
> floating IPs pre-allocated for the tenant involved. Please see exception
> below.
> Impact: spawned instance stuck at the inactive state. Stratos keeps
> launching new instances of the same cartridge.
> Work-around: pre-allocate the floating IPs before subscribing to cartridge,
> e.g. in Openstack use "neutron floatingip-create public"
> TID: [0] [STRATOS] [2014-05-07 13:50:16,696] DEBUG {jclouds.wire} - <<
> "{"floating_ips": [{"instance_id": "193eceb2-1de5-44f1-9885-535d13b2f8e5",
> "ip": "10.x.x.x", "fixed_ip": "172.x.x.x", "id":
> "31456f20-04c0-4542-a28d-e7f555ee4da7", "pool": "public"}]}" {jclouds.wire}
> TID: [0] [STRATOS] [2014-05-07 13:50:16,721] DEBUG {jclouds.wire} - >> "{}"
> {jclouds.wire}
> TID: [0] [STRATOS] [2014-05-07 13:50:16,733] DEBUG {jclouds.wire} - <<
> "{"itemNotFound": {"message": "FloatingIpPoolNotFound: Floating ip pool not
> found.", "code": 404}}" {jclouds.wire}
> TID: [0] [STRATOS] [2014-05-07 13:50:16,734] ERROR
> {org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas} - Failed to
> allocate an IP address.
> {org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas}
> TID: [0] [STRATOS] [2014-05-07 13:50:16,735] ERROR
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
> Error occurred while allocating an ip address. MemberContext
> [memberId=cisco-sample-vm.cisco-sample-v5c3e8274-9c37-4587-b174-87d0e454fb3a,
> nodeId=RegionOne/004f4fda-23f5-45b3-8e69-6ae10a4a7393,
> clusterId=cisco-sample-vm.cisco-sample-v, cartridgeType=cisco-sample-vm,
> privateIpAddress=null, publicIpAddress=null, allocatedIpAddress=null,
> initTime=1399470610265, lbClusterId=null, networkPartitionId=N1]
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
> org.apache.stratos.cloud.controller.exception.CloudControllerException:
> Failed to allocate an IP address.
> at
> org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas.associateAddress(OpenstackNovaIaas.java:259)
> at
> org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl$IpAllocator.run(CloudControllerServiceImpl.java:635)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
--
This message was sent by Atlassian JIRA
(v6.2#6252)