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

snmpwalk rewrites last variable of PACEMAKER-PCS-V1-MIB with "No more variables left in this MIB View (It is past the end of the MIB tree)"

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.0
    • net-snmp
    • None
    • No
    • None
    • rhel-base-utils-core
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Retrieve info about pacemaker cluster with snmpwalk. The last variable of the PACEMAKER-PCS-V1-MIB::pcmkPcsV1Cluster is 2x in the output (PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0), first with its correct value, then with the message "No more variables left in this MIB View (It is past the end of the MIB tree)".

      When filtering by specified oid, the value with the "no more variables" message is returned, instead of the correct one.

      Please provide the package NVR for which the bug is seen:

      net-snmp-5.9.4-15.el10_0.x86_64
      (the issue is not on the machines where net-snmp-5.9.4-14.el10 is installed. Versions of pacemaker and pcs didn't change when the problem occurred)

      How reproducible is this bug?:

      Always

      Steps to reproduce 

      [root@hvirt-113 ~]# snmpwalk -v 2c -c public  localhost PACEMAKER-PCS-V1-MIB::pcmkPcsV1Cluster
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterName.0 = STRING: "STSRHTS6255"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterQuorate.0 = INTEGER: 1
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterNodesNum.0 = INTEGER: 2
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterNodesNames.0 = STRING: "hvirt-113"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterNodesNames.1 = STRING: "hvirt-141"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterCorosyncNodesOnlineNum.0 = INTEGER: 2
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterCorosyncNodesOnlineNames.0 = STRING: "hvirt-113"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterCorosyncNodesOnlineNames.1 = STRING: "hvirt-141"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterCorosyncNodesOfflineNum.0 = INTEGER: 0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterPcmkNodesOnlineNum.0 = INTEGER: 2
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterPcmkNodesOnlineNames.0 = STRING: "hvirt-113"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterPcmkNodesOnlineNames.1 = STRING: "hvirt-141"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterPcmkNodesStandbyNum.0 = INTEGER: 0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterPcmkNodesOfflineNum.0 = INTEGER: 0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterAllResourcesNum.0 = INTEGER: 3
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterAllResourcesIds.0 = STRING: "fence-hvirt-141"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterAllResourcesIds.1 = STRING: "fence-hvirt-113"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterAllResourcesIds.2 = STRING: "d1"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterRunningResourcesNum.0 = INTEGER: 3
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterRunningResourcesIds.0 = STRING: "fence-hvirt-141"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterRunningResourcesIds.1 = STRING: "fence-hvirt-113"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterRunningResourcesIds.2 = STRING: "d1"
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterStoppedResroucesNum.0 = INTEGER: 0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0 = INTEGER: 0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
      [root@hvirt-113 ~]# snmpwalk -v 2c -c public  localhost PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
      

      Expected results

      Message "No more variables left in this MIB View (It is past the end of the MIB tree)" is not assigned to the last variable of the PACEMAKER-PCS-V1-MIB.

      When filtering by oid, the correct value (INTEGER: 0) is returned.

      This is how the behavior looked in previous version:

      [root@virt-194 ~]# snmpwalk -v 2c -c public  localhost PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0 = INTEGER: 0

      Actual results

      [root@hvirt-113 ~]# snmpwalk -v 2c -c public  localhost PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0
      PACEMAKER-PCS-V1-MIB::pcmkPcsV1ClusterFailedResourcesNum.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

        1. snmpd-15.conf
          19 kB
        2. snmpd-14.conf
          19 kB

              jridky Josef Řídký
              mmazoure Michal Mazourek
              Josef Řídký Josef Řídký
              RHEL SST CS base utils QE Bot RHEL SST CS base utils QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: