]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard_v2: Disable CherryPi autoreload feature.
authorVolker Theile <vtheile@suse.com>
Fri, 26 Jan 2018 13:44:57 +0000 (14:44 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:02 +0000 (13:07 +0000)
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 <vtheile@suse.com>
src/pybind/mgr/dashboard_v2/module.py

index 1e23845d89bf643af0501cedc46a6bd0ebc35a14..a7651ab22cb05c3290b945ca86eb5f8acb78c3c4 100644 (file)
@@ -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)