← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1664020] Re: TestSecurityGroupsBasicOps.test_cross_tenant_traffic fails with "IndexError: list index out of range"

 

Reviewed:  https://review.openstack.org/432825
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=8801e360ec7437d5175fe0e337037baa354df542
Submitter: Jenkins
Branch:    master

commit 8801e360ec7437d5175fe0e337037baa354df542
Author: Kevin Benton <kevin@xxxxxxxxxx>
Date:   Sun Feb 12 19:17:55 2017 -0800

    Fix router port IP address references
    
    The _verify_network_details method is fetching all
    router interfaces, including ones that have nothing
    to do with the test details being verified.
    So it can end up catching a router interface that is being
    cleaned up in a concurrent test which has no IP addresses
    anymore.
    
    Additionally, it's currently incompatible with router interfaces
    containing multiple fixed IPs from different subnets, which would
    be problematic if we added more IPv6 tests since routers attached
    to multiple IPv6 subnets on the same network re-use the same
    interface.
    
    This patch alters the logic to iterate over the fixed IPs
    rather than using a fixed index to work with both multiple IP
    cases as well as no IP cases. Additionally, it stops fetching all
    ports and just fetches ports with the device_id we are looking for.
    
    Closes-Bug: #1664020
    Change-Id: I2134ad8df19290fc7161ef22d80fcb34c8d6266a


** Changed in: tempest
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1664020

Title:
  TestSecurityGroupsBasicOps.test_cross_tenant_traffic fails with
  "IndexError: list index out of range"

Status in neutron:
  Invalid
Status in tempest:
  Fix Released

Bug description:
  Seen here:

  http://dal05.objectstorage.softlayer.net/v1/AUTH_3d8e6ecb-f597-448c-
  8ec2-164e9f710dd6/pkvmci/nova/07/432707/2/check/tempest-dsvm-full-
  xenial/f6b6842/console.html

  2017-02-12 03:22:45.727 | tempest.scenario.test_security_groups_basic_ops.TestSecurityGroupsBasicOps.test_cross_tenant_traffic[compute,id-e79f879e-debb-440c-a7e4-efeda05b6848,network]
  2017-02-12 03:22:45.728 | -------------------------------------------------------------------------------------------------------------------------------------------------------------
  2017-02-12 03:22:45.728 | 
  2017-02-12 03:22:45.729 | Captured traceback:
  2017-02-12 03:22:45.729 | ~~~~~~~~~~~~~~~~~~~
  2017-02-12 03:22:45.730 |     Traceback (most recent call last):
  2017-02-12 03:22:45.730 |       File "tempest/scenario/test_security_groups_basic_ops.py", line 186, in setUp
  2017-02-12 03:22:45.731 |         self._verify_network_details(self.primary_tenant)
  2017-02-12 03:22:45.731 |       File "tempest/scenario/test_security_groups_basic_ops.py", line 246, in _verify_network_details
  2017-02-12 03:22:45.732 |         if net_info.is_router_interface_port(i)]
  2017-02-12 03:22:45.732 |     IndexError: list index out of range

  That's the power kvm 3rd party CI but it's also happening in the
  openstack CI:

  http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22if%20net_info.is_router_interface_port(i)%5D%5C%22&from=7d

  12 hits in 7 days, check and gate, all failures.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1664020/+subscriptions


References