How to create pool of individual floating IPs

Asked by Graham Hemingway

I do not have a block of floating IPs that I can give to my cloud. How can I add individual IP addresses to the list of available floating IPs? Do I have to hack the DB directly? A nova-manage command would be nice, but right now it only seems to support allocating and deallocating.

Thanks,
   Graham

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Graham Hemingway
Solved:
Last query:
Last reply:
Revision history for this message
Everett Toews (everett-toews) said :
#1

Have a look at my answer to this question (
https://answers.launchpad.net/nova/+question/149013).

If you don't have some public IP addresses to play around with you could use
the 172.16.0.0/12 block for testing.

You don't have to hack the DB directly.

Everett

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#2

Sorry if I was unclear. I have one address that I want to use as a floating IP. "nova-manage floating create" requires a host, which to me seems to defeat the purpose of a floating address. I guess I just don't understand how to set this up.

Thanks,
   Graham

Revision history for this message
Vish Ishaya (vishvananda) said :
#3

The host parameter is the hostname of the machine running nova-network. This is to support a different block of floating ips to different netowork hosts if you have more than one. You can find the hostname by typing
hostname
at the command line. So if the hostname of you nova-network host is ubuntu1 and your ip is 99.99.1.1, the command to add your floating ip would be:
nova-manage floating create ubuntu1 99.99.1.1/32
Vish

On Apr 26, 2011, at 9:02 AM, Graham Hemingway wrote:

> Question #154310 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/154310
>
> Status: Answered => Open
>
> Graham Hemingway is still having a problem:
> Sorry if I was unclear. I have one address that I want to use as a
> floating IP. "nova-manage floating create" requires a host, which to me
> seems to defeat the purpose of a floating address. I guess I just don't
> understand how to set this up.
>
> Thanks,
> Graham
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#4

Thanks. That is it.