Associate more than one floating ip address to an instance

Asked by Tushar Patil

In current nova, I can assign more than one floating ip address to an instance.

DescribeAddress show two addresses associated to the same instance.
root@ubuntu-network-api-server:/home# euca-describe-addresses
ADDRESS 10.2.3.96 i-00000067 (project-2)
ADDRESS 10.2.3.97 i-00000067 (project-2)

Is this a bug?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

No, it is a feature. Both ips should work.

On Jan 26, 2011, at 2:00 PM, Tushar Patil wrote:

> New question #142997 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/142997
>
> In current nova, I can assign more than one floating ip address to an instance.
>
> DescribeAddress show two addresses associated to the same instance.
> root@ubuntu-network-api-server:/home# euca-describe-addresses
> ADDRESS 10.2.3.96 i-00000067 (project-2)
> ADDRESS 10.2.3.97 i-00000067 (project-2)
>
> Is this a bug?
>
> --
> 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
Tushar Patil (tpatil) said :
#2

OK.

But in this case describe instance will display only one floating ip address. Is this OK?

Also I found another bug, If you associate more than one floating ip address to an instance and when you terminate the instance it disassociates only one floating ip address. I will report this as a bug.

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

Hmm, I changed that at one point to display them all but it doesn't look like it made it into trunk. My change was to print them all space separated like this:

            }
            fixed_addr = None
            floating_addr = None
            if instance['fixed_ip']:
                fixed_addr = instance['fixed_ip']['address']
                floating_ips = instance['fixed_ip'].get('floating_ips', [])
                if floating_ips:
                    floating_addr = ' '.join([x['address']
                                              for x in floating_ips])
            i['privateDnsName'] = fixed_addr
            i['publicDnsName'] = floating_addr

I am a little concerned about breaking tools though.

Vish

On Jan 26, 2011, at 2:53 PM, Tushar Patil wrote:

> Question #142997 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/142997
>
> Status: Answered => Open
>
> Tushar Patil is still having a problem:
> OK.
>
> But in this case describe instance will display only one floating ip
> address. Is this OK?
>
> Also I found another bug, If you associate more than one floating ip
> address to an instance and when you terminate the instance it
> disassociates only one floating ip address. I will report this as a bug.
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Can you help with this problem?

Provide an answer of your own, or ask Tushar Patil for more information if necessary.

To post a message you must log in.