Ceph Calamari安装问题汇总

在Ceph Calamari的安装(Ubuntu 14.04)过程中遇到很多问题,现总结如下:

1 saltstack报错:The Salt Master has rejected this minion's public key!

在启动salt minion的时候saltstack报错:The Salt Master has rejected this minion's public key!
这个问题是由于salt minion的id有问题导致的,解决此问题的方法是首先到master上删除saltstack的minion缓存,文件目录位置在: /etc/salt/pki/master/minions。然后到salt minion的服务器上,修改minion的配置文件将id设置为正确的值。

2 IOError: [Errno 13] Permission denied: '/var/log/calamari/cthulhu.log'

访问权限问题,需要更改该文件的权限为www-data

3 cthulhu和carbon-cache进程状态错误

通过supervisorctl返现上述进程状态错误,网页登录存在问题。重启supervisor守护进程解决。

4 部分API调用报500错误


日志如下

2015-12-16 00:53:33,439 - ERROR - django.request Internal Server Error: /api/v1/cluster/83c6710d-89b9-4956-a27d-ec257bbbec03/health_counters
Traceback (most recent call last):
File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/viewsets.py", line 78, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/rpc_view.py", line 91, in dispatch
return super(RPCViewSet, self).dispatch(request, *args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(*args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/views.py", line 399, in dispatch
response = self.handle_exception(exc)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/rpc_view.py", line 108, in handle_exception
return super(RPCViewSet, self).handle_exception(exc)
File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/views.py", line 396, in dispatch
response = handler(request, *args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/v1.py", line 315, in get
counters = self.generate(osd_data, mds_data, mon_status, pg_summary)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/v1.py", line 168, in generate
'mon': cls._calculate_mon_counters(mon_status),
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/v1.py", line 174, in _calculate_mon_counters
mons = mon_status['monmap']['mons']
TypeError: 'NoneType' object has no attribute '__getitem__'

该问题是因为saltstack版本不兼容,用Version: 0.17.5+ds-1版本的salt可解决该问题。

5 在进行初始化时报错

Ceph Calamari安装问题汇总_第1张图片

该问题也是由于Salt版本的问题造成。

你可能感兴趣的:(ceph)