Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuple index is out of range for PoolTestJSON.test_create_shared_pools #810

Open
ssorenso opened this issue Sep 25, 2017 · 0 comments
Open

Comments

@ssorenso
Copy link

  • Title: Tuple index is out of range for PoolTestJSON.test_create_shared_pools
  • Attachments:
  • Details:
Suggested Issue Type

Bug

Something unpredictable occurred in standard test code that resulted in something that the test itself did not expect. This means that something deviated from design.

Traceback
cls = <class 'f5lbaasdriver.test.tempest.tests.api.test_pools.PoolTestJSON'>

    @classmethod
    def resource_cleanup(cls):
>       super(PoolTestJSON, cls).resource_cleanup()

cls        = <class 'f5lbaasdriver.test.tempest.tests.api.test_pools.PoolTestJSON'>

api/test_pools.py:63:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'f5lbaasdriver.test.tempest.tests.api.test_pools.PoolTestJSON'>

    @classmethod
    def resource_cleanup(cls):
        """Cleanup the remaining objects from the test run."""
        cls._teardown_exceptions = []
        for lb_id in cls._lbs_to_delete:
            try:
                lb = cls.load_balancers_client.get_load_balancer_status_tree(
                    lb_id).get('loadbalancer')
                lb_id = lb.get('id')
            except exceptions.NotFound:
                continue
            try:
                cls._teardown_lb(lb, lb_id)
            except Exception as ex:
                try:
                    # If the previous try failed, let's do it again, but only
                    # if the provisioning status is not PENDING_UPDATE. That
                    # would indicate the service is wedged somehow. This can
                    # help if BadStatusLine or network blip occurred during
                    # teardown.
                    lb = cls.load_balancers_client.\
                        get_load_balancer_status_tree(
                            lb_id).get('loadbalancer')
                    if lb.get('provisioning_status') != 'PENDING_UPDATE':
                        cls._teardown_lb(lb, lb_id)
                except exceptions.NotFound:
                    continue

        if cls._teardown_exceptions:
            print("Teardown exceptions occurred, most likely due to timeout "
                  "exceptions when checking for loadbalancer status. This "
                  "will only raise the first error seen. The others will be "
                  "printed out here.")
            for ex in cls._teardown_exceptions:
                print(ex.message)
>           raise ex[0]
E           IndexError: tuple index out of range

cls        = <class 'f5lbaasdriver.test.tempest.tests.api.test_pools.PoolTestJSON'>
ex         = TimeoutException()
lb         = {'id': '93b2d37c-d3e3-498d-93e5-499901806487', 'listeners': [{'id': '766d8247-f7d2-4cc0-b57f-11546ce30a57', 'l7policies': [], 'name': '', 'operating_status': 'OFFLINE', ...}], 'name': '', 'operating_status': 'DEGRADED', ...}
lb_id      = '93b2d37c-d3e3-498d-93e5-499901806487'

/usr/local/lib/python2.7/dist-packages/neutron_lbaas/tests/tempest/v2/api/base.py:172: IndexError
Impacted Tests
  • openstack_driver_mitaka_ha-11.6.1-overcloud.20.consoleText
    • Failure Type: errors
    • PoolTestJSON.test_create_shared_pools
    • md5sum:38f69f9e992fae530fcc723a9a2cb737

Agent Version

  • mitaka - 3c4d7ae5a4b170c0bb5c53fe3c9bfa50210eff96

Operating System

Nightly

OpenStack Release

Mitaka - EOL

Bug Severity

Medium - feature may be impacted...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants