Change status of floatingip upon association and disassociation

Bug #1471115 reported by Muawia Khan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
networking-plumgrid
Fix Committed
High
Muawia Khan

Bug Description

Currently, in networking-plumgrid when a floatingip is associated to a VM its status is ACTIVE and when it is disassociated from a VM the status is still ACTIVE, which results in discrepancy between the stock OpenStack behaviour and networking-plumgrid, it also results in failure of a tempest scenario test case:

tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops
Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 126, in wrapper
    return f(self, *func_args, **func_kwargs)
  File "/opt/stack/tempest/tempest/scenario/test_network_basic_ops.py", line 400, in test_network_basic_ops
    msg="after disassociate "
  File "/opt/stack/tempest/tempest/scenario/test_network_basic_ops.py", line 203, in check_public_network_connectivity
    self.check_floating_ip_status(floating_ip, floatingip_status)
  File "/opt/stack/tempest/tempest/scenario/manager.py", line 734, in check_floating_ip_status
    st=status))
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'DOWN' != u'ACTIVE': FloatingIP: <"FloatingIP" addr="192.168.223.55" id="eff528e0-0c52-4d2e-857a-d113137a7f69"> is at status: ACTIVE. failed to reach status: DOWN

We need to introduce a way to track the status of floatingip upon association and disassociation.

Muawia Khan (muawia)
Changed in networking-plumgrid:
assignee: nobody → Muawia Khan (muawia)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-plumgrid (master)

Fix proposed to branch: master
Review: https://review.openstack.org/201056

Changed in networking-plumgrid:
status: New → In Progress
Changed in networking-plumgrid:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-plumgrid (master)

Reviewed: https://review.openstack.org/201056
Committed: https://git.openstack.org/cgit/openstack/networking-plumgrid/commit/?id=c96c8d111af606c989a222f6956e6d3b02ab11e4
Submitter: Jenkins
Branch: master

commit c96c8d111af606c989a222f6956e6d3b02ab11e4
Author: Muawia Khan <email address hidden>
Date: Mon Jul 13 14:27:36 2015 +0500

    Updating state of floating IP

    Currently, in the plugin when a floatingip is associated its status is
    ACTIVE and when it is disassociated from a VM the status is still
    ACTIVE, this behavior also caused some tempest failures.
    Fix monitors the state of floating IP on any all updates i.e.
    association/disassociation and handles the status accordingly i.e.
    ACTIVE/DOWN.

    Closes-Bug: #1471115
    Change-Id: I018449aa2c5197989d83f94b5a0f618b4c9035b1

Changed in networking-plumgrid:
status: In Progress → Fix Committed
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.