Re: Nautilus : ceph dashboard ssl not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17. 09. 19 22:49, Michel Raabe wrote:
> ceph config-key dump | grep dashboard/[crt,key]
> 
> Try this:
> 
> ceph config-key set mgr mgr/dashboard/crt -i ssl.crt
> ceph config-key set mgr mgr/dashboard/key -i ssl.key


I've got slightly different problem. After a few days of running fine,
dashboard stops working because it is apparently seeking for wrong
certificate file in /tmp. If I restart ceph-mgr it starts to work again.

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: [24/Sep/2019:13:26:26] ENGINE
Error in HTTPServer.tick

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: Traceback (most recent call
last):

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: File
"/usr/lib/python2.7/site-packages/cherrypy/wsgiserver/wsgiserver2.py",
line 1837, in start

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: self.tick()

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: File
"/usr/lib/python2.7/site-packages/cherrypy/wsgiserver/wsgiserver2.py",
line 1902, in tick

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: s, ssl_env =
self.ssl_adapter.wrap(s)

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: File
"/usr/lib/python2.7/site-packages/cherrypy/wsgiserver/ssl_builtin.py",
line 52, in wrap

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: keyfile=self.private_key,
ssl_version=ssl.PROTOCOL_SSLv23)

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: File
"/usr/lib64/python2.7/ssl.py", line 934, in wrap_socket

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: ciphers=ciphers)

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: File
"/usr/lib64/python2.7/ssl.py", line 547, in __init__

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]:
self._context.load_cert_chain(certfile, keyfile)

Sep 24 13:26:26 cephtest01 ceph-mgr[2247]: IOError: [Errno 2] No such
file or directory


[pid 155620] open("/tmp/tmpM0BDKU", O_RDONLY) = -1 ENOENT (No such file
or directory)


In tmp folder, there is no tmpM0BDKU. Both crt and key exist under a
different name, created when mgr daemon was started:

~]# ls -la
/tmp/systemd-private-a17bab1bcad649cc89c8c9f087497236-ceph-mgr@cephtest01.service-vtiIiy/tmp/

total 8

drwxrwxrwt 2 root root   40 Sep 19 12:54 .

drwx------ 3 root root   17 Sep 19 10:24 ..

-rw------- 1 ceph ceph 2435 Sep 19 12:54 tmpHeqGFS

-rw------- 1 ceph ceph 3268 Sep 19 12:54 tmpNSoREs


I'm running latest version on fully updated CentOS 7.7:

    "mgr": {
        "ceph version 14.2.4 (75f4de193b3ea58512f204623e6c5a16e6c1e1ba)
nautilus (stable)": 3
    },

-- 
Miha
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux