[oVirt Jenkins] ovirt-system-tests_basic-suite-master_nightly -
Build # 1014 - 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: 1014
Build Status: Failure
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #1014
[Andrej Cernek] lago: Clean up deployment scripts
-----------------
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:
system_service = <ovirtsdk4.services.SystemService object at 0x7fa731103a20>
hosts_service = <ovirtsdk4.services.HostsService object at 0x7fa7311039b0>
ost_cluster_name = 'test-cluster'
def test_assign_hosts_network_label(
system_service, hosts_service, ost_cluster_name):
"""
Assigns NETWORK_LABEL to first network interface of every host in cluster
"""
def _assign_host_network_label(host):
host_service = 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(system_service, ost_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:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ost_utils/ost_utils/utils.py:73: in join_all
raise exc_info[1].with_traceback(exc_info[2])
ost_utils/ost_utils/utils.py:34: in _ret_via_queue
queue.put({'return': func()})
basic-suite-master/test-scenarios/test_005_network_by_label.py:61: in _assign_host_network_label
return labels_service.add(NetworkLabel(id=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 0x7fa731103cf8>
detail = <ovirtsdk4.types.Fault object at 0x7fa7310f16d8>
@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