Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12463

RRDTool 1.7.0 permission bug when running as non-root



    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 25.0.0
    • Fix Version/s: None
    • Component/s: Build / Packaging
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      CentOS 8 with RRDTool 1.7.0
    • Sprint:
      Horizon 2019 - December 11th


      We have updated our installation documentation for Horizon 25 to use CentOS 8. We have in our package dependencies to RRDTool which is automatically installed when you run

      {dnf,yum} install opennms

      CentOS 8 provides RRDTool 1.7.0 which has a bug described here: issue: https://github.com/oetiker/rrdtool-1.x/issues/794.

      When you use RRDTool you will see arbitrary directory/file permissions when new RRD files are created. You won't notice this issue when you run OpenNMS as root and is only notable when running with non-root. When you create a lot of new nodes and RRDTool creates a lot of RRD directories and files, you might also see permission issues when the web application creates temp files at the same time. This can cause compile exceptions when you try to access JSP pages or weird permissions in the Karaf temp directory, followed by No output file exceptions in the Web UI.

      You can reproduce this behavior when you install OpenNMS on CentOS 8 with the AppStream provided RRDtool in version 1.7.0. Ensure your RRD directory is empty and import a sample requisition with 1024 nodes. With RRDTool you will see these arbitrary file- and directory permissions. When you use JRobin you have normal behavior.

      The attached text files show the directory structure with permissions with RRDTool and JRobin using tree -pL 2.


        1. 1024.xml
          354 kB
        2. Screenshot 2019-12-31 at 11.32.01.png
          Screenshot 2019-12-31 at 11.32.01.png
          90 kB
        3. test-jrobin.txt
          165 kB
        4. test-rrdtool.txt
          45 kB
        5. test-rrdtool-1.7.2.txt
          37 kB



            ranger Benjamin Reed
            indigo Ronny Trommer
            0 Vote for this issue
            2 Start watching this issue