Bug 1530194

Summary: tempest api test_agent_management.AgentManagementTestJSON fails
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: python-networking-ovnAssignee: Assaf Muller <amuller>
Status: CLOSED DUPLICATE QA Contact: Eran Kuris <ekuris>
Severity: medium Docs Contact:
Priority: low    
Version: 12.0 (Pike)CC: amuller, apevec, dalvarez, lhh, majopela, nyechiel
Target Milestone: ---Keywords: AutomationBlocker, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-10 22:31:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arie Bregman 2018-01-02 09:00:35 UTC
Description of problem:

The following tempest class fails when RHOSP 12 deployed with OVN

neutron.tests.tempest.api.admin.test_agent_management.AgentManagementTestJSON

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tempest/test.py", line 172, in setUpClass
    six.reraise(etype, value, trace)
  File "/usr/lib/python2.7/site-packages/tempest/test.py", line 165, in setUpClass
    cls.resource_setup()
  File "/usr/lib/python2.7/site-packages/neutron/tests/tempest/api/admin/test_agent_management.py", line 30, in resource_setup
    cls.agent = agents[0]  # don't modify this agent
IndexError: list index out of range

Version-Release number of selected component (if applicable): Latest OSP 12


How reproducible: 100%


Steps to Reproduce:
1. Deploy RHOSP 12 with OVN
2. Run tempest tests

Comment 2 Daniel Alvarez Sanchez 2018-01-15 16:48:14 UTC
Targeting it for OSP14.
This error occurs because we don't have implement this API in OVN. A possible solution would be to declare ovn-controllers/ovn-metadata-agents in DB and implement the API so that we are consistent with the reference implementation.
In OSP13, we might just disable these tests in tempest.

Comment 5 Miguel Angel Ajo 2018-06-10 22:31:04 UTC

*** This bug has been marked as a duplicate of bug 1495692 ***