Actions
Bug #38528
closedmgr/dashboard: Unable to disable SSL support
% Done:
0%
Source:
Tags:
Backport:
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I did some local testing in a vstart environment (which automatically starts an SSL-enabled dashboard) and noticed the following: running "ceph config set mgr mgr/dashboard/ssl false" does not seem to have an effect at all. After restarting the dashboard via "ceph mgr module disable/enable dashboard", it still uses SSL:
╰─# ./bin/ceph mgr services *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-02-28 17:52:18.553 7f3ba1ce1700 -1 WARNING: all dangerous and experimental features are enabled. 2019-02-28 17:52:18.601 7f3ba1ce1700 -1 WARNING: all dangerous and experimental features are enabled. { "dashboard": "https://localhost:41106/", "prometheus": "http://localhost:9283/", "restful": "https://ceph-1:42106/" } ╭─root@ceph-1 /ceph/build ‹master*› ╰─# ╭─root@ceph-1 /ceph/build ‹master*› ╰─# ./bin/ceph mgr services *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-02-28 17:54:31.093 7f0e44055700 -1 WARNING: all dangerous and experimental features are enabled. 2019-02-28 17:54:31.137 7f0e44055700 -1 WARNING: all dangerous and experimental features are enabled. { "dashboard": "https://localhost:41106/", "prometheus": "http://localhost:9283/", "restful": "https://ceph-1:42106/" } ╭─root@ceph-1 /ceph/build ‹master*› ╰─# ./bin/ceph config set mgr mgr/dashboard/ssl false *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-02-28 17:54:36.073 7fe48ebc2700 -1 WARNING: all dangerous and experimental features are enabled. 2019-02-28 17:54:36.133 7fe48ebc2700 -1 WARNING: all dangerous and experimental features are enabled. ╭─root@ceph-1 /ceph/build ‹master*› ╰─# ./bin/ceph mgr module disable dashboard *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-02-28 17:54:47.042 7fb4049b9700 -1 WARNING: all dangerous and experimental features are enabled. 2019-02-28 17:54:47.102 7fb4049b9700 -1 WARNING: all dangerous and experimental features are enabled. ╭─root@ceph-1 /ceph/build ‹master*› ╰─# ./bin/ceph mgr module enable dashboard *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-02-28 17:55:02.970 7f39fa00d700 -1 WARNING: all dangerous and experimental features are enabled. 2019-02-28 17:55:03.034 7f39fa00d700 -1 WARNING: all dangerous and experimental features are enabled. ╭─root@ceph-1 /ceph/build ‹master*› ╰─# ./bin/ceph mgr services *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2019-02-28 17:55:18.994 7fd1e4ca0700 -1 WARNING: all dangerous and experimental features are enabled. 2019-02-28 17:55:19.042 7fd1e4ca0700 -1 WARNING: all dangerous and experimental features are enabled. { "dashboard": "https://localhost:41106/", "prometheus": "http://localhost:9283/", "restful": "https://ceph-1:42106/" } <pre>
Actions