The unittest IetAdmAutoIOTestCase/IetAdmBlockIOTestCase/IetAdmFileIOTestCase/IetAdmTestCase will fail if /etc/iet/ietd.conf is present. This file belongs to iSCSI Enterprise Target (IET). So if the testing maschine has this installed the unittest will fail.
======================================================================
FAIL: cinder.tests.test_iscsi.IetAdmAutoIOTestCase.test_target_admin
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
Failed to create iscsi target for volume id:volume-blaa: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf chown 1001 /etc/iet/ietd.conf
Exit code: 1
Stdout: ''
Stderr: 'sudo: cinder-rootwrap: command not found\n'
}}}
pythonlogging:''-1: {{{
found extension EntryPoint.parse('qpid = oslo.messaging._drivers.impl_qpid:QpidDriver')
found extension EntryPoint.parse('amqp = oslo.messaging._drivers.protocols.amqp.driver:ProtonDriver')
found extension EntryPoint.parse('kombu = oslo.messaging._drivers.impl_rabbit:RabbitDriver')
found extension EntryPoint.parse('rabbit = oslo.messaging._drivers.impl_rabbit:RabbitDriver')
found extension EntryPoint.parse('fake = oslo.messaging._drivers.impl_fake:FakeDriver')
found extension EntryPoint.parse('zmq = oslo.messaging._drivers.impl_zmq:ZmqDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.no_op_notifier = oslo.messaging.notify._impl_noop:NoOpDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.log_notifier = oslo.messaging.notify._impl_log:LogDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.test_notifier = oslo.messaging.notify._impl_test:TestDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.rpc_notifier2 = oslo.messaging.notify._impl_messaging:MessagingV2Driver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.rpc_notifier = oslo.messaging.notify._impl_messaging:MessagingDriver')
found extension EntryPoint.parse('log = oslo.messaging.notify._impl_log:LogDriver')
found extension EntryPoint.parse('messagingv2 = oslo.messaging.notify._impl_messaging:MessagingV2Driver')
found extension EntryPoint.parse('noop = oslo.messaging.notify._impl_noop:NoOpDriver')
found extension EntryPoint.parse('routing = oslo.messaging.notify._impl_routing:RoutingDriver')
found extension EntryPoint.parse('test = oslo.messaging.notify._impl_test:TestDriver')
found extension EntryPoint.parse('messaging = oslo.messaging.notify._impl_messaging:MessagingDriver')
}}}
Traceback (most recent call last):
File "/home/cloudci/workspace/cinder-gerrit-unittests/cinder/tests/test_iscsi.py", line 103, in test_target_admin
self.run_commands()
File "/home/cloudci/workspace/cinder-gerrit-unittests/cinder/tests/test_iscsi.py", line 96, in run_commands
self.lun, self.path)
File "/home/cloudci/workspace/cinder-gerrit-unittests/cinder/brick/iscsi/iscsi.py", line 394, in create_iscsi_target
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-blaa.
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
Failed to create iscsi target for volume id:volume-blaa: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf chown 1001 /etc/iet/ietd.conf
Exit code: 1
Stdout: ''
Stderr: 'sudo: cinder-rootwrap: command not found\n'
}}}
pythonlogging:''-1: {{{
found extension EntryPoint.parse('qpid = oslo.messaging._drivers.impl_qpid:QpidDriver')
found extension EntryPoint.parse('amqp = oslo.messaging._drivers.protocols.amqp.driver:ProtonDriver')
found extension EntryPoint.parse('kombu = oslo.messaging._drivers.impl_rabbit:RabbitDriver')
found extension EntryPoint.parse('rabbit = oslo.messaging._drivers.impl_rabbit:RabbitDriver')
found extension EntryPoint.parse('fake = oslo.messaging._drivers.impl_fake:FakeDriver')
found extension EntryPoint.parse('zmq = oslo.messaging._drivers.impl_zmq:ZmqDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.no_op_notifier = oslo.messaging.notify._impl_noop:NoOpDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.log_notifier = oslo.messaging.notify._impl_log:LogDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.test_notifier = oslo.messaging.notify._impl_test:TestDriver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.rpc_notifier2 = oslo.messaging.notify._impl_messaging:MessagingV2Driver')
found extension EntryPoint.parse('cinder.openstack.common.notifier.rpc_notifier = oslo.messaging.notify._impl_messaging:MessagingDriver')
found extension EntryPoint.parse('log = oslo.messaging.notify._impl_log:LogDriver')
found extension EntryPoint.parse('messagingv2 = oslo.messaging.notify._impl_messaging:MessagingV2Driver')
found extension EntryPoint.parse('noop = oslo.messaging.notify._impl_noop:NoOpDriver')
found extension EntryPoint.parse('routing = oslo.messaging.notify._impl_routing:RoutingDriver')
found extension EntryPoint.parse('test = oslo.messaging.notify._impl_test:TestDriver')
found extension EntryPoint.parse('messaging = oslo.messaging.notify._impl_messaging:MessagingDriver')
}}}
Traceback (most recent call last):
File "/home/cloudci/workspace/cinder-gerrit-unittests/cinder/tests/test_iscsi.py", line 103, in test_target_admin
self.run_commands()
File "/home/cloudci/workspace/cinder-gerrit-unittests/cinder/tests/test_iscsi.py", line 96, in run_commands
self.lun, self.path)
File "/home/cloudci/workspace/cinder-gerrit-unittests/cinder/brick/iscsi/iscsi.py", line 394, in create_iscsi_target
raise exception.ISCSITargetCreateFailed(volume_id=vol_id)
ISCSITargetCreateFailed: Failed to create iscsi target for volume volume-blaa.
Fix proposed to branch: master /review. openstack. org/143229
Review: https:/