Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-23466

Grafana cannot use data sources from PostgreSQL database

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-8.10
    • rhel-8.10
    • grafana
    • None
    • grafana-9.2.10-15.el8
    • None
    • None
    • sst_pt_pcp
    • ssg_platform_tools
    • 1
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      oVirt has integration with Grafana using PostgreSQL database, but selinux rules prevent grafana server to connec to to TCP port 5432, where PostgreSQL database is exposed.
      It would be great to have selinux boolean grafana_can_tcp_connect_postgresql_port (similar to mysql grafana_can_tcp_connect_mysqld_port), which would allow grafana to connect to PostgreSQL TCP port.

      Please provide the package NVR for which bug is seen:

      grafana-9.2.10-14

      How reproducible:

      Always

      Steps to reproduce

      1. Add PostgreSQL data source to Grafana which connect to PostgreSQL database using TCP
      2. Test data source connection

      Expected results

      When selinux boolean grafana_can_tcp_connect_postgresql_port is enabled, then grafana-server process is able to connect to PostgreSQL database on port 5432

      Actual results

      selinux prevents grafana-server to connect to PostgreSQL 5432 port

            pcp-maint pcp-maint
            mperina1@redhat.com Martin Perina
            pcp-maint pcp-maint
            Jan Kurik Jan Kurik
            Jacob Valdez Jacob Valdez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: