Release floating IP before disassociate it

Bug #761827 reported by Édouard Thuleau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
John Tran

Bug Description

I use 2011.2~gamma2~bzr989-0ubuntu0ppa1~lucid1

I've got an allocated floating IP address associated to an instance and if I've release it before disassociate it, the floating IP stills associated to the instance (iptables rules stays active) and it's not longer listed by describe address command.

$ euca-describe-addresses
ADDRESS 10.193.175.20 i-00000008

$ euca-describe-instances
RESERVATION r-dhzxpqbu simple default
INSTANCE i-00000008 ami-00000002 10.193.175.20 172.16.1.4 running mykey 0 m1.small 2011-04-15T14:33:44Z nova

$ euca-release-address 10.193.175.20
ADDRESS 10.193.175.20

$ euca-describe-addresses

$ euca-describe-instances
RESERVATION r-dhzxpqbu simple default
INSTANCE i-00000008 ami-00000002 10.193.175.20 172.16.1.4 running mykey 0 m1.small 2011-04-15T14:33:44Z nova

(network node)# iptables -t nat -nvL
...
Chain nova-network-OUTPUT (1 references)
 pkts bytes target prot opt in out source destination
    0 0 DNAT all -- * * 0.0.0.0/0 10.193.175.20 to:172.16.1.4
...
Chain nova-network-PREROUTING (1 references)
 pkts bytes target prot opt in out source destination
    0 0 DNAT udp -- * * 0.0.0.0/0 10.193.175.25 udp dpt:1000 to:172.16.1.2:1194
    5 300 DNAT tcp -- * * 0.0.0.0/0 169.254.169.254 tcp dpt:80 to:10.193.175.44:8773
    0 0 DNAT all -- * * 0.0.0.0/0 10.193.175.20 to:172.16.1.4
...
Chain nova-network-floating-snat (1 references)
 pkts bytes target prot opt in out source destination
    1 60 SNAT all -- * * 172.16.1.4 0.0.0.0/0 to:10.193.175.20
...

Tags: floating ip

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
John Tran (jtran)
Changed in nova:
assignee: nobody → John Tran (jtran)
John Tran (jtran)
Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-3
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.