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

mdb database statistics don't work

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: Generate New Ti...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-10.1
    • None
    • 389-ds-base
    • 389-ds-base-3.1.3-2.el10
    • No
    • Moderate
    • rhel-idm-ds
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      .LMDB monitoring statistics are now displayed correctly

      Before this update, when you tried to retrieve the monitoring statistics on an instance with Lightning Memory-Mapped Database Manager (LMDB) database type, a key error occurred. With this update, Directory Server ensures backend and monitor keys match the configured database implementation. As a result, global monitoring statistics are displayed correctly.
      Show
      .LMDB monitoring statistics are now displayed correctly Before this update, when you tried to retrieve the monitoring statistics on an instance with Lightning Memory-Mapped Database Manager (LMDB) database type, a key error occurred. With this update, Directory Server ensures backend and monitor keys match the configured database implementation. As a result, global monitoring statistics are displayed correctly.
    • Done
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Description of a problem

      Monitoring info on database suffix on instance with mdb database does not work.

      Version-Release number of the selected component

      rpm -q 389-ds-base cockpit-389-ds

      389-ds-base-3.0.4-3.el10.x86_64
      cockpit-389-ds-3.0.4-6.el10dsrv.noarch

      Browser (if applicable)

      Firefox

      Steps to reproduce

      1. Create instance with mdb database
      2. Open WebUI, go to Monitoring tab
      3. Go to Database -> dc=example, dc=com
      

      Actual results

      Reports "Loading Suffix Monitor Information ..." and shows Ooops!
      
      Console output:
      Uncaught TypeError: n.attrs.dncachehitratio is undefined    
      refreshSuffixCache ...:9090/cockpit/@localhost/389-console/index.js:634    
      l ...:9090/cockpit/@localhost/389-console/index.js:13    
      c ...:9090/cockpit/@localhost/389-console/index.js:13    
      i ...:9090/cockpit/@localhost/389-console/index.js:13    
      setTimeout handler*s ...:9090/cockpit/@localhost/389-console/index.js:13    
      c ...:9090/cockpit/@localhost/389-console/index.js:13    
      d ...:9090/cockpit/@localhost/389-console/index.js:13    
      resolve ...:9090/cockpit/@localhost/389-console/index.js:13    
      spawn ...:9090/cockpit/@localhost/389-console/index.js:14    
      TM ...:9090/cockpit/@localhost/389-console/index.js:9    
      value ...:9090/cockpit/@localhost/389-console/index.js:9    
      h ...:9090/cockpit/@localhost/389-console/index.js:13    
      m ...:9090/cockpit/@localhost/389-console/index.js:13    
      h ...:9090/cockpit/@localhost/389-console/index.js:12    
      dispatch_data ...:9090/cockpit/@localhost/389-console/index.js:12    
      pq ...:9090/cockpit/@localhost/389-console/index.js:9index.js:634:38379
      CMD: refreshSuffixCache: Get suffix monitor ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-localhost.socket monitor backend dc=example,dc=com

      Expected results

      Should show monitoring info

      Additional information

      Error also when trying to display cache statistics in CLI:
      # dsconf localhost monitor dbmon
      Error: list index out of range
      
      # dsconf localhost monitor backend dc=example,dc=com
      dn: cn=monitor,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
      readonly: 0
      entrycachehits: 308
      entrycachetries: 323
      entrycachehitratio: 95
      currententrycachesize: 49691
      maxentrycachesize: 512000
      currententrycachecount: 14
      maxentrycachecount: -1
      ... (total 321 lines of output)
      
      
      When clicking only "Database" in Monitoring tab without going into the suffix, it shows "Cache Hit Ratio NaN%" and all the values are empty.

       

        1. screenshot-1.png
          297 kB
          Lenka Doudova
        2. screenshot-2.png
          91 kB
          Lenka Doudova

              idm-ds-dev-bugs IdM DS Dev
              lryznaro@redhat.com Lenka Doudova
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: