yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #65475
[Bug 1699199] Re: test_agent_management resource_setup assumes multiple agents
Reviewed: https://review.openstack.org/476491
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=4548ffd6b37247a70b6447177db63e4fbf5c411c
Submitter: Jenkins
Branch: master
commit 4548ffd6b37247a70b6447177db63e4fbf5c411c
Author: Jakub Libosvar <libosvar@xxxxxxxxxx>
Date: Thu Jun 22 12:15:12 2017 +0000
tempest-api: Skip test if deployment has not enough agents
Neutron deployments can have various number of agents. For agentless
deployments there is no point in running agent API tests so that should
be reflected in tempest.conf available extension.
One of the tests require at least two agents - this patch skips such
test if environment doesn't contain enough agents for running the test.
Change-Id: I0f006258aa89c1f52fac73669352d725b109696c
Closes-bug: #1699199
** Changed in: neutron
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/1699199
Title:
test_agent_management resource_setup assumes multiple agents
Status in neutron:
Fix Released
Bug description:
https://github.com/openstack/neutron/blob/master/neutron/tests/tempest/api/admin/test_agent_management.py#L26-L31
resource_setup assumes that admin_client.list_agents will return at least 2 different agents, agents[0] and agents[1]. If there is only 1 agent, this setup will fail when trying to access agents[1]. A trace can be found below.
ft1.1: setUpClass (neutron.tests.tempest.api.admin.test_agent_management.AgentManagementTestJSON)_StringException: Traceback (most recent call last):
File "tempest/test.py", line 244, in setUpClass
six.reraise(etype, value, trace)
File "tempest/test.py", line 237, in setUpClass
cls.resource_setup()
File "/opt/stack/neutron/neutron/tests/tempest/api/admin/test_agent_management.py", line 31, in resource_setup
cls.dyn_agent = agents[1]
IndexError: list index out of range
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1699199/+subscriptions
References