Fullstack test_securitygroup.TestSecurityGroupsSameNetwork fails often after SG rule delete

Bug #1767829 reported by Slawek Kaplonski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Slawek Kaplonski
Changed in neutron:
assignee: nobody → Slawek Kaplonski (slaweq)
Revision history for this message
Slawek Kaplonski (slaweq) wrote :

It's possible that this issue will be fixed by https://review.openstack.org/#/c/572295/

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/572295
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=11b41d73b48d46b7725bb97d4b85158d8bc2acfb
Submitter: Zuul
Branch: master

commit 11b41d73b48d46b7725bb97d4b85158d8bc2acfb
Author: Slawek Kaplonski <email address hidden>
Date: Tue Jun 5 10:05:58 2018 +0200

    [Fullstack] Wait for SG to be applied by L2 agent

    In fullstack test_securitygroup there were used simple
    net_helpers.assert_ping() and assert_not_ping() functions
    which tries to ping IP address 3 times with some short timeout
    and test fails if result of ping will not be as expected.

    Unfortunately sometimes in fullstack tests it might be not enough
    if test is creating new SG or SG rule or apply SG to port and
    just after that checks connection because L2 agent don't have
    enough time to apply all rules on "host".
    This patch changes it to use block_until_ping() and
    block_until_no_ping() methods from FakeMachine fixture.
    It will also check if ping is possible/not possible but
    will try to check it for 1 minute before fails.

    Similar change is also done for methods which checks TCP
    connectivity using netcat helper class. It now uses
    common_utils.wait_until_true() helper function instead of
    fail immediatelly.

    Change-Id: I9e523d803e3c49d5d090ae5b9d36d43ce7311535
    Closes-Bug: #1774006
    Closes-Bug: #1767829

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/573611

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/573612

tags: added: neutron-proactive-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/pike)

Reviewed: https://review.openstack.org/573612
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=28e59962523b37aef7d9faf0bf626946fef2c944
Submitter: Zuul
Branch: stable/pike

commit 28e59962523b37aef7d9faf0bf626946fef2c944
Author: Slawek Kaplonski <email address hidden>
Date: Tue Jun 5 10:05:58 2018 +0200

    [Fullstack] Wait for SG to be applied by L2 agent

    In fullstack test_securitygroup there were used simple
    net_helpers.assert_ping() and assert_not_ping() functions
    which tries to ping IP address 3 times with some short timeout
    and test fails if result of ping will not be as expected.

    Unfortunately sometimes in fullstack tests it might be not enough
    if test is creating new SG or SG rule or apply SG to port and
    just after that checks connection because L2 agent don't have
    enough time to apply all rules on "host".
    This patch changes it to use block_until_ping() and
    block_until_no_ping() methods from FakeMachine fixture.
    It will also check if ping is possible/not possible but
    will try to check it for 1 minute before fails.

    Similar change is also done for methods which checks TCP
    connectivity using netcat helper class. It now uses
    common_utils.wait_until_true() helper function instead of
    fail immediatelly.

    Change-Id: I9e523d803e3c49d5d090ae5b9d36d43ce7311535
    Closes-Bug: #1774006
    Closes-Bug: #1767829
    (cherry picked from commit 11b41d73b48d46b7725bb97d4b85158d8bc2acfb)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/queens)

Reviewed: https://review.openstack.org/573611
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=2ae4d6cd0044a62d0552c6e07592bf63fdbf7bba
Submitter: Zuul
Branch: stable/queens

commit 2ae4d6cd0044a62d0552c6e07592bf63fdbf7bba
Author: Slawek Kaplonski <email address hidden>
Date: Tue Jun 5 10:05:58 2018 +0200

    [Fullstack] Wait for SG to be applied by L2 agent

    In fullstack test_securitygroup there were used simple
    net_helpers.assert_ping() and assert_not_ping() functions
    which tries to ping IP address 3 times with some short timeout
    and test fails if result of ping will not be as expected.

    Unfortunately sometimes in fullstack tests it might be not enough
    if test is creating new SG or SG rule or apply SG to port and
    just after that checks connection because L2 agent don't have
    enough time to apply all rules on "host".
    This patch changes it to use block_until_ping() and
    block_until_no_ping() methods from FakeMachine fixture.
    It will also check if ping is possible/not possible but
    will try to check it for 1 minute before fails.

    Similar change is also done for methods which checks TCP
    connectivity using netcat helper class. It now uses
    common_utils.wait_until_true() helper function instead of
    fail immediatelly.

    Change-Id: I9e523d803e3c49d5d090ae5b9d36d43ce7311535
    Closes-Bug: #1774006
    Closes-Bug: #1767829
    (cherry picked from commit 11b41d73b48d46b7725bb97d4b85158d8bc2acfb)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/577197

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ocata)

Reviewed: https://review.openstack.org/577197
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=67de855c0d0f6d4834136d3452f5efde955e29dd
Submitter: Zuul
Branch: stable/ocata

commit 67de855c0d0f6d4834136d3452f5efde955e29dd
Author: Slawek Kaplonski <email address hidden>
Date: Tue Jun 5 10:05:58 2018 +0200

    [Fullstack] Wait for SG to be applied by L2 agent

    In fullstack test_securitygroup there were used simple
    net_helpers.assert_ping() and assert_not_ping() functions
    which tries to ping IP address 3 times with some short timeout
    and test fails if result of ping will not be as expected.

    Unfortunately sometimes in fullstack tests it might be not enough
    if test is creating new SG or SG rule or apply SG to port and
    just after that checks connection because L2 agent don't have
    enough time to apply all rules on "host".
    This patch changes it to use block_until_ping() and
    block_until_no_ping() methods from FakeMachine fixture.
    It will also check if ping is possible/not possible but
    will try to check it for 1 minute before fails.

    Similar change is also done for methods which checks TCP
    connectivity using netcat helper class. It now uses
    common_utils.wait_until_true() helper function instead of
    fail immediatelly.

    Change-Id: I9e523d803e3c49d5d090ae5b9d36d43ce7311535
    Closes-Bug: #1774006
    Closes-Bug: #1767829
    (cherry picked from commit 11b41d73b48d46b7725bb97d4b85158d8bc2acfb)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 13.0.0.0b3

This issue was fixed in the openstack/neutron 13.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 12.0.4

This issue was fixed in the openstack/neutron 12.0.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 11.0.6

This issue was fixed in the openstack/neutron 11.0.6 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron ocata-eol

This issue was fixed in the openstack/neutron ocata-eol release.

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.