• Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-8.10.z
    • rhel-8.8.0
    • resource-agents
    • None
    • resource-agents-4.9.0-54.el8_10.1
    • None
    • None
    • OtherQA
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 5
    • QE ack, 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

            [RHEL-32828] db2: fix OCF_SUCESS name in db2_notify

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (resource-agents bug fix update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2024:4225

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (resource-agents bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:4225

            Pepa Zimek added a comment - - edited

            Proposed fix:

            diff --git a/heartbeat/db2 b/heartbeat/db2
            index 95447ab6..1cd66f15 100755
            --- a/heartbeat/db2
            +++ b/heartbeat/db2
            @@ -848,7 +848,7 @@ db2_notify() {
             
                 # only interested in pre-start
                 [  $OCF_RESKEY_CRM_meta_notify_type = pre \
            -    -a $OCF_RESKEY_CRM_meta_notify_operation = start ] || return $OCF_SUCESS
            +    -a $OCF_RESKEY_CRM_meta_notify_operation = start ] || return $OCF_SUCCESS
             
                 # gets FIRST_ACTIVE_LOG
                 db2_get_cfg $dblist || return $?
            

            Pepa Zimek added a comment - - edited Proposed fix: diff --git a/heartbeat/db2 b/heartbeat/db2 index 95447ab6..1cd66f15 100755 --- a/heartbeat/db2 +++ b/heartbeat/db2 @@ -848,7 +848,7 @@ db2_notify() { # only interested in pre-start [ $OCF_RESKEY_CRM_meta_notify_type = pre \ - -a $OCF_RESKEY_CRM_meta_notify_operation = start ] || return $OCF_SUCESS + -a $OCF_RESKEY_CRM_meta_notify_operation = start ] || return $OCF_SUCCESS # gets FIRST_ACTIVE_LOG db2_get_cfg $dblist || return $?

              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:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: