Bug #47269
Updated by Nathan Cutler over 3 years ago
- From **any number of nautilus backport prs** pr - e.g. https://github.com/ceph/ceph/pull/36944, https://github.com/ceph/ceph/pull/37033, etc. (presumably also reproducible on tip of nautilus branch) https://github.com/ceph/ceph/pull/36944 - Jenkins log file - https://jenkins.ceph.com/job/ceph-pull-requests/58924/consoleText <pre> =================================== FAILURES =================================== _______________ IscsiTestController.test_remove_client_logged_in _______________ self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_logged_in> _validate_image_mock = <MagicMock name='_validate_image' id='140569011517264'> @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image') def test_remove_client_logged_in(self, _validate_image_mock): client_info = { 'alias': '', 'ip_address': [], 'state': {'LOGGED_IN': ['node1']} } # pylint: disable=protected-access IscsiClientMock._instance.clientinfo = client_info target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw19" create_request = copy.deepcopy(iscsi_target_request) create_request['target_iqn'] = target_iqn update_request = copy.deepcopy(create_request) update_request['new_target_iqn'] = target_iqn update_request['clients'].pop(0) response = copy.deepcopy(iscsi_target_response) response['target_iqn'] = target_iqn for client in response['clients']: client['info'] = client_info update_response = { 'detail': "Client 'iqn.1994-05.com.redhat:rh7-client' cannot be deleted until it's " "logged out", 'code': 'client_logged_in', 'component': 'iscsi' } > self._update_iscsi_target(create_request, update_request, 400, update_response, response) tests/test_iscsi.py:505: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_iscsi.py:526: in _update_iscsi_target self.assertJsonBody(update_response) tests/__init__.py:255: in assertJsonBody self._handlewebError(msg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_logged_in> msg = 'expected body:\n{\'detail\': "Client \'iqn.1994-05.com.redhat:rh7-client\' cannot be deleted until it\'s logged out",...rh7-client2\' cannot be deleted until it\'s logged out", u\'code\': u\'client_logged_in\', u\'component\': u\'iscsi\'}' def _handlewebError(self, msg): print('') print(' ERROR: %s' % msg) if not self.interactive: > raise self.failureException(msg) E AssertionError: expected body: E {'detail': "Client 'iqn.1994-05.com.redhat:rh7-client' cannot be deleted until it's logged out", 'code': 'client_logged_in', 'component': 'iscsi'} E E actual body: E {u'detail': u"Client 'iqn.1994-05.com.redhat:rh7-client2' cannot be deleted until it's logged out", u'code': u'client_logged_in', u'component': u'iscsi'} ../../../../build/dashboard/py27-cov/local/lib/python2.7/site-packages/cheroot/test/webtest.py:325: AssertionError ----------------------------- Captured stdout call ----------------------------- ERROR: expected body: {'detail': "Client 'iqn.1994-05.com.redhat:rh7-client' cannot be deleted until it's logged out", 'code': 'client_logged_in', 'component': 'iscsi'} actual body: {u'detail': u"Client 'iqn.1994-05.com.redhat:rh7-client2' cannot be deleted until it's logged out", u'code': u'client_logged_in', u'component': u'iscsi'} </pre>