OneSourceConsult / ZabbixCeilometer-Proxy

Integration between OpenStack's Ceilometer resources and a Zabbix monitoring system
Apache License 2.0
8 stars 24 forks source link

ZCP terminated and ConnectionClosed #8

Closed nycterent closed 7 years ago

nycterent commented 7 years ago

I've applied changes from https://github.com/OneSourceConsult/ZabbixCeilometer-Proxy/pull/6

I can see data in zabbix (2.2), openstack is mitaka, but after running some time proxy crashes with:

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/ZabbixCeilometer-Proxy/nova_handler.py", line 43, in nova_amq
    password=self.rabbit_pass)))
  File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 339, in __init__
    self._process_io_for_connection_setup()
  File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 374, in _process_io_for_connection_setup
    self._open_error_result.is_ready)
  File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 395, in _flush_output
    raise exceptions.ConnectionClosed()
ConnectionClosed

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/ZabbixCeilometer-Proxy/project_handler.py", line 37, in keystone_amq
    password=self.rabbit_pass)))
  File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 339, in __init__
    self._process_io_for_connection_setup()
  File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 374, in _process_io_for_connection_setup
    self._open_error_result.is_ready)
  File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 395, in _flush_output
    raise exceptions.ConnectionClosed()
ConnectionClosed

ZCP terminated
nycterent commented 7 years ago

seems like the issue was due to non standard port of rabbitmq

sbrenna commented 7 years ago

i've same issue with Mitaka fresh installed with Mirantis Fuel. Don't seems a "non standard port" for RabbitMQ.

vikarna commented 5 years ago

Facing same issue on Mitaka and zabbix 3.0. Changed the port to 5673 in nova and project handler.

Creating Template and items Nova listener started Project Listener started Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.kwargs) File "/home/vikarna/ZabbixCeilometer-Proxy-master/ZabbixCeilometer-Proxy-master/project_handler.py", line 37, in keystone_amq password=self.rabbit_pass))) File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 363, in init__ self._impl = self._create_connection(parameters, _impl_class) File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 455, in _create_connection raise self._reap_last_connection_workflow_error(error) AMQPConnectionError

Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.kwargs) File "/home/vikarna/ZabbixCeilometer-Proxy-master/ZabbixCeilometer-Proxy-master/nova_handler.py", line 43, in nova_amq password=self.rabbit_pass))) File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 363, in init__ self._impl = self._create_connection(parameters, _impl_class) File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 455, in _create_connection raise self._reap_last_connection_workflow_error(error) AMQPConnectionError

ZCP terminated