Project:
https://jenkins.ovirt.org/job/ovirt-system-tests_basic-suite-master_nightly/
Build:
https://jenkins.ovirt.org/job/ovirt-system-tests_basic-suite-master_night...
Build Number: 359
Build Status: Failure
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #359
[Marcin Sobczyk] basic: Drop outdated code
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED:
basic-suite-master.test-scenarios.098_ovirt_provider_ovn_pytest.test_use_ovn_provider
Error Message:
Error: Fault reason is "Operation Failed". Fault detail is "[Cannot add
Network. The name of the logical network 'network_1' is already used by an
existing logical network in the same data-center. -Please choose a different name.]".
HTTP response code is 409.
Stack Trace:
prefix = <ovirtlago.prefix.OvirtPrefix object at 0x7f8782aba190>
api_v4 = <ovirtsdk4.Connection object at 0x7f8781fee590>
@versioning.require_version(4, 2)
def test_use_ovn_provider(prefix, api_v4):
engine = api_v4.system_service()
engine_ip = prefix.virt_env.engine_vm().ip()
provider_id = network_utils_v4.get_default_ovn_provider_id(engine)
token_id = _get_auth_token(engine_ip)
_validate_db_empty(token_id, engine_ip)
with _disable_auto_sync(api_v4, provider_id):
network1_id = _add_network(
token_id,
engine_ip,
NETWORK_1,
)
subnet1_id = _add_subnet(
token_id,
engine_ip,
SUBNET_1,
network1_id,
)
port1_id = _add_port(
token_id,
engine_ip,
PORT_1,
network1_id,
)
_validate_network(token_id, engine_ip, NETWORK_1, network1_id)
_validate_port(token_id, engine_ip, PORT_1, port1_id, network1_id)
_validate_subnet(token_id, engine_ip, SUBNET_1, subnet1_id, network1_id)
datacenter_id = _get_datacenter_id(api_v4)
_import_network_to_ovirt(api_v4, provider_id, network1_id,
datacenter_id)
../basic-suite-master/test-scenarios/098_ovirt_provider_ovn_pytest.py:474:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../basic-suite-master/test-scenarios/098_ovirt_provider_ovn_pytest.py:364: in
_import_network_to_ovirt
id=datacenter_id
/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py:18492: in import_
return self._internal_action(action, 'import', None, headers, query, wait)
/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py:299: in _internal_action
return future.wait() if wait else future
/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py:55: in wait
return self._code(response)
/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py:296: in callback
self._check_fault(response)
/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py:134: in _check_fault
self._raise_error(response, body.fault)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <ovirtsdk4.http.Response object at 0x7f8781fee450>
detail = <ovirtsdk4.types.Fault object at 0x7f8781fee690>
@staticmethod
def _raise_error(response, detail=None):
"""
Creates and raises an error containing the details of the given HTTP
response and fault.
This method is intended for internal use by other components of the
SDK. Refrain from using it directly, as backwards compatibility isn't
guaranteed.
"""
fault = detail if isinstance(detail, types.Fault) else None
msg = ''
if fault:
if fault.reason:
if msg:
msg += ' '
msg = msg + 'Fault reason is "%s".' % fault.reason
if fault.detail:
if msg:
msg += ' '
msg = msg + 'Fault detail is "%s".' % fault.detail
if response:
if response.code:
if msg:
msg += ' '
msg = msg + 'HTTP response code is %s.' % response.code
if response.message:
if msg:
msg += ' '
msg = msg + 'HTTP response message is "%s".' %
response.message
if isinstance(detail, six.string_types):
if msg:
msg += ' '
msg = msg + detail + '.'
class_ = Error
if response is not None:
if response.code in [401, 403]:
class_ = AuthError
elif response.code == 404:
class_ = NotFoundError
error = class_(msg)
error.code = response.code if response else None
error.fault = fault
raise error
E Error: Fault reason is
"Operation Failed". Fault detail is "[Cannot add Network. The name of the
logical network 'network_1' is already used by an existing logical network in the
same data-center.
E -Please choose a different name.]". HTTP response code is 409.
/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py:118: Error