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

Failure to get Server monitoring data when NDN cache is disabled.

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-10.1
    • rhel-9.5
    • 389-ds-base
    • 389-ds-base-3.1.3-4.el10
    • No
    • Moderate
    • ZStream
    • rhel-idm-ds
    • Bug Fix
    • Hide
      .The Directory Server monitoring information is available as expected when NDN cache is disabled

      Before this update, when the Normalized DN (NDN) cache was disabled, the `dsconf __<instance_name>__ monitor dbmon` command failed with an error because of improper handling of the backend get-tree command failures. This release adds a rollback functionality to prevent orphaned backends when the tree creation fails during a backend creation. As a result, Directory Server monitoring information is returned as expected.
      Show
      .The Directory Server monitoring information is available as expected when NDN cache is disabled Before this update, when the Normalized DN (NDN) cache was disabled, the `dsconf __<instance_name>__ monitor dbmon` command failed with an error because of improper handling of the backend get-tree command failures. This release adds a rollback functionality to prevent orphaned backends when the tree creation fails during a backend creation. As a result, Directory Server monitoring information is returned as expected.
    • Done
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Description of a problem

      When the Normalized DN cache is disabled, the command "dsconf <INSTANCE> monitor dbmon" fails:
      # dsconf case_03995221 monitor dbmon
      Error: list index out of range
      #

      Version-Release number of the selected component

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

      389-ds-base-2.5.2-2.el9_5.x86_64
      cockpit-389-ds-2.5.2-3.module+el9dsrv+22360+4d1b4fe0.noarch

      Browser (if applicable)

       

      Steps to reproduce

      1. Disable the NDN cache:
      dsconf <INSTANCE> config replace nsslapd-ndn-cache-enabled=off
      
      2. Restart the RHDS instance:
      dsctl <INSTANCE> restart
      
      3. Run the command:
      dsconf case_03995221 monitor dbmon
      Error: list index out of range 

      Actual results

      The command is failing.

      Expected results

      Working command.

      Additional information

      # dsconf --verbose <INSTANCE> monitor dbmon
      DEBUG: The 389 Directory Server Configuration Tool
      ...
      DEBUG: list filter = (&(objectclass=nsBackendInstance))
      DEBUG: cn=monitor,cn=ldbm database,cn=plugins,cn=config get_attrs_vals_utf8(['dbcachehits', 'dbcachetries', 'dbcachehitratio', 'dbcachepagein', 'dbcachepageout', 'dbcacheroevict', 'dbcacherwevict', 'normalizeddncachetries', 'normalizeddncachehits', 'normalizeddncachemisses', 'normalizeddncachehitratio', 'normalizeddncacheevictions', 'currentnormalizeddncachesize', 'maxnormalizeddncachesize', 'currentnormalizeddncachecount', 'normalizeddncachethreadsize', 'normalizeddncachethreadslots'])
      DEBUG: cn=database,cn=monitor,cn=ldbm database,cn=plugins,cn=config get_attrs_vals_utf8(['nsslapd-db-abort-rate', 'nsslapd-db-active-txns', 'nsslapd-db-cache-hit', 'nsslapd-db-cache-try', 'nsslapd-db-cache-region-wait-rate', 'nsslapd-db-cache-size-bytes', 'nsslapd-db-clean-pages', 'nsslapd-db-commit-rate', 'nsslapd-db-deadlock-rate', 'nsslapd-db-dirty-pages', 'nsslapd-db-hash-buckets', 'nsslapd-db-hash-elements-examine-rate', 'nsslapd-db-hash-search-rate', 'nsslapd-db-lock-conflicts', 'nsslapd-db-lock-region-wait-rate', 'nsslapd-db-lock-request-rate', 'nsslapd-db-lockers', 'nsslapd-db-configured-locks', 'nsslapd-db-current-locks', 'nsslapd-db-max-locks', 'nsslapd-db-current-lock-objects', 'nsslapd-db-max-lock-objects', 'nsslapd-db-log-bytes-since-checkpoint', 'nsslapd-db-log-region-wait-rate', 'nsslapd-db-log-write-rate', 'nsslapd-db-longest-chain-length', 'nsslapd-db-page-create-rate', 'nsslapd-db-page-read-rate', 'nsslapd-db-page-ro-evict-rate', 'nsslapd-db-page-rw-evict-rate', 'nsslapd-db-page-trickle-rate', 'nsslapd-db-page-write-rate', 'nsslapd-db-pages-in-use', 'nsslapd-db-txn-region-wait-rate', 'nsslapd-db-mp-pagesize'])
      DEBUG: list index out of range
      Traceback (most recent call last):
        File "/usr/sbin/dsconf", line 132, in <module>
          result = args.func(inst, None, log, args)
        File "/usr/lib/python3.9/site-packages/lib389/cli_conf/monitor.py", line 149, in db_monitor
          ndnratio = ldbm_mon['normalizeddncachehitratio'][0]
      IndexError: list index out of range
      ERROR: Error: list index out of range
      #

              spichugi@redhat.com Simon Pichugin
              rhn-support-tmihinto Têko Mihinto
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: