From: Volker Theile Date: Fri, 26 Jan 2018 13:44:57 +0000 (+0100) Subject: mgr/dashboard_v2: Disable CherryPi autoreload feature. X-Git-Tag: wip-pdonnell-testing-20180317.202121~127^2~125 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=454e5f3d9cc94efc7dcdc1ee05c8a29fa5c7d4e7;p=ceph-ci.git mgr/dashboard_v2: Disable CherryPi autoreload feature. It does not work, either with the below code to fix the error ``` 2018-01-26 13:21:15.779 7fa454add700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'dashboard_v2' while running on mgr.x: execv() arg 2 must not be empty 2018-01-26 13:21:15.779 7fa454add700 -1 dashboard_v2.serve: File "/ceph/src/pybind/mgr/dashboard_v2/module.py", line 112, in serve ``` ``` def _get_true_argv(): return sys.argv[:] cherrypy.engine._get_true_argv = _get_true_argv ``` Signed-off-by: Volker Theile --- diff --git a/src/pybind/mgr/dashboard_v2/module.py b/src/pybind/mgr/dashboard_v2/module.py index 1e23845d89b..a7651ab22cb 100644 --- a/src/pybind/mgr/dashboard_v2/module.py +++ b/src/pybind/mgr/dashboard_v2/module.py @@ -54,6 +54,7 @@ class Module(MgrModule): cherrypy.config.update({ 'server.socket_host': server_addr, 'server.socket_port': int(server_port), + 'engine.autoreload.on': False }) cherrypy.tools.authenticate = cherrypy.Tool('before_handler', Auth.check_auth)