canonical / prometheus-openstack-exporter

OpenStack exporter for the prometheus monitoring system
GNU General Public License v3.0
128 stars 113 forks source link

Version 0.1.9 are forking infinitely #123

Closed err404r closed 5 months ago

err404r commented 1 year ago

edge channel version revision 36(0.1.9) are forking infinitely. The process is forking until it reach the process limit and stop working with the following error:

snap.prometheus-openstack-exporter.prometheus-openstack-exporter.service - Service for snap application prometheus-openstack-exporter.prometheus-openstack-exporter
   Loaded: loaded (/etc/systemd/system/snap.prometheus-openstack-exporter.prometheus-openstack-exporter.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2023-03-13 10:57:00 UTC; 2 days ago                                                                         
 Main PID: 57286 (python3)                                                                                  
    Tasks: 12287 (limit: 12287)                                                                                                                                      
   CGroup: /system.slice/snap.prometheus-openstack-exporter.prometheus-openstack-exporter.service                                                                    
           └─57286 python3 /snap/prometheus-openstack-exporter/36/bin/prometheus-openstack-exporter /var/snap/prometheus-openstack-exporter/36/prometheus-openstack-e

Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]: ----------------------------------------
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]: Exception happened during processing of request from ('10.13
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]: Traceback (most recent call last):                         
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]:   File "/usr/lib/python3.8/socketserver.py", line 316, in _h
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]:     self.process_request(request, client_address)
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]:   File "/usr/lib/python3.8/socketserver.py", line 603, in pr
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]:     pid = os.fork()
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]: BlockingIOError: [Errno 11] Resource temporarily unavailable
Mar 15 13:13:52 juju-48267c-5-lxd-21 prometheus-openstack-exporter.prometheus-openstack-exporter[57286]: ----------------------------------------
Mar 15 13:15:22 juju-48267c-5-lxd-21 python3[57286]: Error getting tenants.list, continue with projects.list 
lathiat commented 5 months ago

The forking problem was fixed by #124, that fix itself had some problems that were then fixed by #130, #131 - so this can be closed.