Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __________________________________________________________ IscsiTestController.test_add_bad_client ___________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_bad_client>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039931304928'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_add_bad_client(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw4"
- 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'].append(
- {
- "luns": [{"image": "lun1", "pool": "rbd"}],
- "client_iqn": "iqn.1994-05.com.redhat:rh7-client4",
- "auth": {
- "password": "myiscsipassword7myiscsipassword7myiscsipasswo",
- "user": "myiscsiusername7",
- "mutual_password": "myiscsipassword8",
- "mutual_user": "myiscsiusername8"}
- })
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- self._task_post('/api/iscsi/target', create_request, version=DEFAULT_VERSION)
- > self.assertStatus(201)
- tests/test_iscsi.py:249:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_bad_client>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- ------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
- INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Listening for SIGTERM.
- INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Listening for SIGHUP.
- INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Listening for SIGUSR1.
- INFO:cherrypy.test.helper:Python version used to run this test script: 3.6.8
- INFO:cherrypy.test.helper:CherryPy version: 13.1.0
- INFO:cherrypy.test.helper:HTTP server version: HTTP/1.1
- INFO:cherrypy.test.helper:PID: 72
- INFO:controller:Initializing controller: Iscsi -> /api/iscsi
- INFO:controller:Initializing controller: IscsiTarget -> /api/iscsi/target
- DEBUG:controller:Mapped [/api/iscsi/discoveryauth] to Iscsi:get_discoveryauth restricted to GET
- DEBUG:controller:Mapped [/api/iscsi/discoveryauth] to Iscsi:set_discoveryauth restricted to PUT
- DEBUG:controller:Mapped [/api/iscsi/target] to IscsiTarget:create restricted to POST
- DEBUG:controller:Mapped [/api/iscsi/target] to IscsiTarget:list restricted to GET
- DEBUG:controller:Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:delete restricted to DELETE
- DEBUG:controller:Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:get restricted to GET
- DEBUG:controller:Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:set restricted to PUT
- INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Bus STARTING
- INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Serving on http://127.0.0.1:54583
- INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Bus STARTED
- --------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
- _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Listening for SIGTERM.
- _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Listening for SIGHUP.
- _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Listening for SIGUSR1.
- helper.py 201 INFO Python version used to run this test script: 3.6.8
- helper.py 202 INFO CherryPy version: 13.1.0
- helper.py 207 INFO HTTP server version: HTTP/1.1
- helper.py 208 INFO PID: 72
- __init__.py 606 INFO Initializing controller: Iscsi -> /api/iscsi
- __init__.py 606 INFO Initializing controller: IscsiTarget -> /api/iscsi/target
- __init__.py 337 DEBUG Mapped [/api/iscsi/discoveryauth] to Iscsi:get_discoveryauth restricted to GET
- __init__.py 337 DEBUG Mapped [/api/iscsi/discoveryauth] to Iscsi:set_discoveryauth restricted to PUT
- __init__.py 337 DEBUG Mapped [/api/iscsi/target] to IscsiTarget:create restricted to POST
- __init__.py 337 DEBUG Mapped [/api/iscsi/target] to IscsiTarget:list restricted to GET
- __init__.py 337 DEBUG Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:delete restricted to DELETE
- __init__.py 337 DEBUG Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:get restricted to GET
- __init__.py 337 DEBUG Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:set restricted to PUT
- _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Bus STARTING
- _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Serving on http://127.0.0.1:54583
- _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Bus STARTED
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ____________________________________________________________ IscsiTestController.test_add_client _____________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039924145288'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_add_client(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw4"
- 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'].append(
- {
- "luns": [{"image": "lun1", "pool": "rbd"}],
- "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
- "auth": {
- "password": "myiscsipassword5",
- "user": "myiscsiusername5",
- "mutual_password": "myiscsipassword6",
- "mutual_user": "myiscsiusername6"}
- })
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['clients'].append(
- {
- "luns": [{"image": "lun1", "pool": "rbd"}],
- "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
- "auth": {
- "password": "myiscsipassword5",
- "user": "myiscsiusername5",
- "mutual_password": "myiscsipassword6",
- "mutual_user": "myiscsiusername6"},
- "info": {
- "alias": "",
- "ip_address": [],
- "state": {}
- }
- })
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:226:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ________________________________________________________ IscsiTestController.test_add_client_to_group ________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_group>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039898340432'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_add_client_to_group(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw13"
- 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'].append(
- {
- "luns": [],
- "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
- "auth": {
- "password": None,
- "user": None,
- "mutual_password": None,
- "mutual_user": None}
- })
- update_request['groups'][0]['members'].append('iqn.1994-05.com.redhat:rh7-client3')
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['clients'].append(
- {
- "luns": [],
- "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
- "auth": {
- "password": None,
- "user": None,
- "mutual_password": None,
- "mutual_user": None},
- "info": {
- "alias": "",
- "ip_address": [],
- "state": {}
- }
- })
- response['groups'][0]['members'].append('iqn.1994-05.com.redhat:rh7-client3')
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:401:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_group>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ___________________________________________________ IscsiTestController.test_add_client_to_multiple_groups ___________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_multiple_groups>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039931503280'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_add_client_to_multiple_groups(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw16"
- create_request = copy.deepcopy(iscsi_target_request)
- create_request['target_iqn'] = target_iqn
- create_request['groups'].append(copy.deepcopy(create_request['groups'][0]))
- create_request['groups'][1]['group_id'] = 'mygroup2'
- self._task_post('/api/iscsi/target', create_request, version=DEFAULT_VERSION)
- > self.assertStatus(400)
- tests/test_iscsi.py:437:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_multiple_groups>
- msg = 'Status 500 Internal Server Error does not match 400'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 400
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 400
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- _____________________________________________________________ IscsiTestController.test_add_disk ______________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_disk>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039897360424'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_add_disk(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw7"
- 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['disks'].append(
- {
- "image": "lun3",
- "pool": "rbd",
- "controls": {},
- "backstore": "user:rbd"
- })
- update_request['clients'][0]['luns'].append({"image": "lun3", "pool": "rbd"})
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['disks'].append(
- {
- "image": "lun3",
- "pool": "rbd",
- "controls": {},
- "backstore": "user:rbd",
- "wwn": "64af6678-9694-4367-bacc-f8eb0baa2",
- "lun": 2
- })
- response['clients'][0]['luns'].append({"image": "lun3", "pool": "rbd"})
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:310:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_disk>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py .F
- ________________________________________________________ IscsiTestController.test_change_client_auth _________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_auth>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039897426744'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_change_client_auth(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw18"
- 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'][0]['auth']['password'] = 'myiscsipasswordX'
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['clients'][0]['auth']['password'] = 'myiscsipasswordX'
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:479:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_auth>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ______________________________________________________ IscsiTestController.test_change_client_password _______________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_password>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039897555520'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_change_client_password(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw5"
- 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'][0]['auth']['password'] = 'MyNewPassword'
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['clients'][0]['auth']['password'] = 'MyNewPassword'
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:267:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_password>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- _______________________________________________________ IscsiTestController.test_change_disk_controls ________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_controls>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039898859728'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_change_disk_controls(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw9"
- 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['disks'][0]['controls'] = {"qfull_timeout": 15}
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['disks'][0]['controls'] = {"qfull_timeout": 15}
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:338:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_controls>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- _________________________________________________________ IscsiTestController.test_change_disk_image _________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_image>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039896905936'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_change_disk_image(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw8"
- 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['disks'][0]['image'] = 'lun0'
- update_request['clients'][0]['luns'][0]['image'] = 'lun0'
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['disks'][0]['image'] = 'lun0'
- response['clients'][0]['luns'][0]['image'] = 'lun0'
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:325:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_image>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ______________________________________________________________ IscsiTestController.test_create _______________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_create>, _validate_image_mock = <MagicMock name='_validate_image' id='140039924529528'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_create(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw2"
- request = copy.deepcopy(iscsi_target_request)
- request['target_iqn'] = target_iqn
- self._task_post('/api/iscsi/target', request, version=DEFAULT_VERSION)
- > self.assertStatus(201)
- tests/test_iscsi.py:172:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_create>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ______________________________________________________________ IscsiTestController.test_delete _______________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_delete>, _validate_image_mock = <MagicMock name='_validate_image' id='140039897427248'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_delete(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw3"
- request = copy.deepcopy(iscsi_target_request)
- request['target_iqn'] = target_iqn
- self._task_post('/api/iscsi/target', request, version=DEFAULT_VERSION)
- > self.assertStatus(201)
- tests/test_iscsi.py:185:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_delete>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py ..F
- _______________________________________________________________ IscsiTestController.test_list ________________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_list>, _validate_image_mock = <MagicMock name='_validate_image' id='140039897427192'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_list(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw1"
- request = copy.deepcopy(iscsi_target_request)
- request['target_iqn'] = target_iqn
- self._task_post('/api/iscsi/target', request, version=DEFAULT_VERSION)
- > self.assertStatus(201)
- tests/test_iscsi.py:159:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_list>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py .F
- ___________________________________________________________ IscsiTestController.test_remove_client ___________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039898825280'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_remove_client(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw20"
- 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
- response['clients'].pop(0)
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:519:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- _____________________________________________________ IscsiTestController.test_remove_client_from_group ______________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_from_group>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039924383872'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_remove_client_from_group(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw14"
- 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['groups'][0]['members'].remove('iqn.1994-05.com.redhat:rh7-client2')
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['groups'][0]['members'].remove('iqn.1994-05.com.redhat:rh7-client2')
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:414:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_from_group>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ______________________________________________________ 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='140039896876368'>
- @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:506:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_logged_in>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- _________________________________________________________ IscsiTestController.test_remove_client_lun _________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_lun>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039897055128'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_remove_client_lun(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw17"
- create_request = copy.deepcopy(iscsi_target_request)
- create_request['target_iqn'] = target_iqn
- create_request['clients'][0]['luns'] = [
- {"image": "lun1", "pool": "rbd"},
- {"image": "lun2", "pool": "rbd"},
- {"image": "lun3", "pool": "rbd"}
- ]
- update_request = copy.deepcopy(create_request)
- update_request['new_target_iqn'] = target_iqn
- update_request['clients'][0]['luns'] = [
- {"image": "lun1", "pool": "rbd"},
- {"image": "lun3", "pool": "rbd"}
- ]
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['clients'][0]['luns'] = [
- {"image": "lun1", "pool": "rbd"},
- {"image": "lun3", "pool": "rbd"}
- ]
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:466:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_lun>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ___________________________________________________________ IscsiTestController.test_remove_groups ___________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_groups>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039924145344'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_remove_groups(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw15"
- 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['groups'] = []
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['groups'] = []
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:427:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_groups>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ___________________________________________________________ IscsiTestController.test_rename_client ___________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_client>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039898339984'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_rename_client(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw6"
- 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'][0]['client_iqn'] = 'iqn.1994-05.com.redhat:rh7-client0'
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['clients'][0]['client_iqn'] = 'iqn.1994-05.com.redhat:rh7-client0'
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:280:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_client>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ___________________________________________________________ IscsiTestController.test_rename_group ____________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_group>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039897059280'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_rename_group(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw12"
- 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['groups'][0]['group_id'] = 'mygroup0'
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = target_iqn
- response['groups'][0]['group_id'] = 'mygroup0'
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:363:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_group>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py F
- ___________________________________________________________ IscsiTestController.test_rename_target ___________________________________________________________
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_target>
- _validate_image_mock = <MagicMock name='_validate_image' id='140039897360032'>
- @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
- def test_rename_target(self, _validate_image_mock):
- target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw10"
- new_target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw11"
- create_request = copy.deepcopy(iscsi_target_request)
- create_request['target_iqn'] = target_iqn
- update_request = copy.deepcopy(create_request)
- update_request['new_target_iqn'] = new_target_iqn
- response = copy.deepcopy(iscsi_target_response)
- response['target_iqn'] = new_target_iqn
- > self._update_iscsi_target(create_request, update_request, 200, None, response)
- tests/test_iscsi.py:350:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_iscsi.py:524: in _update_iscsi_target
- self.assertStatus(201)
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
- self._handlewebError(msg)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_target>, msg = 'Status 500 Internal Server Error does not match 201'
- def _handlewebError(self, msg): # noqa: C901 # FIXME
- print('')
- print(' ERROR: %s' % msg)
- if not self.interactive:
- > raise self.failureException(msg)
- E AssertionError: Status 500 Internal Server Error does not match 201
- .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
- -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
- ERROR: Status 500 Internal Server Error does not match 201
- -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
- ERROR:exception:Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- INFO:tests:task finished immediately
- --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
- exception.py 56 ERROR Internal Server Error
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
- Traceback (most recent call last):
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
- self._do_respond(path_info)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
- response.body = self.handler()
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
- return self.newhandler(innerfunc, *args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
- raise error
- File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
- return handler(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
- ret = func(*args, **kwargs)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
- return func(*vpath, **params)
- File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
- exception_handler=self.exception_handler)
- File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
- cls.logger.debug("created %s", task) # type: ignore
- AttributeError: type object 'TaskManager' has no attribute 'logger'
- _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
- __init__.py 180 INFO task finished immediately
- tests/test_iscsi.py . [100%]
- ----------- coverage: platform linux, python 3.6.8-final-0 -----------
- Name Stmts Miss Cover
- ---------------------------------------------------------------------
- awsauth.py 80 62 22%
- cherrypy_backports.py 84 62 26%
- controllers/__init__.py 585 177 70%
- controllers/cephfs.py 225 168 25%
- controllers/iscsi.py 678 554 18%
- controllers/nfsganesha.py 107 54 50%
- controllers/rbd.py 266 165 38%
- controllers/rbd_mirroring.py 308 224 27%
- controllers/rgw.py 260 177 32%
- exceptions.py 60 16 73%
- grafana.py 78 61 22%
- module.py 246 179 27%
- plugins/__init__.py 38 4 89%
- plugins/debug.py 36 11 69%
- plugins/feature_toggles.py 79 34 57%
- plugins/interfaces.py 36 5 86%
- plugins/pluggy.py 41 4 90%
- plugins/plugin.py 22 3 86%
- plugins/ttl_cache.py 38 21 45%
- rest_client.py 266 212 20%
- security.py 33 0 100%
- services/__init__.py 1 0 100%
- services/access_control.py 561 448 20%
- services/auth.py 132 90 32%
- services/ceph_service.py 198 154 22%
- services/cephfs.py 128 103 20%
- services/cephx.py 19 11 42%
- services/exception.py 63 21 67%
- services/ganesha.py 655 548 16%
- services/iscsi_cli.py 33 11 67%
- services/iscsi_client.py 145 70 52%
- services/iscsi_config.py 66 14 79%
- services/orchestrator.py 134 47 65%
- services/rbd.py 240 203 15%
- services/rgw_client.py 291 222 24%
- services/sso.py 129 95 26%
- services/tcmu_service.py 62 53 15%
- settings.py 114 25 78%
- tools.py 515 354 31%
- /ceph/src/pybind/mgr/mgr_util.py 384 287 25%
- /ceph/src/pybind/mgr/orchestrator/__init__.py 6 0 100%
- /ceph/src/pybind/mgr/orchestrator/_interface.py 748 482 36%
- /ceph/src/pybind/mgr/orchestrator/module.py 740 635 14%
- /ceph/src/pybind/mgr/tests/__init__.py 118 85 28%
- ---------------------------------------------------------------------
- TOTAL 9048 6151 32%
- ====================================================================== warnings summary ======================================================================
- .tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:403
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:403: DeprecationWarning: invalid escape sequence \.
- """
- .tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:418
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:418: DeprecationWarning: invalid escape sequence \.
- """
- .tox/py3/lib/python3.6/site-packages/prettytable.py:74
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:74: DeprecationWarning: invalid escape sequence \[
- _re = re.compile("\033\[[0-9;]*m")
- .tox/py3/lib/python3.6/site-packages/prettytable.py:800
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:800: DeprecationWarning: invalid escape sequence \{
- self.vertical_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
- .tox/py3/lib/python3.6/site-packages/prettytable.py:801
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:801: DeprecationWarning: invalid escape sequence \{
- self.horizontal_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
- .tox/py3/lib/python3.6/site-packages/prettytable.py:802
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:802: DeprecationWarning: invalid escape sequence \{
- self.junction_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
- tests/test_iscsi.py::IscsiTestController::test_add_bad_client
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:410: DeprecationWarning: invalid escape sequence \.
- self.domain_match = '[^\.\/]+?\.[^\.\/]+'
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:521: DeprecationWarning: invalid escape sequence \d
- """
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:1063: DeprecationWarning: invalid escape sequence \d
- """
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:1180: DeprecationWarning: invalid escape sequence \/
- requirements_regexp = '[^\/]+(?<!\\\)'
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/util.py:97: DeprecationWarning: invalid escape sequence \.
- match = re.match('^(.+?)\.(%s)$' % mapper.domain_match, host)
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/util.py:515: DeprecationWarning: invalid escape sequence \.
- re.match('^[^_]{1,1}.*\.py$', fname):
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:48: DeprecationWarning: invalid escape sequence \d
- """
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:330: DeprecationWarning: invalid escape sequence \.
- regparts.append('(?:\.%s)??' % regpart)
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:396: DeprecationWarning: invalid escape sequence \.
- partreg = '(?:\.%s)??' % partreg
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:373: DeprecationWarning: invalid escape sequence \.
- partreg = '(?:\.%s)??' % partreg
- /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:536: DeprecationWarning: invalid escape sequence \.
- sub_match = re.compile('^(.+?)\.%s$' % domain_match)
- -- Docs: https://docs.pytest.org/en/latest/warnings.html
- ====================================================== 20 failed, 9 passed, 17 warnings in 6.26 seconds ======================================================
- ERROR: InvocationError for command /ceph/src/pybind/mgr/dashboard/.tox/py3/bin/pytest tests/test_iscsi.py (exited with code 1)
- __________________________________________________________________________ summary ___________________________________________________________________________
- ERROR: py3: commands failed
Add Comment
Please, Sign In to add comment