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

db2: fix OCF_SUCESS name in db2_notify

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.5
    • rhel-9.4
    • resource-agents
    • resource-agents-4.10.0-58.el9
    • None
    • None
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 17
    • 21
    • 5
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • None

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

      db2_notify returns RC=1 due to misspelled variable name:

      <trace of monitor op>
      .
      .
      10:08:48: db2_validate:221: return 0
      10:08:49: main:899: db2_notify
      10:08:49: db2_notify:845: local node
      10:08:49: db2_notify:848: '[' pre = pre -a demote = start ']'
      10:08:49: db2_notify:849: return
      10:08:49: main:900: exit 1
      </trace of monitor op>

      # handle pre start notification
      # We record our first active log on the other nodes.
      # If two primaries come up after a crash they can safely determine who is
      # the outdated one.
      #
      db2_notify() {
          local node
          
          # only interested in pre-start
          [  $OCF_RESKEY_CRM_meta_notify_type = pre \
          -a $OCF_RESKEY_CRM_meta_notify_operation = start ] || return $OCF_SUCESS
      
          # gets FIRST_ACTIVE_LOG
          db2_get_cfg $dblist || return $?
      

      Please provide the package NVR for which bug is seen:

      resource-agents-4.9.0-40.el8_8.1

              rhn-engineering-oalbrigt Oyvind Albrigtsen
              rhn-support-pzimek1 Pepa Zimek
              Oyvind Albrigtsen Oyvind Albrigtsen
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: