Tempest network agent test fails when there are no agents configured

Bug #1780335 reported by Hemachandra Reddy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Hemachandra Reddy

Bug Description

All the tests in tempest/api/network/admin/test_agent_management.py fail with ""IndexError: 'list index out of range'" when there are no agents available. In an environment where a SDN software like Tungsten Fabric (OpenContrail) is used, which does not have any agents, the below tests fail.

tempest.api.network.admin.test_agent_management.AgentManagementTestJSON.test_list_agent
tempest.api.network.admin.test_agent_management.AgentManagementTestJSON.test_list_agents_non_admin
tempest.api.network.admin.test_agent_management.AgentManagementTestJSON.test_show_agent
tempest.api.network.admin.test_agent_management.AgentManagementTestJSON.test_update_agent_description
tempest.api.network.admin.test_agent_management.AgentManagementTestJSON.test_update_agent_status

Modify skip_checks() or resource_setup() to see if there are any agents available. resource_setup() function assumes there is at least an agent available all the time.

description: updated
Changed in tempest:
assignee: nobody → Hemachandra Reddy (hr858f)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

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

Changed in tempest:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by Hemachandra Reddy (<email address hidden>) on branch: master
Review: https://review.openstack.org/580762
Reason: Abandoning the change. Juniper fixed the issue: https://bugs.launchpad.net/juniperopenstack/+bug/1783581.

Revision history for this message
Hemachandra Reddy (hr858f) wrote :

Juniper fixed the issue: https://bugs.launchpad.net/juniperopenstack/+bug/1783581. We do not need this change.

Changed in tempest:
status: In Progress → Invalid
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.