[oVirt Jenkins] ovirt-system-tests_basic-suite-master_nightly -
Build # 905 - Failure!
by jenkins@jenkins.phx.ovirt.org
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: 905
Build Status: Failure
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #905
[Andrej Cernek] pylint: Disable error checks on individual lines
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED: basic-suite-master.test-scenarios.test_005_network_by_label.test_assign_hosts_network_label
Error Message:
ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot add Label. Operation can be performed only when Host status is Maintenance, Up, NonOperational.]". HTTP response code is 409.
Stack Trace:
engine_api = <ovirtsdk4.Connection object at 0x7f178425ac88>
def test_assign_hosts_network_label(engine_api):
"""
Assigns NETWORK_LABEL to first network interface of every host in cluster
"""
engine = engine_api.system_service()
def _assign_host_network_label(host):
host_service = engine.hosts_service().host_service(id=host.id)
nics_service = host_service.nics_service()
nics = sorted(nics_service.list(),
key=lambda n: n.name)
assert len(nics) >= 1
nic = nics[0]
nic_service = nics_service.nic_service(id=nic.id)
labels_service = nic_service.network_labels_service()
return labels_service.add(
NetworkLabel(
id=NETWORK_LABEL,
host_nic=nic
)
)
hosts = test_utils.hosts_in_cluster_v4(engine, CLUSTER_NAME)
vec = utils.func_vector(_assign_host_network_label, [(h,) for h in hosts])
vt = utils.VectorThread(vec)
vt.start_all()
> assert all(vt.join_all())
../basic-suite-master/test-scenarios/test_005_network_by_label.py:81:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ost_utils/ost_utils/utils.py:102: in join_all
raise exc_info[1].with_traceback(exc_info[2])
../ost_utils/ost_utils/utils.py:63: in _ret_via_queue
queue.put({'return': func()})
../basic-suite-master/test-scenarios/test_005_network_by_label.py:73: in _assign_host_network_label
host_nic=nic
/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py:17454: in add
return self._internal_add(label, headers, query, wait)
/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py:232: in _internal_add
return future.wait() if wait else future
/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py:55: in wait
return self._code(response)
/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py:229: in callback
self._check_fault(response)
/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py:132: in _check_fault
self._raise_error(response, body)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
response = <ovirtsdk4.http.Response object at 0x7f1783157b00>
detail = <ovirtsdk4.types.Fault object at 0x7f1783157dd8>
@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 ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot add Label. Operation can be performed only when Host status is Maintenance, Up, NonOperational.]". HTTP response code is 409.
/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py:118: Error