[system tests] Test Check l3-agent rescheduling after l3-agent dies failed with index error

Bug #1454296 reported by Tatyanka
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Fuel QA Team

Bug Description

http://jenkins-product.srt.mirantis.net:8080/job/6.1.system_test.ubuntu.ha_neutron_destructive/122/testReport/%28root%29/neutron_l3_migration/neutron_l3_migration/?

Error Message

list index out of range

Stacktrace

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/6.1.system_test.ubuntu.ha_neutron_destructive/fuelweb_test/helpers/decorators.py", line 66, in wrapper
    return func(*args, **kwargs)
  File "/home/jenkins/workspace/6.1.system_test.ubuntu.ha_neutron_destructive/fuelweb_test/tests/tests_strength/test_neutron.py", line 157, in neutron_l3_migration
    devops_node = self.get_node_with_dhcp(self, os_conn, net_id)
  File "/home/jenkins/workspace/6.1.system_test.ubuntu.ha_neutron_destructive/fuelweb_test/tests/tests_strength/test_neutron.py", line 35, in get_node_with_dhcp
    node = os_conn.get_node_with_dhcp_for_network(net_id)[0]
IndexError: list index out of range

we get index error on attempt to find host with dhcp agent running(run command
neutron dhcp-agent-list-hosting-net (id of net04 here)
 I've try to run those check manually and get empty list too,
after 15 minutes left the command You have new mail in /var/mail/root
root@node-3:~# neutron dhcp-agent-list-hosting-net f9d23ef9-e1b5-4a82-ae94-49a83caf3fe8
+--------------------------------------+--------------------------+----------------+-------+
| id | host | admin_state_up | alive |
+--------------------------------------+--------------------------+----------------+-------+
| 89a34b04-3056-476d-9d56-aca7d97606cb | node-1.test.domain.local | True | :-) |
| 8f511400-dd64-4373-9441-bf61637f02b2 | node-3.test.domain.local | True | :-) |
+--------------------------------------+--------------------------+----------------+-------+

Also may be we can get any host with dhcp agent now, because for now p_dhcp resource is cloned

Changed in fuel:
status: New → Confirmed
Artem Roma (aroma-x)
Changed in fuel:
assignee: MOS QA Team (mos-qa) → Artem Roma (aroma-x)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/183800
Committed: https://git.openstack.org/cgit/stackforge/fuel-qa/commit/?id=3431eb870ab4d5d83d8749e9a10af26b7602ca37
Submitter: Jenkins
Branch: master

commit 3431eb870ab4d5d83d8749e9a10af26b7602ca37
Author: Artem Roma <email address hidden>
Date: Sat May 16 17:19:37 2015 +0300

    Remove get_node_with_dhcp method

    Now for getting devops node in certain tests list of nodes of deployed
    env is used. This eliminates problem described in the bug as neutron
    agent is not in the use now.

    Change-Id: I68701c76c9961d61585234e34f8a6716aad1c826
    Closes-Bug: #1454296

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Artem Panchenko (apanchenko-8) wrote :

Reopening bug because commit with fix 3431eb870ab4d5d83d8749e9a10af26b7602ca37 was reverted: https://review.openstack.org/#/c/221988/

Changed in fuel:
status: Fix Released → Confirmed
assignee: Artem Roma (aroma-x) → Fuel QA Team (fuel-qa)
milestone: 6.1 → 8.0
Revision history for this message
Dmitry Tyzhnenko (dtyzhnenko) wrote :
Changed in fuel:
status: Confirmed → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-qa
Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: non-release
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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