IBM / ibm-spectrum-scale-bridge-for-grafana

This tool allows the IBM Storage Scale users to perform performance monitoring for IBM Storage Scale devices using third-party applications such as Grafana or Prometheus software.
Apache License 2.0
32 stars 19 forks source link

ZimonGrafana Bridge don't start on rhel8.8 with python3.8 installed #187

Closed ps20renar closed 8 months ago

ps20renar commented 8 months ago

Describe the bug We installed python3.8 on rhel8.8 and see that the systemctl start zimonGrafana don't start.

To Reproduce Steps to reproduce the behavior:

  1. install python3.8 with dbf install python38
  2. Start the systemctl unitfile zimonGrafana.service
  3. display the status with systemctl status zimonGrafana.service
  4. See error on journalctl -e

Expected behavior Active zimonGrafana.service

Screenshots Feb 29 22:28:38 sap00l11.lan.huk-coburg.de zimonGrafana[2802356]: 2024-02-29 22:28 - MainThread - INFO - IBM Storage Scale bridge for Grafana - Version: 7.1.2 Feb 29 22:28:38 sap00l11.lan.huk-coburg.de zimonGrafana[2802356]: 2024-02-29 22:28 - MainThread - ERROR - Failed to initialize connection to pmcollector: name 'requests' is not defined, quitting

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Helene commented 8 months ago

Hi @ps20renar, thanks for reporting this issue. I was able to recreate it on my system.

The error caused through the missing python requests packages.

It looks like cherrypy starting from python >= 3.8 not using requests packages anymore. But we use it in our code. In RHEL9 the requests packages are preinstalled per default, but in RHEL8 not.

As I already mentioned in chat just install python requests packages using pip and restart the grafana-bridge. The error shouldn't appear anymore.

# pip3.8 install requests