Guest User

Untitled

a guest
Sep 10th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 180.86 KB | None | 0 0
  1.  
  2. __________________________________________________________ IscsiTestController.test_add_bad_client ___________________________________________________________
  3.  
  4. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_bad_client>
  5. _validate_image_mock = <MagicMock name='_validate_image' id='140039931304928'>
  6.  
  7. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  8. def test_add_bad_client(self, _validate_image_mock):
  9. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw4"
  10. create_request = copy.deepcopy(iscsi_target_request)
  11. create_request['target_iqn'] = target_iqn
  12. update_request = copy.deepcopy(create_request)
  13. update_request['new_target_iqn'] = target_iqn
  14. update_request['clients'].append(
  15. {
  16. "luns": [{"image": "lun1", "pool": "rbd"}],
  17. "client_iqn": "iqn.1994-05.com.redhat:rh7-client4",
  18. "auth": {
  19. "password": "myiscsipassword7myiscsipassword7myiscsipasswo",
  20. "user": "myiscsiusername7",
  21. "mutual_password": "myiscsipassword8",
  22. "mutual_user": "myiscsiusername8"}
  23. })
  24. response = copy.deepcopy(iscsi_target_response)
  25. response['target_iqn'] = target_iqn
  26.  
  27. self._task_post('/api/iscsi/target', create_request, version=DEFAULT_VERSION)
  28. > self.assertStatus(201)
  29.  
  30. tests/test_iscsi.py:249:
  31. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  32. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  33. self._handlewebError(msg)
  34. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  35.  
  36. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_bad_client>, msg = 'Status 500 Internal Server Error does not match 201'
  37.  
  38. def _handlewebError(self, msg): # noqa: C901 # FIXME
  39. print('')
  40. print(' ERROR: %s' % msg)
  41.  
  42. if not self.interactive:
  43. > raise self.failureException(msg)
  44. E AssertionError: Status 500 Internal Server Error does not match 201
  45.  
  46. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  47. ------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
  48. INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Listening for SIGTERM.
  49. INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Listening for SIGHUP.
  50. INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Listening for SIGUSR1.
  51. INFO:cherrypy.test.helper:Python version used to run this test script: 3.6.8
  52. INFO:cherrypy.test.helper:CherryPy version: 13.1.0
  53. INFO:cherrypy.test.helper:HTTP server version: HTTP/1.1
  54. INFO:cherrypy.test.helper:PID: 72
  55. INFO:controller:Initializing controller: Iscsi -> /api/iscsi
  56. INFO:controller:Initializing controller: IscsiTarget -> /api/iscsi/target
  57. DEBUG:controller:Mapped [/api/iscsi/discoveryauth] to Iscsi:get_discoveryauth restricted to GET
  58. DEBUG:controller:Mapped [/api/iscsi/discoveryauth] to Iscsi:set_discoveryauth restricted to PUT
  59. DEBUG:controller:Mapped [/api/iscsi/target] to IscsiTarget:create restricted to POST
  60. DEBUG:controller:Mapped [/api/iscsi/target] to IscsiTarget:list restricted to GET
  61. DEBUG:controller:Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:delete restricted to DELETE
  62. DEBUG:controller:Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:get restricted to GET
  63. DEBUG:controller:Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:set restricted to PUT
  64. INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Bus STARTING
  65. INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Serving on http://127.0.0.1:54583
  66. INFO:cherrypy.error:[10/Sep/2020:12:58:10] ENGINE Bus STARTED
  67. --------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
  68. _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Listening for SIGTERM.
  69. _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Listening for SIGHUP.
  70. _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Listening for SIGUSR1.
  71. helper.py 201 INFO Python version used to run this test script: 3.6.8
  72. helper.py 202 INFO CherryPy version: 13.1.0
  73. helper.py 207 INFO HTTP server version: HTTP/1.1
  74. helper.py 208 INFO PID: 72
  75. __init__.py 606 INFO Initializing controller: Iscsi -> /api/iscsi
  76. __init__.py 606 INFO Initializing controller: IscsiTarget -> /api/iscsi/target
  77. __init__.py 337 DEBUG Mapped [/api/iscsi/discoveryauth] to Iscsi:get_discoveryauth restricted to GET
  78. __init__.py 337 DEBUG Mapped [/api/iscsi/discoveryauth] to Iscsi:set_discoveryauth restricted to PUT
  79. __init__.py 337 DEBUG Mapped [/api/iscsi/target] to IscsiTarget:create restricted to POST
  80. __init__.py 337 DEBUG Mapped [/api/iscsi/target] to IscsiTarget:list restricted to GET
  81. __init__.py 337 DEBUG Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:delete restricted to DELETE
  82. __init__.py 337 DEBUG Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:get restricted to GET
  83. __init__.py 337 DEBUG Mapped [/api/iscsi/target/{target_iqn}] to IscsiTarget:set restricted to PUT
  84. _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Bus STARTING
  85. _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Serving on http://127.0.0.1:54583
  86. _cplogging.py 223 INFO [10/Sep/2020:12:58:10] ENGINE Bus STARTED
  87. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  88.  
  89. ERROR: Status 500 Internal Server Error does not match 201
  90. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  91. ERROR:exception:Internal Server Error
  92. Traceback (most recent call last):
  93. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  94. return handler(*args, **kwargs)
  95. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  96. return self.callable(*self.args, **self.kwargs)
  97. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  98. ret = func(*args, **kwargs)
  99. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  100. return func(*vpath, **params)
  101. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  102. exception_handler=self.exception_handler)
  103. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  104. cls.logger.debug("created %s", task) # type: ignore
  105. AttributeError: type object 'TaskManager' has no attribute 'logger'
  106. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  107. Traceback (most recent call last):
  108. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  109. self._do_respond(path_info)
  110. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  111. response.body = self.handler()
  112. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  113. self.body = self.oldhandler(*args, **kwargs)
  114. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  115. return self.newhandler(innerfunc, *args, **kwargs)
  116. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  117. raise error
  118. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  119. return handler(*args, **kwargs)
  120. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  121. return self.callable(*self.args, **self.kwargs)
  122. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  123. ret = func(*args, **kwargs)
  124. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  125. return func(*vpath, **params)
  126. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  127. exception_handler=self.exception_handler)
  128. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  129. cls.logger.debug("created %s", task) # type: ignore
  130. AttributeError: type object 'TaskManager' has no attribute 'logger'
  131. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  132. INFO:tests:task finished immediately
  133. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  134. exception.py 56 ERROR Internal Server Error
  135. Traceback (most recent call last):
  136. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  137. return handler(*args, **kwargs)
  138. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  139. return self.callable(*self.args, **self.kwargs)
  140. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  141. ret = func(*args, **kwargs)
  142. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  143. return func(*vpath, **params)
  144. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  145. exception_handler=self.exception_handler)
  146. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  147. cls.logger.debug("created %s", task) # type: ignore
  148. AttributeError: type object 'TaskManager' has no attribute 'logger'
  149. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  150. Traceback (most recent call last):
  151. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  152. self._do_respond(path_info)
  153. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  154. response.body = self.handler()
  155. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  156. self.body = self.oldhandler(*args, **kwargs)
  157. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  158. return self.newhandler(innerfunc, *args, **kwargs)
  159. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  160. raise error
  161. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  162. return handler(*args, **kwargs)
  163. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  164. return self.callable(*self.args, **self.kwargs)
  165. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  166. ret = func(*args, **kwargs)
  167. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  168. return func(*vpath, **params)
  169. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  170. exception_handler=self.exception_handler)
  171. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  172. cls.logger.debug("created %s", task) # type: ignore
  173. AttributeError: type object 'TaskManager' has no attribute 'logger'
  174. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  175. __init__.py 180 INFO task finished immediately
  176.  
  177. tests/test_iscsi.py F
  178.  
  179. ____________________________________________________________ IscsiTestController.test_add_client _____________________________________________________________
  180.  
  181. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client>
  182. _validate_image_mock = <MagicMock name='_validate_image' id='140039924145288'>
  183.  
  184. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  185. def test_add_client(self, _validate_image_mock):
  186. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw4"
  187. create_request = copy.deepcopy(iscsi_target_request)
  188. create_request['target_iqn'] = target_iqn
  189. update_request = copy.deepcopy(create_request)
  190. update_request['new_target_iqn'] = target_iqn
  191. update_request['clients'].append(
  192. {
  193. "luns": [{"image": "lun1", "pool": "rbd"}],
  194. "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
  195. "auth": {
  196. "password": "myiscsipassword5",
  197. "user": "myiscsiusername5",
  198. "mutual_password": "myiscsipassword6",
  199. "mutual_user": "myiscsiusername6"}
  200. })
  201. response = copy.deepcopy(iscsi_target_response)
  202. response['target_iqn'] = target_iqn
  203. response['clients'].append(
  204. {
  205. "luns": [{"image": "lun1", "pool": "rbd"}],
  206. "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
  207. "auth": {
  208. "password": "myiscsipassword5",
  209. "user": "myiscsiusername5",
  210. "mutual_password": "myiscsipassword6",
  211. "mutual_user": "myiscsiusername6"},
  212. "info": {
  213. "alias": "",
  214. "ip_address": [],
  215. "state": {}
  216. }
  217. })
  218. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  219.  
  220. tests/test_iscsi.py:226:
  221. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  222. tests/test_iscsi.py:524: in _update_iscsi_target
  223. self.assertStatus(201)
  224. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  225. self._handlewebError(msg)
  226. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  227.  
  228. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client>, msg = 'Status 500 Internal Server Error does not match 201'
  229.  
  230. def _handlewebError(self, msg): # noqa: C901 # FIXME
  231. print('')
  232. print(' ERROR: %s' % msg)
  233.  
  234. if not self.interactive:
  235. > raise self.failureException(msg)
  236. E AssertionError: Status 500 Internal Server Error does not match 201
  237.  
  238. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  239. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  240.  
  241. ERROR: Status 500 Internal Server Error does not match 201
  242. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  243. ERROR:exception:Internal Server Error
  244. Traceback (most recent call last):
  245. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  246. return handler(*args, **kwargs)
  247. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  248. return self.callable(*self.args, **self.kwargs)
  249. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  250. ret = func(*args, **kwargs)
  251. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  252. return func(*vpath, **params)
  253. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  254. exception_handler=self.exception_handler)
  255. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  256. cls.logger.debug("created %s", task) # type: ignore
  257. AttributeError: type object 'TaskManager' has no attribute 'logger'
  258. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  259. Traceback (most recent call last):
  260. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  261. self._do_respond(path_info)
  262. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  263. response.body = self.handler()
  264. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  265. self.body = self.oldhandler(*args, **kwargs)
  266. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  267. return self.newhandler(innerfunc, *args, **kwargs)
  268. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  269. raise error
  270. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  271. return handler(*args, **kwargs)
  272. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  273. return self.callable(*self.args, **self.kwargs)
  274. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  275. ret = func(*args, **kwargs)
  276. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  277. return func(*vpath, **params)
  278. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  279. exception_handler=self.exception_handler)
  280. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  281. cls.logger.debug("created %s", task) # type: ignore
  282. AttributeError: type object 'TaskManager' has no attribute 'logger'
  283. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  284. INFO:tests:task finished immediately
  285. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  286. exception.py 56 ERROR Internal Server Error
  287. Traceback (most recent call last):
  288. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  289. return handler(*args, **kwargs)
  290. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  291. return self.callable(*self.args, **self.kwargs)
  292. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  293. ret = func(*args, **kwargs)
  294. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  295. return func(*vpath, **params)
  296. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  297. exception_handler=self.exception_handler)
  298. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  299. cls.logger.debug("created %s", task) # type: ignore
  300. AttributeError: type object 'TaskManager' has no attribute 'logger'
  301. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  302. Traceback (most recent call last):
  303. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  304. self._do_respond(path_info)
  305. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  306. response.body = self.handler()
  307. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  308. self.body = self.oldhandler(*args, **kwargs)
  309. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  310. return self.newhandler(innerfunc, *args, **kwargs)
  311. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  312. raise error
  313. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  314. return handler(*args, **kwargs)
  315. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  316. return self.callable(*self.args, **self.kwargs)
  317. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  318. ret = func(*args, **kwargs)
  319. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  320. return func(*vpath, **params)
  321. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  322. exception_handler=self.exception_handler)
  323. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  324. cls.logger.debug("created %s", task) # type: ignore
  325. AttributeError: type object 'TaskManager' has no attribute 'logger'
  326. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  327. __init__.py 180 INFO task finished immediately
  328.  
  329. tests/test_iscsi.py F
  330.  
  331. ________________________________________________________ IscsiTestController.test_add_client_to_group ________________________________________________________
  332.  
  333. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_group>
  334. _validate_image_mock = <MagicMock name='_validate_image' id='140039898340432'>
  335.  
  336. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  337. def test_add_client_to_group(self, _validate_image_mock):
  338. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw13"
  339. create_request = copy.deepcopy(iscsi_target_request)
  340. create_request['target_iqn'] = target_iqn
  341. update_request = copy.deepcopy(create_request)
  342. update_request['new_target_iqn'] = target_iqn
  343. update_request['clients'].append(
  344. {
  345. "luns": [],
  346. "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
  347. "auth": {
  348. "password": None,
  349. "user": None,
  350. "mutual_password": None,
  351. "mutual_user": None}
  352. })
  353. update_request['groups'][0]['members'].append('iqn.1994-05.com.redhat:rh7-client3')
  354. response = copy.deepcopy(iscsi_target_response)
  355. response['target_iqn'] = target_iqn
  356. response['clients'].append(
  357. {
  358. "luns": [],
  359. "client_iqn": "iqn.1994-05.com.redhat:rh7-client3",
  360. "auth": {
  361. "password": None,
  362. "user": None,
  363. "mutual_password": None,
  364. "mutual_user": None},
  365. "info": {
  366. "alias": "",
  367. "ip_address": [],
  368. "state": {}
  369. }
  370. })
  371. response['groups'][0]['members'].append('iqn.1994-05.com.redhat:rh7-client3')
  372. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  373.  
  374. tests/test_iscsi.py:401:
  375. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  376. tests/test_iscsi.py:524: in _update_iscsi_target
  377. self.assertStatus(201)
  378. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  379. self._handlewebError(msg)
  380. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  381.  
  382. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_group>, msg = 'Status 500 Internal Server Error does not match 201'
  383.  
  384. def _handlewebError(self, msg): # noqa: C901 # FIXME
  385. print('')
  386. print(' ERROR: %s' % msg)
  387.  
  388. if not self.interactive:
  389. > raise self.failureException(msg)
  390. E AssertionError: Status 500 Internal Server Error does not match 201
  391.  
  392. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  393. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  394.  
  395. ERROR: Status 500 Internal Server Error does not match 201
  396. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  397. ERROR:exception:Internal Server Error
  398. Traceback (most recent call last):
  399. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  400. return handler(*args, **kwargs)
  401. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  402. return self.callable(*self.args, **self.kwargs)
  403. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  404. ret = func(*args, **kwargs)
  405. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  406. return func(*vpath, **params)
  407. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  408. exception_handler=self.exception_handler)
  409. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  410. cls.logger.debug("created %s", task) # type: ignore
  411. AttributeError: type object 'TaskManager' has no attribute 'logger'
  412. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  413. Traceback (most recent call last):
  414. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  415. self._do_respond(path_info)
  416. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  417. response.body = self.handler()
  418. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  419. self.body = self.oldhandler(*args, **kwargs)
  420. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  421. return self.newhandler(innerfunc, *args, **kwargs)
  422. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  423. raise error
  424. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  425. return handler(*args, **kwargs)
  426. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  427. return self.callable(*self.args, **self.kwargs)
  428. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  429. ret = func(*args, **kwargs)
  430. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  431. return func(*vpath, **params)
  432. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  433. exception_handler=self.exception_handler)
  434. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  435. cls.logger.debug("created %s", task) # type: ignore
  436. AttributeError: type object 'TaskManager' has no attribute 'logger'
  437. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  438. INFO:tests:task finished immediately
  439. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  440. exception.py 56 ERROR Internal Server Error
  441. Traceback (most recent call last):
  442. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  443. return handler(*args, **kwargs)
  444. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  445. return self.callable(*self.args, **self.kwargs)
  446. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  447. ret = func(*args, **kwargs)
  448. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  449. return func(*vpath, **params)
  450. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  451. exception_handler=self.exception_handler)
  452. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  453. cls.logger.debug("created %s", task) # type: ignore
  454. AttributeError: type object 'TaskManager' has no attribute 'logger'
  455. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  456. Traceback (most recent call last):
  457. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  458. self._do_respond(path_info)
  459. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  460. response.body = self.handler()
  461. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  462. self.body = self.oldhandler(*args, **kwargs)
  463. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  464. return self.newhandler(innerfunc, *args, **kwargs)
  465. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  466. raise error
  467. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  468. return handler(*args, **kwargs)
  469. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  470. return self.callable(*self.args, **self.kwargs)
  471. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  472. ret = func(*args, **kwargs)
  473. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  474. return func(*vpath, **params)
  475. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  476. exception_handler=self.exception_handler)
  477. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  478. cls.logger.debug("created %s", task) # type: ignore
  479. AttributeError: type object 'TaskManager' has no attribute 'logger'
  480. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  481. __init__.py 180 INFO task finished immediately
  482.  
  483. tests/test_iscsi.py F
  484.  
  485. ___________________________________________________ IscsiTestController.test_add_client_to_multiple_groups ___________________________________________________
  486.  
  487. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_multiple_groups>
  488. _validate_image_mock = <MagicMock name='_validate_image' id='140039931503280'>
  489.  
  490. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  491. def test_add_client_to_multiple_groups(self, _validate_image_mock):
  492. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw16"
  493. create_request = copy.deepcopy(iscsi_target_request)
  494. create_request['target_iqn'] = target_iqn
  495. create_request['groups'].append(copy.deepcopy(create_request['groups'][0]))
  496. create_request['groups'][1]['group_id'] = 'mygroup2'
  497. self._task_post('/api/iscsi/target', create_request, version=DEFAULT_VERSION)
  498. > self.assertStatus(400)
  499.  
  500. tests/test_iscsi.py:437:
  501. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  502. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  503. self._handlewebError(msg)
  504. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  505.  
  506. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_client_to_multiple_groups>
  507. msg = 'Status 500 Internal Server Error does not match 400'
  508.  
  509. def _handlewebError(self, msg): # noqa: C901 # FIXME
  510. print('')
  511. print(' ERROR: %s' % msg)
  512.  
  513. if not self.interactive:
  514. > raise self.failureException(msg)
  515. E AssertionError: Status 500 Internal Server Error does not match 400
  516.  
  517. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  518. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  519.  
  520. ERROR: Status 500 Internal Server Error does not match 400
  521. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  522. ERROR:exception:Internal Server Error
  523. Traceback (most recent call last):
  524. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  525. return handler(*args, **kwargs)
  526. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  527. return self.callable(*self.args, **self.kwargs)
  528. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  529. ret = func(*args, **kwargs)
  530. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  531. return func(*vpath, **params)
  532. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  533. exception_handler=self.exception_handler)
  534. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  535. cls.logger.debug("created %s", task) # type: ignore
  536. AttributeError: type object 'TaskManager' has no attribute 'logger'
  537. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  538. Traceback (most recent call last):
  539. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  540. self._do_respond(path_info)
  541. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  542. response.body = self.handler()
  543. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  544. self.body = self.oldhandler(*args, **kwargs)
  545. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  546. return self.newhandler(innerfunc, *args, **kwargs)
  547. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  548. raise error
  549. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  550. return handler(*args, **kwargs)
  551. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  552. return self.callable(*self.args, **self.kwargs)
  553. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  554. ret = func(*args, **kwargs)
  555. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  556. return func(*vpath, **params)
  557. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  558. exception_handler=self.exception_handler)
  559. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  560. cls.logger.debug("created %s", task) # type: ignore
  561. AttributeError: type object 'TaskManager' has no attribute 'logger'
  562. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  563. INFO:tests:task finished immediately
  564. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  565. exception.py 56 ERROR Internal Server Error
  566. Traceback (most recent call last):
  567. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  568. return handler(*args, **kwargs)
  569. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  570. return self.callable(*self.args, **self.kwargs)
  571. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  572. ret = func(*args, **kwargs)
  573. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  574. return func(*vpath, **params)
  575. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  576. exception_handler=self.exception_handler)
  577. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  578. cls.logger.debug("created %s", task) # type: ignore
  579. AttributeError: type object 'TaskManager' has no attribute 'logger'
  580. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  581. Traceback (most recent call last):
  582. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  583. self._do_respond(path_info)
  584. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  585. response.body = self.handler()
  586. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  587. self.body = self.oldhandler(*args, **kwargs)
  588. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  589. return self.newhandler(innerfunc, *args, **kwargs)
  590. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  591. raise error
  592. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  593. return handler(*args, **kwargs)
  594. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  595. return self.callable(*self.args, **self.kwargs)
  596. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  597. ret = func(*args, **kwargs)
  598. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  599. return func(*vpath, **params)
  600. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  601. exception_handler=self.exception_handler)
  602. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  603. cls.logger.debug("created %s", task) # type: ignore
  604. AttributeError: type object 'TaskManager' has no attribute 'logger'
  605. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  606. __init__.py 180 INFO task finished immediately
  607.  
  608. tests/test_iscsi.py F
  609.  
  610. _____________________________________________________________ IscsiTestController.test_add_disk ______________________________________________________________
  611.  
  612. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_disk>
  613. _validate_image_mock = <MagicMock name='_validate_image' id='140039897360424'>
  614.  
  615. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  616. def test_add_disk(self, _validate_image_mock):
  617. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw7"
  618. create_request = copy.deepcopy(iscsi_target_request)
  619. create_request['target_iqn'] = target_iqn
  620. update_request = copy.deepcopy(create_request)
  621. update_request['new_target_iqn'] = target_iqn
  622. update_request['disks'].append(
  623. {
  624. "image": "lun3",
  625. "pool": "rbd",
  626. "controls": {},
  627. "backstore": "user:rbd"
  628. })
  629. update_request['clients'][0]['luns'].append({"image": "lun3", "pool": "rbd"})
  630. response = copy.deepcopy(iscsi_target_response)
  631. response['target_iqn'] = target_iqn
  632. response['disks'].append(
  633. {
  634. "image": "lun3",
  635. "pool": "rbd",
  636. "controls": {},
  637. "backstore": "user:rbd",
  638. "wwn": "64af6678-9694-4367-bacc-f8eb0baa2",
  639. "lun": 2
  640.  
  641. })
  642. response['clients'][0]['luns'].append({"image": "lun3", "pool": "rbd"})
  643. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  644.  
  645. tests/test_iscsi.py:310:
  646. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  647. tests/test_iscsi.py:524: in _update_iscsi_target
  648. self.assertStatus(201)
  649. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  650. self._handlewebError(msg)
  651. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  652.  
  653. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_add_disk>, msg = 'Status 500 Internal Server Error does not match 201'
  654.  
  655. def _handlewebError(self, msg): # noqa: C901 # FIXME
  656. print('')
  657. print(' ERROR: %s' % msg)
  658.  
  659. if not self.interactive:
  660. > raise self.failureException(msg)
  661. E AssertionError: Status 500 Internal Server Error does not match 201
  662.  
  663. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  664. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  665.  
  666. ERROR: Status 500 Internal Server Error does not match 201
  667. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  668. ERROR:exception:Internal Server Error
  669. Traceback (most recent call last):
  670. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  671. return handler(*args, **kwargs)
  672. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  673. return self.callable(*self.args, **self.kwargs)
  674. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  675. ret = func(*args, **kwargs)
  676. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  677. return func(*vpath, **params)
  678. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  679. exception_handler=self.exception_handler)
  680. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  681. cls.logger.debug("created %s", task) # type: ignore
  682. AttributeError: type object 'TaskManager' has no attribute 'logger'
  683. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  684. Traceback (most recent call last):
  685. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  686. self._do_respond(path_info)
  687. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  688. response.body = self.handler()
  689. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  690. self.body = self.oldhandler(*args, **kwargs)
  691. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  692. return self.newhandler(innerfunc, *args, **kwargs)
  693. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  694. raise error
  695. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  696. return handler(*args, **kwargs)
  697. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  698. return self.callable(*self.args, **self.kwargs)
  699. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  700. ret = func(*args, **kwargs)
  701. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  702. return func(*vpath, **params)
  703. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  704. exception_handler=self.exception_handler)
  705. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  706. cls.logger.debug("created %s", task) # type: ignore
  707. AttributeError: type object 'TaskManager' has no attribute 'logger'
  708. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  709. INFO:tests:task finished immediately
  710. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  711. exception.py 56 ERROR Internal Server Error
  712. Traceback (most recent call last):
  713. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  714. return handler(*args, **kwargs)
  715. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  716. return self.callable(*self.args, **self.kwargs)
  717. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  718. ret = func(*args, **kwargs)
  719. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  720. return func(*vpath, **params)
  721. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  722. exception_handler=self.exception_handler)
  723. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  724. cls.logger.debug("created %s", task) # type: ignore
  725. AttributeError: type object 'TaskManager' has no attribute 'logger'
  726. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  727. Traceback (most recent call last):
  728. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  729. self._do_respond(path_info)
  730. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  731. response.body = self.handler()
  732. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  733. self.body = self.oldhandler(*args, **kwargs)
  734. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  735. return self.newhandler(innerfunc, *args, **kwargs)
  736. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  737. raise error
  738. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  739. return handler(*args, **kwargs)
  740. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  741. return self.callable(*self.args, **self.kwargs)
  742. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  743. ret = func(*args, **kwargs)
  744. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  745. return func(*vpath, **params)
  746. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  747. exception_handler=self.exception_handler)
  748. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  749. cls.logger.debug("created %s", task) # type: ignore
  750. AttributeError: type object 'TaskManager' has no attribute 'logger'
  751. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  752. __init__.py 180 INFO task finished immediately
  753.  
  754. tests/test_iscsi.py .F
  755.  
  756. ________________________________________________________ IscsiTestController.test_change_client_auth _________________________________________________________
  757.  
  758. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_auth>
  759. _validate_image_mock = <MagicMock name='_validate_image' id='140039897426744'>
  760.  
  761. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  762. def test_change_client_auth(self, _validate_image_mock):
  763. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw18"
  764. create_request = copy.deepcopy(iscsi_target_request)
  765. create_request['target_iqn'] = target_iqn
  766. update_request = copy.deepcopy(create_request)
  767. update_request['new_target_iqn'] = target_iqn
  768. update_request['clients'][0]['auth']['password'] = 'myiscsipasswordX'
  769. response = copy.deepcopy(iscsi_target_response)
  770. response['target_iqn'] = target_iqn
  771. response['clients'][0]['auth']['password'] = 'myiscsipasswordX'
  772. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  773.  
  774. tests/test_iscsi.py:479:
  775. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  776. tests/test_iscsi.py:524: in _update_iscsi_target
  777. self.assertStatus(201)
  778. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  779. self._handlewebError(msg)
  780. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  781.  
  782. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_auth>, msg = 'Status 500 Internal Server Error does not match 201'
  783.  
  784. def _handlewebError(self, msg): # noqa: C901 # FIXME
  785. print('')
  786. print(' ERROR: %s' % msg)
  787.  
  788. if not self.interactive:
  789. > raise self.failureException(msg)
  790. E AssertionError: Status 500 Internal Server Error does not match 201
  791.  
  792. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  793. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  794.  
  795. ERROR: Status 500 Internal Server Error does not match 201
  796. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  797. ERROR:exception:Internal Server Error
  798. Traceback (most recent call last):
  799. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  800. return handler(*args, **kwargs)
  801. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  802. return self.callable(*self.args, **self.kwargs)
  803. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  804. ret = func(*args, **kwargs)
  805. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  806. return func(*vpath, **params)
  807. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  808. exception_handler=self.exception_handler)
  809. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  810. cls.logger.debug("created %s", task) # type: ignore
  811. AttributeError: type object 'TaskManager' has no attribute 'logger'
  812. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  813. Traceback (most recent call last):
  814. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  815. self._do_respond(path_info)
  816. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  817. response.body = self.handler()
  818. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  819. self.body = self.oldhandler(*args, **kwargs)
  820. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  821. return self.newhandler(innerfunc, *args, **kwargs)
  822. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  823. raise error
  824. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  825. return handler(*args, **kwargs)
  826. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  827. return self.callable(*self.args, **self.kwargs)
  828. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  829. ret = func(*args, **kwargs)
  830. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  831. return func(*vpath, **params)
  832. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  833. exception_handler=self.exception_handler)
  834. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  835. cls.logger.debug("created %s", task) # type: ignore
  836. AttributeError: type object 'TaskManager' has no attribute 'logger'
  837. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  838. INFO:tests:task finished immediately
  839. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  840. exception.py 56 ERROR Internal Server Error
  841. Traceback (most recent call last):
  842. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  843. return handler(*args, **kwargs)
  844. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  845. return self.callable(*self.args, **self.kwargs)
  846. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  847. ret = func(*args, **kwargs)
  848. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  849. return func(*vpath, **params)
  850. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  851. exception_handler=self.exception_handler)
  852. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  853. cls.logger.debug("created %s", task) # type: ignore
  854. AttributeError: type object 'TaskManager' has no attribute 'logger'
  855. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  856. Traceback (most recent call last):
  857. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  858. self._do_respond(path_info)
  859. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  860. response.body = self.handler()
  861. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  862. self.body = self.oldhandler(*args, **kwargs)
  863. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  864. return self.newhandler(innerfunc, *args, **kwargs)
  865. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  866. raise error
  867. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  868. return handler(*args, **kwargs)
  869. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  870. return self.callable(*self.args, **self.kwargs)
  871. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  872. ret = func(*args, **kwargs)
  873. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  874. return func(*vpath, **params)
  875. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  876. exception_handler=self.exception_handler)
  877. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  878. cls.logger.debug("created %s", task) # type: ignore
  879. AttributeError: type object 'TaskManager' has no attribute 'logger'
  880. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  881. __init__.py 180 INFO task finished immediately
  882.  
  883. tests/test_iscsi.py F
  884.  
  885. ______________________________________________________ IscsiTestController.test_change_client_password _______________________________________________________
  886.  
  887. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_password>
  888. _validate_image_mock = <MagicMock name='_validate_image' id='140039897555520'>
  889.  
  890. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  891. def test_change_client_password(self, _validate_image_mock):
  892. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw5"
  893. create_request = copy.deepcopy(iscsi_target_request)
  894. create_request['target_iqn'] = target_iqn
  895. update_request = copy.deepcopy(create_request)
  896. update_request['new_target_iqn'] = target_iqn
  897. update_request['clients'][0]['auth']['password'] = 'MyNewPassword'
  898. response = copy.deepcopy(iscsi_target_response)
  899. response['target_iqn'] = target_iqn
  900. response['clients'][0]['auth']['password'] = 'MyNewPassword'
  901. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  902.  
  903. tests/test_iscsi.py:267:
  904. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  905. tests/test_iscsi.py:524: in _update_iscsi_target
  906. self.assertStatus(201)
  907. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  908. self._handlewebError(msg)
  909. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  910.  
  911. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_client_password>, msg = 'Status 500 Internal Server Error does not match 201'
  912.  
  913. def _handlewebError(self, msg): # noqa: C901 # FIXME
  914. print('')
  915. print(' ERROR: %s' % msg)
  916.  
  917. if not self.interactive:
  918. > raise self.failureException(msg)
  919. E AssertionError: Status 500 Internal Server Error does not match 201
  920.  
  921. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  922. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  923.  
  924. ERROR: Status 500 Internal Server Error does not match 201
  925. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  926. ERROR:exception:Internal Server Error
  927. Traceback (most recent call last):
  928. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  929. return handler(*args, **kwargs)
  930. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  931. return self.callable(*self.args, **self.kwargs)
  932. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  933. ret = func(*args, **kwargs)
  934. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  935. return func(*vpath, **params)
  936. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  937. exception_handler=self.exception_handler)
  938. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  939. cls.logger.debug("created %s", task) # type: ignore
  940. AttributeError: type object 'TaskManager' has no attribute 'logger'
  941. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  942. Traceback (most recent call last):
  943. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  944. self._do_respond(path_info)
  945. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  946. response.body = self.handler()
  947. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  948. self.body = self.oldhandler(*args, **kwargs)
  949. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  950. return self.newhandler(innerfunc, *args, **kwargs)
  951. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  952. raise error
  953. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  954. return handler(*args, **kwargs)
  955. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  956. return self.callable(*self.args, **self.kwargs)
  957. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  958. ret = func(*args, **kwargs)
  959. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  960. return func(*vpath, **params)
  961. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  962. exception_handler=self.exception_handler)
  963. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  964. cls.logger.debug("created %s", task) # type: ignore
  965. AttributeError: type object 'TaskManager' has no attribute 'logger'
  966. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  967. INFO:tests:task finished immediately
  968. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  969. exception.py 56 ERROR Internal Server Error
  970. Traceback (most recent call last):
  971. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  972. return handler(*args, **kwargs)
  973. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  974. return self.callable(*self.args, **self.kwargs)
  975. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  976. ret = func(*args, **kwargs)
  977. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  978. return func(*vpath, **params)
  979. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  980. exception_handler=self.exception_handler)
  981. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  982. cls.logger.debug("created %s", task) # type: ignore
  983. AttributeError: type object 'TaskManager' has no attribute 'logger'
  984. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  985. Traceback (most recent call last):
  986. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  987. self._do_respond(path_info)
  988. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  989. response.body = self.handler()
  990. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  991. self.body = self.oldhandler(*args, **kwargs)
  992. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  993. return self.newhandler(innerfunc, *args, **kwargs)
  994. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  995. raise error
  996. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  997. return handler(*args, **kwargs)
  998. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  999. return self.callable(*self.args, **self.kwargs)
  1000. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1001. ret = func(*args, **kwargs)
  1002. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1003. return func(*vpath, **params)
  1004. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1005. exception_handler=self.exception_handler)
  1006. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1007. cls.logger.debug("created %s", task) # type: ignore
  1008. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1009. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1010. __init__.py 180 INFO task finished immediately
  1011.  
  1012. tests/test_iscsi.py F
  1013.  
  1014. _______________________________________________________ IscsiTestController.test_change_disk_controls ________________________________________________________
  1015.  
  1016. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_controls>
  1017. _validate_image_mock = <MagicMock name='_validate_image' id='140039898859728'>
  1018.  
  1019. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1020. def test_change_disk_controls(self, _validate_image_mock):
  1021. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw9"
  1022. create_request = copy.deepcopy(iscsi_target_request)
  1023. create_request['target_iqn'] = target_iqn
  1024. update_request = copy.deepcopy(create_request)
  1025. update_request['new_target_iqn'] = target_iqn
  1026. update_request['disks'][0]['controls'] = {"qfull_timeout": 15}
  1027. response = copy.deepcopy(iscsi_target_response)
  1028. response['target_iqn'] = target_iqn
  1029. response['disks'][0]['controls'] = {"qfull_timeout": 15}
  1030. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  1031.  
  1032. tests/test_iscsi.py:338:
  1033. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1034. tests/test_iscsi.py:524: in _update_iscsi_target
  1035. self.assertStatus(201)
  1036. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1037. self._handlewebError(msg)
  1038. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1039.  
  1040. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_controls>, msg = 'Status 500 Internal Server Error does not match 201'
  1041.  
  1042. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1043. print('')
  1044. print(' ERROR: %s' % msg)
  1045.  
  1046. if not self.interactive:
  1047. > raise self.failureException(msg)
  1048. E AssertionError: Status 500 Internal Server Error does not match 201
  1049.  
  1050. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1051. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1052.  
  1053. ERROR: Status 500 Internal Server Error does not match 201
  1054. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1055. ERROR:exception:Internal Server Error
  1056. Traceback (most recent call last):
  1057. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1058. return handler(*args, **kwargs)
  1059. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1060. return self.callable(*self.args, **self.kwargs)
  1061. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1062. ret = func(*args, **kwargs)
  1063. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1064. return func(*vpath, **params)
  1065. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1066. exception_handler=self.exception_handler)
  1067. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1068. cls.logger.debug("created %s", task) # type: ignore
  1069. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1070. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:11] HTTP
  1071. Traceback (most recent call last):
  1072. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1073. self._do_respond(path_info)
  1074. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1075. response.body = self.handler()
  1076. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1077. self.body = self.oldhandler(*args, **kwargs)
  1078. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1079. return self.newhandler(innerfunc, *args, **kwargs)
  1080. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1081. raise error
  1082. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1083. return handler(*args, **kwargs)
  1084. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1085. return self.callable(*self.args, **self.kwargs)
  1086. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1087. ret = func(*args, **kwargs)
  1088. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1089. return func(*vpath, **params)
  1090. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1091. exception_handler=self.exception_handler)
  1092. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1093. cls.logger.debug("created %s", task) # type: ignore
  1094. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1095. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1096. INFO:tests:task finished immediately
  1097. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1098. exception.py 56 ERROR Internal Server Error
  1099. Traceback (most recent call last):
  1100. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1101. return handler(*args, **kwargs)
  1102. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1103. return self.callable(*self.args, **self.kwargs)
  1104. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1105. ret = func(*args, **kwargs)
  1106. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1107. return func(*vpath, **params)
  1108. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1109. exception_handler=self.exception_handler)
  1110. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1111. cls.logger.debug("created %s", task) # type: ignore
  1112. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1113. _cplogging.py 223 ERROR [10/Sep/2020:12:58:11] HTTP
  1114. Traceback (most recent call last):
  1115. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1116. self._do_respond(path_info)
  1117. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1118. response.body = self.handler()
  1119. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1120. self.body = self.oldhandler(*args, **kwargs)
  1121. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1122. return self.newhandler(innerfunc, *args, **kwargs)
  1123. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1124. raise error
  1125. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1126. return handler(*args, **kwargs)
  1127. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1128. return self.callable(*self.args, **self.kwargs)
  1129. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1130. ret = func(*args, **kwargs)
  1131. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1132. return func(*vpath, **params)
  1133. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1134. exception_handler=self.exception_handler)
  1135. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1136. cls.logger.debug("created %s", task) # type: ignore
  1137. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1138. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:11] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1139. __init__.py 180 INFO task finished immediately
  1140.  
  1141. tests/test_iscsi.py F
  1142.  
  1143. _________________________________________________________ IscsiTestController.test_change_disk_image _________________________________________________________
  1144.  
  1145. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_image>
  1146. _validate_image_mock = <MagicMock name='_validate_image' id='140039896905936'>
  1147.  
  1148. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1149. def test_change_disk_image(self, _validate_image_mock):
  1150. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw8"
  1151. create_request = copy.deepcopy(iscsi_target_request)
  1152. create_request['target_iqn'] = target_iqn
  1153. update_request = copy.deepcopy(create_request)
  1154. update_request['new_target_iqn'] = target_iqn
  1155. update_request['disks'][0]['image'] = 'lun0'
  1156. update_request['clients'][0]['luns'][0]['image'] = 'lun0'
  1157. response = copy.deepcopy(iscsi_target_response)
  1158. response['target_iqn'] = target_iqn
  1159. response['disks'][0]['image'] = 'lun0'
  1160. response['clients'][0]['luns'][0]['image'] = 'lun0'
  1161. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  1162.  
  1163. tests/test_iscsi.py:325:
  1164. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1165. tests/test_iscsi.py:524: in _update_iscsi_target
  1166. self.assertStatus(201)
  1167. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1168. self._handlewebError(msg)
  1169. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1170.  
  1171. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_change_disk_image>, msg = 'Status 500 Internal Server Error does not match 201'
  1172.  
  1173. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1174. print('')
  1175. print(' ERROR: %s' % msg)
  1176.  
  1177. if not self.interactive:
  1178. > raise self.failureException(msg)
  1179. E AssertionError: Status 500 Internal Server Error does not match 201
  1180.  
  1181. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1182. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1183.  
  1184. ERROR: Status 500 Internal Server Error does not match 201
  1185. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1186. ERROR:exception:Internal Server Error
  1187. Traceback (most recent call last):
  1188. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1189. return handler(*args, **kwargs)
  1190. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1191. return self.callable(*self.args, **self.kwargs)
  1192. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1193. ret = func(*args, **kwargs)
  1194. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1195. return func(*vpath, **params)
  1196. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1197. exception_handler=self.exception_handler)
  1198. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1199. cls.logger.debug("created %s", task) # type: ignore
  1200. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1201. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
  1202. Traceback (most recent call last):
  1203. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1204. self._do_respond(path_info)
  1205. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1206. response.body = self.handler()
  1207. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1208. self.body = self.oldhandler(*args, **kwargs)
  1209. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1210. return self.newhandler(innerfunc, *args, **kwargs)
  1211. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1212. raise error
  1213. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1214. return handler(*args, **kwargs)
  1215. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1216. return self.callable(*self.args, **self.kwargs)
  1217. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1218. ret = func(*args, **kwargs)
  1219. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1220. return func(*vpath, **params)
  1221. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1222. exception_handler=self.exception_handler)
  1223. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1224. cls.logger.debug("created %s", task) # type: ignore
  1225. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1226. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1227. INFO:tests:task finished immediately
  1228. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1229. exception.py 56 ERROR Internal Server Error
  1230. Traceback (most recent call last):
  1231. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1232. return handler(*args, **kwargs)
  1233. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1234. return self.callable(*self.args, **self.kwargs)
  1235. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1236. ret = func(*args, **kwargs)
  1237. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1238. return func(*vpath, **params)
  1239. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1240. exception_handler=self.exception_handler)
  1241. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1242. cls.logger.debug("created %s", task) # type: ignore
  1243. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1244. _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
  1245. Traceback (most recent call last):
  1246. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1247. self._do_respond(path_info)
  1248. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1249. response.body = self.handler()
  1250. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1251. self.body = self.oldhandler(*args, **kwargs)
  1252. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1253. return self.newhandler(innerfunc, *args, **kwargs)
  1254. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1255. raise error
  1256. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1257. return handler(*args, **kwargs)
  1258. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1259. return self.callable(*self.args, **self.kwargs)
  1260. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1261. ret = func(*args, **kwargs)
  1262. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1263. return func(*vpath, **params)
  1264. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1265. exception_handler=self.exception_handler)
  1266. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1267. cls.logger.debug("created %s", task) # type: ignore
  1268. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1269. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1270. __init__.py 180 INFO task finished immediately
  1271.  
  1272. tests/test_iscsi.py F
  1273.  
  1274. ______________________________________________________________ IscsiTestController.test_create _______________________________________________________________
  1275.  
  1276. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_create>, _validate_image_mock = <MagicMock name='_validate_image' id='140039924529528'>
  1277.  
  1278. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1279. def test_create(self, _validate_image_mock):
  1280. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw2"
  1281. request = copy.deepcopy(iscsi_target_request)
  1282. request['target_iqn'] = target_iqn
  1283. self._task_post('/api/iscsi/target', request, version=DEFAULT_VERSION)
  1284. > self.assertStatus(201)
  1285.  
  1286. tests/test_iscsi.py:172:
  1287. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1288. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1289. self._handlewebError(msg)
  1290. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1291.  
  1292. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_create>, msg = 'Status 500 Internal Server Error does not match 201'
  1293.  
  1294. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1295. print('')
  1296. print(' ERROR: %s' % msg)
  1297.  
  1298. if not self.interactive:
  1299. > raise self.failureException(msg)
  1300. E AssertionError: Status 500 Internal Server Error does not match 201
  1301.  
  1302. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1303. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1304.  
  1305. ERROR: Status 500 Internal Server Error does not match 201
  1306. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1307. ERROR:exception:Internal Server Error
  1308. Traceback (most recent call last):
  1309. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1310. return handler(*args, **kwargs)
  1311. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1312. return self.callable(*self.args, **self.kwargs)
  1313. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1314. ret = func(*args, **kwargs)
  1315. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1316. return func(*vpath, **params)
  1317. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1318. exception_handler=self.exception_handler)
  1319. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1320. cls.logger.debug("created %s", task) # type: ignore
  1321. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1322. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
  1323. Traceback (most recent call last):
  1324. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1325. self._do_respond(path_info)
  1326. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1327. response.body = self.handler()
  1328. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1329. self.body = self.oldhandler(*args, **kwargs)
  1330. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1331. return self.newhandler(innerfunc, *args, **kwargs)
  1332. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1333. raise error
  1334. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1335. return handler(*args, **kwargs)
  1336. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1337. return self.callable(*self.args, **self.kwargs)
  1338. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1339. ret = func(*args, **kwargs)
  1340. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1341. return func(*vpath, **params)
  1342. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1343. exception_handler=self.exception_handler)
  1344. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1345. cls.logger.debug("created %s", task) # type: ignore
  1346. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1347. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1348. INFO:tests:task finished immediately
  1349. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1350. exception.py 56 ERROR Internal Server Error
  1351. Traceback (most recent call last):
  1352. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1353. return handler(*args, **kwargs)
  1354. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1355. return self.callable(*self.args, **self.kwargs)
  1356. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1357. ret = func(*args, **kwargs)
  1358. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1359. return func(*vpath, **params)
  1360. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1361. exception_handler=self.exception_handler)
  1362. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1363. cls.logger.debug("created %s", task) # type: ignore
  1364. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1365. _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
  1366. Traceback (most recent call last):
  1367. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1368. self._do_respond(path_info)
  1369. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1370. response.body = self.handler()
  1371. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1372. self.body = self.oldhandler(*args, **kwargs)
  1373. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1374. return self.newhandler(innerfunc, *args, **kwargs)
  1375. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1376. raise error
  1377. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1378. return handler(*args, **kwargs)
  1379. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1380. return self.callable(*self.args, **self.kwargs)
  1381. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1382. ret = func(*args, **kwargs)
  1383. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1384. return func(*vpath, **params)
  1385. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1386. exception_handler=self.exception_handler)
  1387. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1388. cls.logger.debug("created %s", task) # type: ignore
  1389. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1390. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1391. __init__.py 180 INFO task finished immediately
  1392.  
  1393. tests/test_iscsi.py F
  1394.  
  1395. ______________________________________________________________ IscsiTestController.test_delete _______________________________________________________________
  1396.  
  1397. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_delete>, _validate_image_mock = <MagicMock name='_validate_image' id='140039897427248'>
  1398.  
  1399. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1400. def test_delete(self, _validate_image_mock):
  1401. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw3"
  1402. request = copy.deepcopy(iscsi_target_request)
  1403. request['target_iqn'] = target_iqn
  1404. self._task_post('/api/iscsi/target', request, version=DEFAULT_VERSION)
  1405. > self.assertStatus(201)
  1406.  
  1407. tests/test_iscsi.py:185:
  1408. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1409. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1410. self._handlewebError(msg)
  1411. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1412.  
  1413. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_delete>, msg = 'Status 500 Internal Server Error does not match 201'
  1414.  
  1415. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1416. print('')
  1417. print(' ERROR: %s' % msg)
  1418.  
  1419. if not self.interactive:
  1420. > raise self.failureException(msg)
  1421. E AssertionError: Status 500 Internal Server Error does not match 201
  1422.  
  1423. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1424. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1425.  
  1426. ERROR: Status 500 Internal Server Error does not match 201
  1427. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1428. ERROR:exception:Internal Server Error
  1429. Traceback (most recent call last):
  1430. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1431. return handler(*args, **kwargs)
  1432. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1433. return self.callable(*self.args, **self.kwargs)
  1434. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1435. ret = func(*args, **kwargs)
  1436. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1437. return func(*vpath, **params)
  1438. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1439. exception_handler=self.exception_handler)
  1440. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1441. cls.logger.debug("created %s", task) # type: ignore
  1442. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1443. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
  1444. Traceback (most recent call last):
  1445. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1446. self._do_respond(path_info)
  1447. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1448. response.body = self.handler()
  1449. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1450. self.body = self.oldhandler(*args, **kwargs)
  1451. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1452. return self.newhandler(innerfunc, *args, **kwargs)
  1453. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1454. raise error
  1455. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1456. return handler(*args, **kwargs)
  1457. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1458. return self.callable(*self.args, **self.kwargs)
  1459. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1460. ret = func(*args, **kwargs)
  1461. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1462. return func(*vpath, **params)
  1463. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1464. exception_handler=self.exception_handler)
  1465. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1466. cls.logger.debug("created %s", task) # type: ignore
  1467. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1468. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1469. INFO:tests:task finished immediately
  1470. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1471. exception.py 56 ERROR Internal Server Error
  1472. Traceback (most recent call last):
  1473. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1474. return handler(*args, **kwargs)
  1475. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1476. return self.callable(*self.args, **self.kwargs)
  1477. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1478. ret = func(*args, **kwargs)
  1479. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1480. return func(*vpath, **params)
  1481. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1482. exception_handler=self.exception_handler)
  1483. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1484. cls.logger.debug("created %s", task) # type: ignore
  1485. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1486. _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
  1487. Traceback (most recent call last):
  1488. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1489. self._do_respond(path_info)
  1490. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1491. response.body = self.handler()
  1492. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1493. self.body = self.oldhandler(*args, **kwargs)
  1494. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1495. return self.newhandler(innerfunc, *args, **kwargs)
  1496. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1497. raise error
  1498. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1499. return handler(*args, **kwargs)
  1500. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1501. return self.callable(*self.args, **self.kwargs)
  1502. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1503. ret = func(*args, **kwargs)
  1504. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1505. return func(*vpath, **params)
  1506. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1507. exception_handler=self.exception_handler)
  1508. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1509. cls.logger.debug("created %s", task) # type: ignore
  1510. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1511. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1512. __init__.py 180 INFO task finished immediately
  1513.  
  1514. tests/test_iscsi.py ..F
  1515.  
  1516. _______________________________________________________________ IscsiTestController.test_list ________________________________________________________________
  1517.  
  1518. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_list>, _validate_image_mock = <MagicMock name='_validate_image' id='140039897427192'>
  1519.  
  1520. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1521. def test_list(self, _validate_image_mock):
  1522. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw1"
  1523. request = copy.deepcopy(iscsi_target_request)
  1524. request['target_iqn'] = target_iqn
  1525. self._task_post('/api/iscsi/target', request, version=DEFAULT_VERSION)
  1526. > self.assertStatus(201)
  1527.  
  1528. tests/test_iscsi.py:159:
  1529. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1530. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1531. self._handlewebError(msg)
  1532. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1533.  
  1534. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_list>, msg = 'Status 500 Internal Server Error does not match 201'
  1535.  
  1536. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1537. print('')
  1538. print(' ERROR: %s' % msg)
  1539.  
  1540. if not self.interactive:
  1541. > raise self.failureException(msg)
  1542. E AssertionError: Status 500 Internal Server Error does not match 201
  1543.  
  1544. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1545. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1546.  
  1547. ERROR: Status 500 Internal Server Error does not match 201
  1548. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1549. ERROR:exception:Internal Server Error
  1550. Traceback (most recent call last):
  1551. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1552. return handler(*args, **kwargs)
  1553. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1554. return self.callable(*self.args, **self.kwargs)
  1555. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1556. ret = func(*args, **kwargs)
  1557. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1558. return func(*vpath, **params)
  1559. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1560. exception_handler=self.exception_handler)
  1561. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1562. cls.logger.debug("created %s", task) # type: ignore
  1563. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1564. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
  1565. Traceback (most recent call last):
  1566. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1567. self._do_respond(path_info)
  1568. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1569. response.body = self.handler()
  1570. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1571. self.body = self.oldhandler(*args, **kwargs)
  1572. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1573. return self.newhandler(innerfunc, *args, **kwargs)
  1574. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1575. raise error
  1576. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1577. return handler(*args, **kwargs)
  1578. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1579. return self.callable(*self.args, **self.kwargs)
  1580. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1581. ret = func(*args, **kwargs)
  1582. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1583. return func(*vpath, **params)
  1584. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1585. exception_handler=self.exception_handler)
  1586. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1587. cls.logger.debug("created %s", task) # type: ignore
  1588. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1589. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1590. INFO:tests:task finished immediately
  1591. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1592. exception.py 56 ERROR Internal Server Error
  1593. Traceback (most recent call last):
  1594. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1595. return handler(*args, **kwargs)
  1596. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1597. return self.callable(*self.args, **self.kwargs)
  1598. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1599. ret = func(*args, **kwargs)
  1600. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1601. return func(*vpath, **params)
  1602. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1603. exception_handler=self.exception_handler)
  1604. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1605. cls.logger.debug("created %s", task) # type: ignore
  1606. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1607. _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
  1608. Traceback (most recent call last):
  1609. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1610. self._do_respond(path_info)
  1611. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1612. response.body = self.handler()
  1613. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1614. self.body = self.oldhandler(*args, **kwargs)
  1615. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1616. return self.newhandler(innerfunc, *args, **kwargs)
  1617. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1618. raise error
  1619. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1620. return handler(*args, **kwargs)
  1621. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1622. return self.callable(*self.args, **self.kwargs)
  1623. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1624. ret = func(*args, **kwargs)
  1625. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1626. return func(*vpath, **params)
  1627. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1628. exception_handler=self.exception_handler)
  1629. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1630. cls.logger.debug("created %s", task) # type: ignore
  1631. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1632. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1633. __init__.py 180 INFO task finished immediately
  1634.  
  1635. tests/test_iscsi.py .F
  1636.  
  1637. ___________________________________________________________ IscsiTestController.test_remove_client ___________________________________________________________
  1638.  
  1639. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client>
  1640. _validate_image_mock = <MagicMock name='_validate_image' id='140039898825280'>
  1641.  
  1642. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1643. def test_remove_client(self, _validate_image_mock):
  1644. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw20"
  1645. create_request = copy.deepcopy(iscsi_target_request)
  1646. create_request['target_iqn'] = target_iqn
  1647. update_request = copy.deepcopy(create_request)
  1648. update_request['new_target_iqn'] = target_iqn
  1649. update_request['clients'].pop(0)
  1650. response = copy.deepcopy(iscsi_target_response)
  1651. response['target_iqn'] = target_iqn
  1652. response['clients'].pop(0)
  1653. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  1654.  
  1655. tests/test_iscsi.py:519:
  1656. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1657. tests/test_iscsi.py:524: in _update_iscsi_target
  1658. self.assertStatus(201)
  1659. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1660. self._handlewebError(msg)
  1661. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1662.  
  1663. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client>, msg = 'Status 500 Internal Server Error does not match 201'
  1664.  
  1665. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1666. print('')
  1667. print(' ERROR: %s' % msg)
  1668.  
  1669. if not self.interactive:
  1670. > raise self.failureException(msg)
  1671. E AssertionError: Status 500 Internal Server Error does not match 201
  1672.  
  1673. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1674. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1675.  
  1676. ERROR: Status 500 Internal Server Error does not match 201
  1677. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1678. ERROR:exception:Internal Server Error
  1679. Traceback (most recent call last):
  1680. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1681. return handler(*args, **kwargs)
  1682. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1683. return self.callable(*self.args, **self.kwargs)
  1684. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1685. ret = func(*args, **kwargs)
  1686. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1687. return func(*vpath, **params)
  1688. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1689. exception_handler=self.exception_handler)
  1690. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1691. cls.logger.debug("created %s", task) # type: ignore
  1692. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1693. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
  1694. Traceback (most recent call last):
  1695. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1696. self._do_respond(path_info)
  1697. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1698. response.body = self.handler()
  1699. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1700. self.body = self.oldhandler(*args, **kwargs)
  1701. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1702. return self.newhandler(innerfunc, *args, **kwargs)
  1703. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1704. raise error
  1705. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1706. return handler(*args, **kwargs)
  1707. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1708. return self.callable(*self.args, **self.kwargs)
  1709. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1710. ret = func(*args, **kwargs)
  1711. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1712. return func(*vpath, **params)
  1713. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1714. exception_handler=self.exception_handler)
  1715. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1716. cls.logger.debug("created %s", task) # type: ignore
  1717. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1718. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1719. INFO:tests:task finished immediately
  1720. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1721. exception.py 56 ERROR Internal Server Error
  1722. Traceback (most recent call last):
  1723. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1724. return handler(*args, **kwargs)
  1725. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1726. return self.callable(*self.args, **self.kwargs)
  1727. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1728. ret = func(*args, **kwargs)
  1729. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1730. return func(*vpath, **params)
  1731. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1732. exception_handler=self.exception_handler)
  1733. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1734. cls.logger.debug("created %s", task) # type: ignore
  1735. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1736. _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
  1737. Traceback (most recent call last):
  1738. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1739. self._do_respond(path_info)
  1740. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1741. response.body = self.handler()
  1742. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1743. self.body = self.oldhandler(*args, **kwargs)
  1744. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1745. return self.newhandler(innerfunc, *args, **kwargs)
  1746. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1747. raise error
  1748. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1749. return handler(*args, **kwargs)
  1750. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1751. return self.callable(*self.args, **self.kwargs)
  1752. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1753. ret = func(*args, **kwargs)
  1754. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1755. return func(*vpath, **params)
  1756. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1757. exception_handler=self.exception_handler)
  1758. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1759. cls.logger.debug("created %s", task) # type: ignore
  1760. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1761. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1762. __init__.py 180 INFO task finished immediately
  1763.  
  1764. tests/test_iscsi.py F
  1765.  
  1766. _____________________________________________________ IscsiTestController.test_remove_client_from_group ______________________________________________________
  1767.  
  1768. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_from_group>
  1769. _validate_image_mock = <MagicMock name='_validate_image' id='140039924383872'>
  1770.  
  1771. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1772. def test_remove_client_from_group(self, _validate_image_mock):
  1773. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw14"
  1774. create_request = copy.deepcopy(iscsi_target_request)
  1775. create_request['target_iqn'] = target_iqn
  1776. update_request = copy.deepcopy(create_request)
  1777. update_request['new_target_iqn'] = target_iqn
  1778. update_request['groups'][0]['members'].remove('iqn.1994-05.com.redhat:rh7-client2')
  1779. response = copy.deepcopy(iscsi_target_response)
  1780. response['target_iqn'] = target_iqn
  1781. response['groups'][0]['members'].remove('iqn.1994-05.com.redhat:rh7-client2')
  1782. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  1783.  
  1784. tests/test_iscsi.py:414:
  1785. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1786. tests/test_iscsi.py:524: in _update_iscsi_target
  1787. self.assertStatus(201)
  1788. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1789. self._handlewebError(msg)
  1790. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1791.  
  1792. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_from_group>, msg = 'Status 500 Internal Server Error does not match 201'
  1793.  
  1794. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1795. print('')
  1796. print(' ERROR: %s' % msg)
  1797.  
  1798. if not self.interactive:
  1799. > raise self.failureException(msg)
  1800. E AssertionError: Status 500 Internal Server Error does not match 201
  1801.  
  1802. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1803. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1804.  
  1805. ERROR: Status 500 Internal Server Error does not match 201
  1806. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1807. ERROR:exception:Internal Server Error
  1808. Traceback (most recent call last):
  1809. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1810. return handler(*args, **kwargs)
  1811. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1812. return self.callable(*self.args, **self.kwargs)
  1813. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1814. ret = func(*args, **kwargs)
  1815. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1816. return func(*vpath, **params)
  1817. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1818. exception_handler=self.exception_handler)
  1819. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1820. cls.logger.debug("created %s", task) # type: ignore
  1821. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1822. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
  1823. Traceback (most recent call last):
  1824. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1825. self._do_respond(path_info)
  1826. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1827. response.body = self.handler()
  1828. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1829. self.body = self.oldhandler(*args, **kwargs)
  1830. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1831. return self.newhandler(innerfunc, *args, **kwargs)
  1832. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1833. raise error
  1834. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1835. return handler(*args, **kwargs)
  1836. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1837. return self.callable(*self.args, **self.kwargs)
  1838. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1839. ret = func(*args, **kwargs)
  1840. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1841. return func(*vpath, **params)
  1842. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1843. exception_handler=self.exception_handler)
  1844. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1845. cls.logger.debug("created %s", task) # type: ignore
  1846. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1847. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1848. INFO:tests:task finished immediately
  1849. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1850. exception.py 56 ERROR Internal Server Error
  1851. Traceback (most recent call last):
  1852. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1853. return handler(*args, **kwargs)
  1854. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1855. return self.callable(*self.args, **self.kwargs)
  1856. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1857. ret = func(*args, **kwargs)
  1858. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1859. return func(*vpath, **params)
  1860. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1861. exception_handler=self.exception_handler)
  1862. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1863. cls.logger.debug("created %s", task) # type: ignore
  1864. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1865. _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
  1866. Traceback (most recent call last):
  1867. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1868. self._do_respond(path_info)
  1869. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1870. response.body = self.handler()
  1871. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1872. self.body = self.oldhandler(*args, **kwargs)
  1873. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1874. return self.newhandler(innerfunc, *args, **kwargs)
  1875. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1876. raise error
  1877. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1878. return handler(*args, **kwargs)
  1879. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1880. return self.callable(*self.args, **self.kwargs)
  1881. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1882. ret = func(*args, **kwargs)
  1883. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1884. return func(*vpath, **params)
  1885. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1886. exception_handler=self.exception_handler)
  1887. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1888. cls.logger.debug("created %s", task) # type: ignore
  1889. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1890. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1891. __init__.py 180 INFO task finished immediately
  1892.  
  1893. tests/test_iscsi.py F
  1894.  
  1895. ______________________________________________________ IscsiTestController.test_remove_client_logged_in ______________________________________________________
  1896.  
  1897. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_logged_in>
  1898. _validate_image_mock = <MagicMock name='_validate_image' id='140039896876368'>
  1899.  
  1900. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  1901. def test_remove_client_logged_in(self, _validate_image_mock):
  1902. client_info = {
  1903. 'alias': '',
  1904. 'ip_address': [],
  1905. 'state': {'LOGGED_IN': ['node1']}
  1906. }
  1907. # pylint: disable=protected-access
  1908. IscsiClientMock._instance.clientinfo = client_info
  1909. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw19"
  1910. create_request = copy.deepcopy(iscsi_target_request)
  1911. create_request['target_iqn'] = target_iqn
  1912. update_request = copy.deepcopy(create_request)
  1913. update_request['new_target_iqn'] = target_iqn
  1914. update_request['clients'].pop(0)
  1915. response = copy.deepcopy(iscsi_target_response)
  1916. response['target_iqn'] = target_iqn
  1917. for client in response['clients']:
  1918. client['info'] = client_info
  1919. update_response = {
  1920. 'detail': "Client 'iqn.1994-05.com.redhat:rh7-client' cannot be deleted until it's "
  1921. "logged out",
  1922. 'code': 'client_logged_in',
  1923. 'component': 'iscsi'
  1924. }
  1925. > self._update_iscsi_target(create_request, update_request, 400, update_response, response)
  1926.  
  1927. tests/test_iscsi.py:506:
  1928. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1929. tests/test_iscsi.py:524: in _update_iscsi_target
  1930. self.assertStatus(201)
  1931. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  1932. self._handlewebError(msg)
  1933. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1934.  
  1935. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_logged_in>, msg = 'Status 500 Internal Server Error does not match 201'
  1936.  
  1937. def _handlewebError(self, msg): # noqa: C901 # FIXME
  1938. print('')
  1939. print(' ERROR: %s' % msg)
  1940.  
  1941. if not self.interactive:
  1942. > raise self.failureException(msg)
  1943. E AssertionError: Status 500 Internal Server Error does not match 201
  1944.  
  1945. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  1946. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  1947.  
  1948. ERROR: Status 500 Internal Server Error does not match 201
  1949. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  1950. ERROR:exception:Internal Server Error
  1951. Traceback (most recent call last):
  1952. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1953. return handler(*args, **kwargs)
  1954. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1955. return self.callable(*self.args, **self.kwargs)
  1956. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1957. ret = func(*args, **kwargs)
  1958. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1959. return func(*vpath, **params)
  1960. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1961. exception_handler=self.exception_handler)
  1962. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1963. cls.logger.debug("created %s", task) # type: ignore
  1964. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1965. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:12] HTTP
  1966. Traceback (most recent call last):
  1967. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  1968. self._do_respond(path_info)
  1969. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  1970. response.body = self.handler()
  1971. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  1972. self.body = self.oldhandler(*args, **kwargs)
  1973. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  1974. return self.newhandler(innerfunc, *args, **kwargs)
  1975. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  1976. raise error
  1977. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1978. return handler(*args, **kwargs)
  1979. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1980. return self.callable(*self.args, **self.kwargs)
  1981. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  1982. ret = func(*args, **kwargs)
  1983. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  1984. return func(*vpath, **params)
  1985. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  1986. exception_handler=self.exception_handler)
  1987. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  1988. cls.logger.debug("created %s", task) # type: ignore
  1989. AttributeError: type object 'TaskManager' has no attribute 'logger'
  1990. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  1991. INFO:tests:task finished immediately
  1992. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  1993. exception.py 56 ERROR Internal Server Error
  1994. Traceback (most recent call last):
  1995. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  1996. return handler(*args, **kwargs)
  1997. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  1998. return self.callable(*self.args, **self.kwargs)
  1999. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2000. ret = func(*args, **kwargs)
  2001. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2002. return func(*vpath, **params)
  2003. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2004. exception_handler=self.exception_handler)
  2005. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2006. cls.logger.debug("created %s", task) # type: ignore
  2007. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2008. _cplogging.py 223 ERROR [10/Sep/2020:12:58:12] HTTP
  2009. Traceback (most recent call last):
  2010. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2011. self._do_respond(path_info)
  2012. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2013. response.body = self.handler()
  2014. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2015. self.body = self.oldhandler(*args, **kwargs)
  2016. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2017. return self.newhandler(innerfunc, *args, **kwargs)
  2018. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2019. raise error
  2020. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2021. return handler(*args, **kwargs)
  2022. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2023. return self.callable(*self.args, **self.kwargs)
  2024. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2025. ret = func(*args, **kwargs)
  2026. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2027. return func(*vpath, **params)
  2028. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2029. exception_handler=self.exception_handler)
  2030. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2031. cls.logger.debug("created %s", task) # type: ignore
  2032. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2033. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:12] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2034. __init__.py 180 INFO task finished immediately
  2035.  
  2036. tests/test_iscsi.py F
  2037.  
  2038. _________________________________________________________ IscsiTestController.test_remove_client_lun _________________________________________________________
  2039.  
  2040. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_lun>
  2041. _validate_image_mock = <MagicMock name='_validate_image' id='140039897055128'>
  2042.  
  2043. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  2044. def test_remove_client_lun(self, _validate_image_mock):
  2045. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw17"
  2046. create_request = copy.deepcopy(iscsi_target_request)
  2047. create_request['target_iqn'] = target_iqn
  2048. create_request['clients'][0]['luns'] = [
  2049. {"image": "lun1", "pool": "rbd"},
  2050. {"image": "lun2", "pool": "rbd"},
  2051. {"image": "lun3", "pool": "rbd"}
  2052. ]
  2053. update_request = copy.deepcopy(create_request)
  2054. update_request['new_target_iqn'] = target_iqn
  2055. update_request['clients'][0]['luns'] = [
  2056. {"image": "lun1", "pool": "rbd"},
  2057. {"image": "lun3", "pool": "rbd"}
  2058. ]
  2059. response = copy.deepcopy(iscsi_target_response)
  2060. response['target_iqn'] = target_iqn
  2061. response['clients'][0]['luns'] = [
  2062. {"image": "lun1", "pool": "rbd"},
  2063. {"image": "lun3", "pool": "rbd"}
  2064. ]
  2065. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  2066.  
  2067. tests/test_iscsi.py:466:
  2068. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2069. tests/test_iscsi.py:524: in _update_iscsi_target
  2070. self.assertStatus(201)
  2071. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  2072. self._handlewebError(msg)
  2073. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2074.  
  2075. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_client_lun>, msg = 'Status 500 Internal Server Error does not match 201'
  2076.  
  2077. def _handlewebError(self, msg): # noqa: C901 # FIXME
  2078. print('')
  2079. print(' ERROR: %s' % msg)
  2080.  
  2081. if not self.interactive:
  2082. > raise self.failureException(msg)
  2083. E AssertionError: Status 500 Internal Server Error does not match 201
  2084.  
  2085. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  2086. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  2087.  
  2088. ERROR: Status 500 Internal Server Error does not match 201
  2089. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  2090. ERROR:exception:Internal Server Error
  2091. Traceback (most recent call last):
  2092. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2093. return handler(*args, **kwargs)
  2094. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2095. return self.callable(*self.args, **self.kwargs)
  2096. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2097. ret = func(*args, **kwargs)
  2098. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2099. return func(*vpath, **params)
  2100. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2101. exception_handler=self.exception_handler)
  2102. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2103. cls.logger.debug("created %s", task) # type: ignore
  2104. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2105. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
  2106. Traceback (most recent call last):
  2107. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2108. self._do_respond(path_info)
  2109. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2110. response.body = self.handler()
  2111. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2112. self.body = self.oldhandler(*args, **kwargs)
  2113. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2114. return self.newhandler(innerfunc, *args, **kwargs)
  2115. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2116. raise error
  2117. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2118. return handler(*args, **kwargs)
  2119. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2120. return self.callable(*self.args, **self.kwargs)
  2121. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2122. ret = func(*args, **kwargs)
  2123. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2124. return func(*vpath, **params)
  2125. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2126. exception_handler=self.exception_handler)
  2127. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2128. cls.logger.debug("created %s", task) # type: ignore
  2129. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2130. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2131. INFO:tests:task finished immediately
  2132. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  2133. exception.py 56 ERROR Internal Server Error
  2134. Traceback (most recent call last):
  2135. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2136. return handler(*args, **kwargs)
  2137. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2138. return self.callable(*self.args, **self.kwargs)
  2139. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2140. ret = func(*args, **kwargs)
  2141. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2142. return func(*vpath, **params)
  2143. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2144. exception_handler=self.exception_handler)
  2145. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2146. cls.logger.debug("created %s", task) # type: ignore
  2147. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2148. _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
  2149. Traceback (most recent call last):
  2150. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2151. self._do_respond(path_info)
  2152. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2153. response.body = self.handler()
  2154. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2155. self.body = self.oldhandler(*args, **kwargs)
  2156. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2157. return self.newhandler(innerfunc, *args, **kwargs)
  2158. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2159. raise error
  2160. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2161. return handler(*args, **kwargs)
  2162. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2163. return self.callable(*self.args, **self.kwargs)
  2164. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2165. ret = func(*args, **kwargs)
  2166. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2167. return func(*vpath, **params)
  2168. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2169. exception_handler=self.exception_handler)
  2170. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2171. cls.logger.debug("created %s", task) # type: ignore
  2172. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2173. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2174. __init__.py 180 INFO task finished immediately
  2175.  
  2176. tests/test_iscsi.py F
  2177.  
  2178. ___________________________________________________________ IscsiTestController.test_remove_groups ___________________________________________________________
  2179.  
  2180. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_groups>
  2181. _validate_image_mock = <MagicMock name='_validate_image' id='140039924145344'>
  2182.  
  2183. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  2184. def test_remove_groups(self, _validate_image_mock):
  2185. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw15"
  2186. create_request = copy.deepcopy(iscsi_target_request)
  2187. create_request['target_iqn'] = target_iqn
  2188. update_request = copy.deepcopy(create_request)
  2189. update_request['new_target_iqn'] = target_iqn
  2190. update_request['groups'] = []
  2191. response = copy.deepcopy(iscsi_target_response)
  2192. response['target_iqn'] = target_iqn
  2193. response['groups'] = []
  2194. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  2195.  
  2196. tests/test_iscsi.py:427:
  2197. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2198. tests/test_iscsi.py:524: in _update_iscsi_target
  2199. self.assertStatus(201)
  2200. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  2201. self._handlewebError(msg)
  2202. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2203.  
  2204. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_remove_groups>, msg = 'Status 500 Internal Server Error does not match 201'
  2205.  
  2206. def _handlewebError(self, msg): # noqa: C901 # FIXME
  2207. print('')
  2208. print(' ERROR: %s' % msg)
  2209.  
  2210. if not self.interactive:
  2211. > raise self.failureException(msg)
  2212. E AssertionError: Status 500 Internal Server Error does not match 201
  2213.  
  2214. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  2215. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  2216.  
  2217. ERROR: Status 500 Internal Server Error does not match 201
  2218. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  2219. ERROR:exception:Internal Server Error
  2220. Traceback (most recent call last):
  2221. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2222. return handler(*args, **kwargs)
  2223. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2224. return self.callable(*self.args, **self.kwargs)
  2225. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2226. ret = func(*args, **kwargs)
  2227. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2228. return func(*vpath, **params)
  2229. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2230. exception_handler=self.exception_handler)
  2231. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2232. cls.logger.debug("created %s", task) # type: ignore
  2233. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2234. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
  2235. Traceback (most recent call last):
  2236. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2237. self._do_respond(path_info)
  2238. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2239. response.body = self.handler()
  2240. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2241. self.body = self.oldhandler(*args, **kwargs)
  2242. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2243. return self.newhandler(innerfunc, *args, **kwargs)
  2244. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2245. raise error
  2246. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2247. return handler(*args, **kwargs)
  2248. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2249. return self.callable(*self.args, **self.kwargs)
  2250. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2251. ret = func(*args, **kwargs)
  2252. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2253. return func(*vpath, **params)
  2254. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2255. exception_handler=self.exception_handler)
  2256. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2257. cls.logger.debug("created %s", task) # type: ignore
  2258. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2259. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2260. INFO:tests:task finished immediately
  2261. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  2262. exception.py 56 ERROR Internal Server Error
  2263. Traceback (most recent call last):
  2264. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2265. return handler(*args, **kwargs)
  2266. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2267. return self.callable(*self.args, **self.kwargs)
  2268. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2269. ret = func(*args, **kwargs)
  2270. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2271. return func(*vpath, **params)
  2272. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2273. exception_handler=self.exception_handler)
  2274. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2275. cls.logger.debug("created %s", task) # type: ignore
  2276. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2277. _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
  2278. Traceback (most recent call last):
  2279. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2280. self._do_respond(path_info)
  2281. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2282. response.body = self.handler()
  2283. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2284. self.body = self.oldhandler(*args, **kwargs)
  2285. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2286. return self.newhandler(innerfunc, *args, **kwargs)
  2287. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2288. raise error
  2289. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2290. return handler(*args, **kwargs)
  2291. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2292. return self.callable(*self.args, **self.kwargs)
  2293. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2294. ret = func(*args, **kwargs)
  2295. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2296. return func(*vpath, **params)
  2297. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2298. exception_handler=self.exception_handler)
  2299. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2300. cls.logger.debug("created %s", task) # type: ignore
  2301. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2302. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2303. __init__.py 180 INFO task finished immediately
  2304.  
  2305. tests/test_iscsi.py F
  2306.  
  2307. ___________________________________________________________ IscsiTestController.test_rename_client ___________________________________________________________
  2308.  
  2309. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_client>
  2310. _validate_image_mock = <MagicMock name='_validate_image' id='140039898339984'>
  2311.  
  2312. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  2313. def test_rename_client(self, _validate_image_mock):
  2314. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw6"
  2315. create_request = copy.deepcopy(iscsi_target_request)
  2316. create_request['target_iqn'] = target_iqn
  2317. update_request = copy.deepcopy(create_request)
  2318. update_request['new_target_iqn'] = target_iqn
  2319. update_request['clients'][0]['client_iqn'] = 'iqn.1994-05.com.redhat:rh7-client0'
  2320. response = copy.deepcopy(iscsi_target_response)
  2321. response['target_iqn'] = target_iqn
  2322. response['clients'][0]['client_iqn'] = 'iqn.1994-05.com.redhat:rh7-client0'
  2323. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  2324.  
  2325. tests/test_iscsi.py:280:
  2326. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2327. tests/test_iscsi.py:524: in _update_iscsi_target
  2328. self.assertStatus(201)
  2329. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  2330. self._handlewebError(msg)
  2331. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2332.  
  2333. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_client>, msg = 'Status 500 Internal Server Error does not match 201'
  2334.  
  2335. def _handlewebError(self, msg): # noqa: C901 # FIXME
  2336. print('')
  2337. print(' ERROR: %s' % msg)
  2338.  
  2339. if not self.interactive:
  2340. > raise self.failureException(msg)
  2341. E AssertionError: Status 500 Internal Server Error does not match 201
  2342.  
  2343. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  2344. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  2345.  
  2346. ERROR: Status 500 Internal Server Error does not match 201
  2347. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  2348. ERROR:exception:Internal Server Error
  2349. Traceback (most recent call last):
  2350. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2351. return handler(*args, **kwargs)
  2352. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2353. return self.callable(*self.args, **self.kwargs)
  2354. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2355. ret = func(*args, **kwargs)
  2356. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2357. return func(*vpath, **params)
  2358. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2359. exception_handler=self.exception_handler)
  2360. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2361. cls.logger.debug("created %s", task) # type: ignore
  2362. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2363. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
  2364. Traceback (most recent call last):
  2365. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2366. self._do_respond(path_info)
  2367. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2368. response.body = self.handler()
  2369. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2370. self.body = self.oldhandler(*args, **kwargs)
  2371. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2372. return self.newhandler(innerfunc, *args, **kwargs)
  2373. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2374. raise error
  2375. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2376. return handler(*args, **kwargs)
  2377. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2378. return self.callable(*self.args, **self.kwargs)
  2379. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2380. ret = func(*args, **kwargs)
  2381. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2382. return func(*vpath, **params)
  2383. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2384. exception_handler=self.exception_handler)
  2385. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2386. cls.logger.debug("created %s", task) # type: ignore
  2387. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2388. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2389. INFO:tests:task finished immediately
  2390. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  2391. exception.py 56 ERROR Internal Server Error
  2392. Traceback (most recent call last):
  2393. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2394. return handler(*args, **kwargs)
  2395. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2396. return self.callable(*self.args, **self.kwargs)
  2397. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2398. ret = func(*args, **kwargs)
  2399. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2400. return func(*vpath, **params)
  2401. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2402. exception_handler=self.exception_handler)
  2403. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2404. cls.logger.debug("created %s", task) # type: ignore
  2405. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2406. _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
  2407. Traceback (most recent call last):
  2408. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2409. self._do_respond(path_info)
  2410. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2411. response.body = self.handler()
  2412. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2413. self.body = self.oldhandler(*args, **kwargs)
  2414. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2415. return self.newhandler(innerfunc, *args, **kwargs)
  2416. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2417. raise error
  2418. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2419. return handler(*args, **kwargs)
  2420. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2421. return self.callable(*self.args, **self.kwargs)
  2422. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2423. ret = func(*args, **kwargs)
  2424. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2425. return func(*vpath, **params)
  2426. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2427. exception_handler=self.exception_handler)
  2428. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2429. cls.logger.debug("created %s", task) # type: ignore
  2430. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2431. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2432. __init__.py 180 INFO task finished immediately
  2433.  
  2434. tests/test_iscsi.py F
  2435.  
  2436. ___________________________________________________________ IscsiTestController.test_rename_group ____________________________________________________________
  2437.  
  2438. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_group>
  2439. _validate_image_mock = <MagicMock name='_validate_image' id='140039897059280'>
  2440.  
  2441. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  2442. def test_rename_group(self, _validate_image_mock):
  2443. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw12"
  2444. create_request = copy.deepcopy(iscsi_target_request)
  2445. create_request['target_iqn'] = target_iqn
  2446. update_request = copy.deepcopy(create_request)
  2447. update_request['new_target_iqn'] = target_iqn
  2448. update_request['groups'][0]['group_id'] = 'mygroup0'
  2449. response = copy.deepcopy(iscsi_target_response)
  2450. response['target_iqn'] = target_iqn
  2451. response['groups'][0]['group_id'] = 'mygroup0'
  2452. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  2453.  
  2454. tests/test_iscsi.py:363:
  2455. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2456. tests/test_iscsi.py:524: in _update_iscsi_target
  2457. self.assertStatus(201)
  2458. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  2459. self._handlewebError(msg)
  2460. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2461.  
  2462. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_group>, msg = 'Status 500 Internal Server Error does not match 201'
  2463.  
  2464. def _handlewebError(self, msg): # noqa: C901 # FIXME
  2465. print('')
  2466. print(' ERROR: %s' % msg)
  2467.  
  2468. if not self.interactive:
  2469. > raise self.failureException(msg)
  2470. E AssertionError: Status 500 Internal Server Error does not match 201
  2471.  
  2472. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  2473. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  2474.  
  2475. ERROR: Status 500 Internal Server Error does not match 201
  2476. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  2477. ERROR:exception:Internal Server Error
  2478. Traceback (most recent call last):
  2479. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2480. return handler(*args, **kwargs)
  2481. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2482. return self.callable(*self.args, **self.kwargs)
  2483. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2484. ret = func(*args, **kwargs)
  2485. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2486. return func(*vpath, **params)
  2487. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2488. exception_handler=self.exception_handler)
  2489. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2490. cls.logger.debug("created %s", task) # type: ignore
  2491. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2492. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
  2493. Traceback (most recent call last):
  2494. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2495. self._do_respond(path_info)
  2496. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2497. response.body = self.handler()
  2498. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2499. self.body = self.oldhandler(*args, **kwargs)
  2500. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2501. return self.newhandler(innerfunc, *args, **kwargs)
  2502. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2503. raise error
  2504. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2505. return handler(*args, **kwargs)
  2506. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2507. return self.callable(*self.args, **self.kwargs)
  2508. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2509. ret = func(*args, **kwargs)
  2510. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2511. return func(*vpath, **params)
  2512. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2513. exception_handler=self.exception_handler)
  2514. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2515. cls.logger.debug("created %s", task) # type: ignore
  2516. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2517. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2518. INFO:tests:task finished immediately
  2519. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  2520. exception.py 56 ERROR Internal Server Error
  2521. Traceback (most recent call last):
  2522. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2523. return handler(*args, **kwargs)
  2524. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2525. return self.callable(*self.args, **self.kwargs)
  2526. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2527. ret = func(*args, **kwargs)
  2528. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2529. return func(*vpath, **params)
  2530. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2531. exception_handler=self.exception_handler)
  2532. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2533. cls.logger.debug("created %s", task) # type: ignore
  2534. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2535. _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
  2536. Traceback (most recent call last):
  2537. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2538. self._do_respond(path_info)
  2539. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2540. response.body = self.handler()
  2541. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2542. self.body = self.oldhandler(*args, **kwargs)
  2543. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2544. return self.newhandler(innerfunc, *args, **kwargs)
  2545. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2546. raise error
  2547. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2548. return handler(*args, **kwargs)
  2549. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2550. return self.callable(*self.args, **self.kwargs)
  2551. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2552. ret = func(*args, **kwargs)
  2553. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2554. return func(*vpath, **params)
  2555. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2556. exception_handler=self.exception_handler)
  2557. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2558. cls.logger.debug("created %s", task) # type: ignore
  2559. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2560. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2561. __init__.py 180 INFO task finished immediately
  2562.  
  2563. tests/test_iscsi.py F
  2564.  
  2565. ___________________________________________________________ IscsiTestController.test_rename_target ___________________________________________________________
  2566.  
  2567. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_target>
  2568. _validate_image_mock = <MagicMock name='_validate_image' id='140039897360032'>
  2569.  
  2570. @mock.patch('dashboard.controllers.iscsi.IscsiTarget._validate_image')
  2571. def test_rename_target(self, _validate_image_mock):
  2572. target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw10"
  2573. new_target_iqn = "iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw11"
  2574. create_request = copy.deepcopy(iscsi_target_request)
  2575. create_request['target_iqn'] = target_iqn
  2576. update_request = copy.deepcopy(create_request)
  2577. update_request['new_target_iqn'] = new_target_iqn
  2578. response = copy.deepcopy(iscsi_target_response)
  2579. response['target_iqn'] = new_target_iqn
  2580. > self._update_iscsi_target(create_request, update_request, 200, None, response)
  2581.  
  2582. tests/test_iscsi.py:350:
  2583. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2584. tests/test_iscsi.py:524: in _update_iscsi_target
  2585. self.assertStatus(201)
  2586. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:327: in assertStatus
  2587. self._handlewebError(msg)
  2588. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2589.  
  2590. self = <dashboard.tests.test_iscsi.IscsiTestController testMethod=test_rename_target>, msg = 'Status 500 Internal Server Error does not match 201'
  2591.  
  2592. def _handlewebError(self, msg): # noqa: C901 # FIXME
  2593. print('')
  2594. print(' ERROR: %s' % msg)
  2595.  
  2596. if not self.interactive:
  2597. > raise self.failureException(msg)
  2598. E AssertionError: Status 500 Internal Server Error does not match 201
  2599.  
  2600. .tox/py3/lib/python3.6/site-packages/cheroot/test/webtest.py:259: AssertionError
  2601. -------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
  2602.  
  2603. ERROR: Status 500 Internal Server Error does not match 201
  2604. -------------------------------------------------------------------- Captured stderr call --------------------------------------------------------------------
  2605. ERROR:exception:Internal Server Error
  2606. Traceback (most recent call last):
  2607. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2608. return handler(*args, **kwargs)
  2609. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2610. return self.callable(*self.args, **self.kwargs)
  2611. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2612. ret = func(*args, **kwargs)
  2613. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2614. return func(*vpath, **params)
  2615. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2616. exception_handler=self.exception_handler)
  2617. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2618. cls.logger.debug("created %s", task) # type: ignore
  2619. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2620. ERROR:cherrypy.error.140039924838240:[10/Sep/2020:12:58:13] HTTP
  2621. Traceback (most recent call last):
  2622. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2623. self._do_respond(path_info)
  2624. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2625. response.body = self.handler()
  2626. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2627. self.body = self.oldhandler(*args, **kwargs)
  2628. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2629. return self.newhandler(innerfunc, *args, **kwargs)
  2630. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2631. raise error
  2632. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2633. return handler(*args, **kwargs)
  2634. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2635. return self.callable(*self.args, **self.kwargs)
  2636. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2637. ret = func(*args, **kwargs)
  2638. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2639. return func(*vpath, **params)
  2640. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2641. exception_handler=self.exception_handler)
  2642. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2643. cls.logger.debug("created %s", task) # type: ignore
  2644. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2645. INFO:cherrypy.access.140039924838240:127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2646. INFO:tests:task finished immediately
  2647. --------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
  2648. exception.py 56 ERROR Internal Server Error
  2649. Traceback (most recent call last):
  2650. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2651. return handler(*args, **kwargs)
  2652. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2653. return self.callable(*self.args, **self.kwargs)
  2654. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2655. ret = func(*args, **kwargs)
  2656. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2657. return func(*vpath, **params)
  2658. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2659. exception_handler=self.exception_handler)
  2660. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2661. cls.logger.debug("created %s", task) # type: ignore
  2662. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2663. _cplogging.py 223 ERROR [10/Sep/2020:12:58:13] HTTP
  2664. Traceback (most recent call last):
  2665. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 631, in respond
  2666. self._do_respond(path_info)
  2667. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 690, in _do_respond
  2668. response.body = self.handler()
  2669. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
  2670. self.body = self.oldhandler(*args, **kwargs)
  2671. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
  2672. return self.newhandler(innerfunc, *args, **kwargs)
  2673. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 57, in dashboard_exception_handler
  2674. raise error
  2675. File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 48, in dashboard_exception_handler
  2676. return handler(*args, **kwargs)
  2677. File "/ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
  2678. return self.callable(*self.args, **self.kwargs)
  2679. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 686, in inner
  2680. ret = func(*args, **kwargs)
  2681. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 893, in wrapper
  2682. return func(*vpath, **params)
  2683. File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 462, in wrapper
  2684. exception_handler=self.exception_handler)
  2685. File "/ceph/src/pybind/mgr/dashboard/tools.py", line 446, in run
  2686. cls.logger.debug("created %s", task) # type: ignore
  2687. AttributeError: type object 'TaskManager' has no attribute 'logger'
  2688. _cplogging.py 293 INFO 127.0.0.1 - - [10/Sep/2020:12:58:13] "POST /api/iscsi/target HTTP/1.1" 500 513 "" ""
  2689. __init__.py 180 INFO task finished immediately
  2690.  
  2691. tests/test_iscsi.py . [100%]
  2692.  
  2693. ----------- coverage: platform linux, python 3.6.8-final-0 -----------
  2694. Name Stmts Miss Cover
  2695. ---------------------------------------------------------------------
  2696. awsauth.py 80 62 22%
  2697. cherrypy_backports.py 84 62 26%
  2698. controllers/__init__.py 585 177 70%
  2699. controllers/cephfs.py 225 168 25%
  2700. controllers/iscsi.py 678 554 18%
  2701. controllers/nfsganesha.py 107 54 50%
  2702. controllers/rbd.py 266 165 38%
  2703. controllers/rbd_mirroring.py 308 224 27%
  2704. controllers/rgw.py 260 177 32%
  2705. exceptions.py 60 16 73%
  2706. grafana.py 78 61 22%
  2707. module.py 246 179 27%
  2708. plugins/__init__.py 38 4 89%
  2709. plugins/debug.py 36 11 69%
  2710. plugins/feature_toggles.py 79 34 57%
  2711. plugins/interfaces.py 36 5 86%
  2712. plugins/pluggy.py 41 4 90%
  2713. plugins/plugin.py 22 3 86%
  2714. plugins/ttl_cache.py 38 21 45%
  2715. rest_client.py 266 212 20%
  2716. security.py 33 0 100%
  2717. services/__init__.py 1 0 100%
  2718. services/access_control.py 561 448 20%
  2719. services/auth.py 132 90 32%
  2720. services/ceph_service.py 198 154 22%
  2721. services/cephfs.py 128 103 20%
  2722. services/cephx.py 19 11 42%
  2723. services/exception.py 63 21 67%
  2724. services/ganesha.py 655 548 16%
  2725. services/iscsi_cli.py 33 11 67%
  2726. services/iscsi_client.py 145 70 52%
  2727. services/iscsi_config.py 66 14 79%
  2728. services/orchestrator.py 134 47 65%
  2729. services/rbd.py 240 203 15%
  2730. services/rgw_client.py 291 222 24%
  2731. services/sso.py 129 95 26%
  2732. services/tcmu_service.py 62 53 15%
  2733. settings.py 114 25 78%
  2734. tools.py 515 354 31%
  2735. /ceph/src/pybind/mgr/mgr_util.py 384 287 25%
  2736. /ceph/src/pybind/mgr/orchestrator/__init__.py 6 0 100%
  2737. /ceph/src/pybind/mgr/orchestrator/_interface.py 748 482 36%
  2738. /ceph/src/pybind/mgr/orchestrator/module.py 740 635 14%
  2739. /ceph/src/pybind/mgr/tests/__init__.py 118 85 28%
  2740. ---------------------------------------------------------------------
  2741. TOTAL 9048 6151 32%
  2742.  
  2743.  
  2744. ====================================================================== warnings summary ======================================================================
  2745. .tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:403
  2746. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:403: DeprecationWarning: invalid escape sequence \.
  2747. """
  2748.  
  2749. .tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:418
  2750. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/onelogin/saml2/utils.py:418: DeprecationWarning: invalid escape sequence \.
  2751. """
  2752.  
  2753. .tox/py3/lib/python3.6/site-packages/prettytable.py:74
  2754. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:74: DeprecationWarning: invalid escape sequence \[
  2755. _re = re.compile("\033\[[0-9;]*m")
  2756.  
  2757. .tox/py3/lib/python3.6/site-packages/prettytable.py:800
  2758. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:800: DeprecationWarning: invalid escape sequence \{
  2759. self.vertical_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
  2760.  
  2761. .tox/py3/lib/python3.6/site-packages/prettytable.py:801
  2762. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:801: DeprecationWarning: invalid escape sequence \{
  2763. self.horizontal_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
  2764.  
  2765. .tox/py3/lib/python3.6/site-packages/prettytable.py:802
  2766. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/prettytable.py:802: DeprecationWarning: invalid escape sequence \{
  2767. self.junction_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
  2768.  
  2769. tests/test_iscsi.py::IscsiTestController::test_add_bad_client
  2770. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:410: DeprecationWarning: invalid escape sequence \.
  2771. self.domain_match = '[^\.\/]+?\.[^\.\/]+'
  2772. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:521: DeprecationWarning: invalid escape sequence \d
  2773. """
  2774. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:1063: DeprecationWarning: invalid escape sequence \d
  2775. """
  2776. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/mapper.py:1180: DeprecationWarning: invalid escape sequence \/
  2777. requirements_regexp = '[^\/]+(?<!\\\)'
  2778. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/util.py:97: DeprecationWarning: invalid escape sequence \.
  2779. match = re.match('^(.+?)\.(%s)$' % mapper.domain_match, host)
  2780. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/util.py:515: DeprecationWarning: invalid escape sequence \.
  2781. re.match('^[^_]{1,1}.*\.py$', fname):
  2782. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:48: DeprecationWarning: invalid escape sequence \d
  2783. """
  2784. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:330: DeprecationWarning: invalid escape sequence \.
  2785. regparts.append('(?:\.%s)??' % regpart)
  2786. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:396: DeprecationWarning: invalid escape sequence \.
  2787. partreg = '(?:\.%s)??' % partreg
  2788. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:373: DeprecationWarning: invalid escape sequence \.
  2789. partreg = '(?:\.%s)??' % partreg
  2790. /ceph/src/pybind/mgr/dashboard/.tox/py3/lib/python3.6/site-packages/routes/route.py:536: DeprecationWarning: invalid escape sequence \.
  2791. sub_match = re.compile('^(.+?)\.%s$' % domain_match)
  2792.  
  2793. -- Docs: https://docs.pytest.org/en/latest/warnings.html
  2794. ====================================================== 20 failed, 9 passed, 17 warnings in 6.26 seconds ======================================================
  2795. ERROR: InvocationError for command /ceph/src/pybind/mgr/dashboard/.tox/py3/bin/pytest tests/test_iscsi.py (exited with code 1)
  2796. __________________________________________________________________________ summary ___________________________________________________________________________
  2797. ERROR: py3: commands failed
  2798.  
Add Comment
Please, Sign In to add comment