OneSourceConsult / ZabbixCeilometer-Proxy

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

Keystone URL not formatted properly for requests when retrieving domains initially #9

Open b1tsh1ft3r opened 5 years ago

b1tsh1ft3r commented 5 years ago

Appears that keystoneauth is working, however when running zcp-polling for the first time to list the domains i receive the following error.

2019-04-22 11:00:06,190 8325 /usr/lib/python2.7/site-packages/zcp/cmd/proxy.py [line:117] INFO - -------------- Starting Zabbix Ceilometer Proxy -------------- /usr/lib/python2.7/site-packages/keystoneauth1/adapter.py:224: UserWarning: Using keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1. warnings.warn('Using keystoneclient sessions has been deprecated. ' Traceback (most recent call last): File "/usr/bin/zcp-polling", line 16, in sys.exit(main()) File "/usr/lib/python2.7/site-packages/zcp/cmd/proxy.py", line 118, in main init_zcp(processes) File "/usr/lib/python2.7/site-packages/zcp/cmd/proxy.py", line 82, in init_zcp zabbix_hdl.first_run() File "/usr/lib/python2.7/site-packages/zcp/zabbix_handler.py", line 144, in first_run self.proxies = self.check_proxies() File "/usr/lib/python2.7/site-packages/zcp/zabbix_handler.py", line 193, in check_proxies domains = [domain for domain in self.ks_client.get_domains()] File "/usr/lib/python2.7/site-packages/zcp/keystone_client.py", line 45, in with_logging raise e keystoneauth1.exceptions.http.NotFound: (http://192.168.8.210:35357/domains): The resource could not be found. (HTTP 404)

The url keystoneauth1 is using is incorrect as it should be using ip:port/v3/domains which is a valid url. They proxy.conf for zcp-polling however is reflecting the use of ip:port/domains however.