Hi Nirmal,
We'd like to propose an enhancement to the current apache stratos cloud
controller to allow the assignment of predefined floating ip when creating a
new instance.
Instead of auto assigning the floating ip address from the pool (autoAssignIp
"false" in cartridgeDefinitionBean:iaasProvider, see example below), the ip
address would be predefined in the cartridge definition as an additional
property (see example below with property "floatingIp", ) and if available in
the floating ip pool, assigned to the instance when it is created. If the
floating ip is unavailable, an exception will be thrown and the instance will
be destroyed.
As for now it would be sufficient to add this enhancement for the OpenStack
provider.
Let me know what you think, and since going forward we would like to contribute
to apache stratos I'd like to use this as an opportunity to get my feet wet
and contribute the necessary changes.
Can you please advise on the process and proper steps to propose and add an
enhancement like this to the project ?
Thanks
Martin
Sample Cartridge definition:
...
"iaasProvider":
[
{
"type": "openstack",
"imageId": "RegionOne/${IMAGE_ID}",
"maxInstanceLimit": "4",
"property":
[
{
"name": "instanceType",
"value": "RegionOne/${FLAVOR_ID}"
},
{
"name": "keyPair",
"value": "${KEY}"
},
{
"name": "autoAssignIp",
"value": "false"
},
{
"name": "floatingIp",
"value": "10.10.10.10"
},
{
"name": "securityGroups",
"value": "default"
},
{
"name": "networkInterfaces",
"value": "net1,net2,net3"
}
]
}
],
...
-