On 02/23/2016 06:22 AM, Yngvi Páll Þorfinnsson wrote:
Hi

How can I choose a particular flotating IP for an instance?

I just released an floating IP from an tenant, but would like to
associate this particular IP , with another instance.

It‘s not in use, when I list all floating IP‘s , it does not appear in
the list:

neutron floatingip-list | grep IP

I'm not familiar with a command way to request a specific floating IP (eg 1.2.3.4) out of the pool(s). Once you delete a given floating IP, it goes back into the free pool, at least after a fashion - as part of what I recall is an effort to minimize overheads, it won't actually come-up for allocation again until the allocations have cycled through all the addresses ahead/behind it. So, if the pool was IPs:

1 2 3 4

And you happened to get "2" but then deleted that floater, "2" will not be allocated again until 3, 4 and 1 have been allocated (and perhaps freed). Allocation goes in a big circle.

If you want to move a floating IP from one instance to another, you should just disassociate the floating IP, not also delete it. Then the floating IP remains allocated to your project (IIRC we are all supposed to start calling them projects not tenants...) and you can then associate the IP with a port belonging to another instance.

rick jones


I‘ve been trying some nova and neturon cmd‘s but without success.

Here is an example of error:

root@opst-ctrl1-dev:/# nova floating-ip-associate
c8443770-276e-44ce-b79d-32965db9465b IP

ERROR (NotFound): floating ip not found (HTTP 404) (Request-ID:
req-1ed31433-2cc3-4e36-ad4c-fc992518baae)

nova floating-ip-pool-list

works fine, and I can see 6 differnt floating ip pools.

It would be nice, if someone can post a cmd procedure for this.

Best regards

Yngvi



_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to