ntt-sic / masakari

[UNMAINTAINED]
https://wiki.openstack.org/wiki/Masakari
Apache License 2.0
40 stars 24 forks source link

No logs being generated in case of a masakari service failure #35

Open MoizArif opened 8 years ago

MoizArif commented 8 years ago

While setting up and running Masakari for the first time. Instance monitor failed to start without generating any log files. Running python files for the particular service directly from the code throws out errors on console. There should be a way where such errors are reported directly in instancemonitor.log file even if the service is failing to start.

service masakari-instancemonitor start Starting masakari-instancemonitor: *

service masakari-instancemonitor status * masakari-instancemonitor is not running

python /opt/masakari/instancemonitor/masakari_instancemonitor.py

Traceback (most recent call last):
  File "/opt/masakari/instancemonitor/masakari_instancemonitor.py", line 29, in <module>
    import libvirt_eventfilter as evf
  File "/opt/masakari/instancemonitor/libvirt_eventfilter.py", line 29, in <module>
    from libvirt_callback import *
  File "/opt/masakari/instancemonitor/libvirt_callback.py", line 223, in <module>
    from httplib2 import Http
ImportError: No module named httplib2

pip install httplib2 service masakari-instancemonitor start

Result: SUCCESS

* masakari-instancemonitor is running
sampathP commented 8 years ago

@MoizArif thank you. I think we have to fix, (1) loging (2) change the rule file to install requirment.txt before setup