Ask Your Question
0

Associate more than one floating ip address to an instance

asked 2011-01-26 22:00:10 -0600

tpatil gravatar image

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?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-01-26 22:41:51 -0600

vishvananda gravatar image

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/+q...

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).

edit flag offensive delete link more
0

answered 2011-01-26 22:53:08 -0600

tpatil gravatar image

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.

edit flag offensive delete link more
0

answered 2011-01-26 23:47:24 -0600

vishvananda gravatar image

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/+q...

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).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-01-26 22:00:10 -0600

Seen: 77 times

Last updated: Jan 26 '11