Open liangtiansheng opened 5 years ago
问题1:按照作者介绍的步骤,出现第一个问题是“importError: No module named redis",需要安装python-redis包解决此问题。
问题2:通过pcs status查看,很明显ceilometer后三个服务无法启动, Master/Slave Set: redis-server-master [redis-server] Masters: [ controller1 ] Slaves: [ controller2 controller3 ] vip-redis (ocf::heartbeat:IPaddr2): Started controller1 Clone Set: ceilometer-central-clone [ceilometer-central] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-collector-clone [ceilometer-collector] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-api-clone [ceilometer-api] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-delay-clone [ceilometer-delay] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-alarm-evaluator-clone [ceilometer-alarm-evaluator] Stopped: [ controller1 controller2 controller3 ] Clone Set: ceilometer-alarm-notifier-clone [ceilometer-alarm-notifier] Stopped: [ controller1 controller2 controller3 ] Clone Set: ceilometer-notification-clone [ceilometer-notification] Stopped: [ controller1 controller2 controller3 ]
Failed Actions:
查看错误日志/var/log/ceilometer/central.log,如下 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination [req-b0479f95-61ba-482c-a322-b3913f230a70 admin - - - -] Error sending a heartbeat to coordination backend. 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination Traceback (most recent call last): 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/ceilometer/coordination.py", line 113, in heartbeat 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination self._coordinator.heartbeat() 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/tooz/drivers/redis.py", line 504, in heartbeat 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination value=self.STILL_ALIVE) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib64/python2.7/contextlib.py", line 35, in exit 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination self.gen.throw(type, value, traceback) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/tooz/drivers/redis.py", line 55, in _translate_failures 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination cause=e) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/tooz/coordination.py", line 669, in raise_with_cause 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination excutils.raise_with_cause(exc_cls, message, *args, *kwargs) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 143, in raise_with_cause 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination six.raise_from(exc_cls(message, args, kwargs), kwargs.get('cause')) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/six.py", line 692, in raise_from 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination raise value 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination ToozError: You can't write against a read only slave.** 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination 2019-05-10 16:37:22.074 31140 INFO ceilometer.coordination [req-b0479f95-61ba-482c-a322-b3913f230a70 admin - - - -] Coordination backend started successfully. 试过google上有提到的方法,还是不成功,以作者的经验,可有破解之法
问题1:按照作者介绍的步骤,出现第一个问题是“importError: No module named redis",需要安装python-redis包解决此问题。
问题2:通过pcs status查看,很明显ceilometer后三个服务无法启动, Master/Slave Set: redis-server-master [redis-server] Masters: [ controller1 ] Slaves: [ controller2 controller3 ] vip-redis (ocf::heartbeat:IPaddr2): Started controller1 Clone Set: ceilometer-central-clone [ceilometer-central] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-collector-clone [ceilometer-collector] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-api-clone [ceilometer-api] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-delay-clone [ceilometer-delay] Started: [ controller1 controller2 controller3 ] Clone Set: ceilometer-alarm-evaluator-clone [ceilometer-alarm-evaluator] Stopped: [ controller1 controller2 controller3 ] Clone Set: ceilometer-alarm-notifier-clone [ceilometer-alarm-notifier] Stopped: [ controller1 controller2 controller3 ] Clone Set: ceilometer-notification-clone [ceilometer-notification] Stopped: [ controller1 controller2 controller3 ]
Failed Actions:
查看错误日志/var/log/ceilometer/central.log,如下 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination [req-b0479f95-61ba-482c-a322-b3913f230a70 admin - - - -] Error sending a heartbeat to coordination backend. 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination Traceback (most recent call last): 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/ceilometer/coordination.py", line 113, in heartbeat 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination self._coordinator.heartbeat() 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/tooz/drivers/redis.py", line 504, in heartbeat 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination value=self.STILL_ALIVE) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib64/python2.7/contextlib.py", line 35, in exit 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination self.gen.throw(type, value, traceback) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/tooz/drivers/redis.py", line 55, in _translate_failures 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination cause=e) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/tooz/coordination.py", line 669, in raise_with_cause 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination excutils.raise_with_cause(exc_cls, message, *args, *kwargs) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 143, in raise_with_cause 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination six.raise_from(exc_cls(message, args, kwargs), kwargs.get('cause')) 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination File "/usr/lib/python2.7/site-packages/six.py", line 692, in raise_from 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination raise value 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination ToozError: You can't write against a read only slave.** 2019-05-10 16:37:21.070 31140 ERROR ceilometer.coordination 2019-05-10 16:37:22.074 31140 INFO ceilometer.coordination [req-b0479f95-61ba-482c-a322-b3913f230a70 admin - - - -] Coordination backend started successfully. 试过google上有提到的方法,还是不成功,以作者的经验,可有破解之法