Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-8015

RH436-79: Chapter 13 "lab hacluster grade" script always fails auto_tie_breaker check

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • RH436 - RHEL 8.3 0
    • RH436 - RHEL 7.1 0
    • RH436
    • None
    • ROLE

    • en-US (English)

      URL:
      Reporter RHNID:
      Section: -
      Language: en-US (English)
      Workaround: I have done a modification in this script(Line number -279.. 283..286) and it is working fine now .

      TIEBREAK=$(ssh -o stricthostkeychecking=no $NODE " grep -E "auto_tie_breaker:$" /etc/corosync/corosync.conf | awk -F': ' '

      {print \$2}")

      TIEBREAK_NODE=$(ssh -o stricthostkeychecking=no $NODE " grep -E "auto_tie_breaker_node:$" /etc/corosync/corosync.conf | awk -F': ' '{print $2}

      ")

      if [[ "$TIEBREAK" == "1" && "$TIEBREK_NODE" == "lowest" ]]; then
      print_PASS
      else
      print_FAIL

      fi

      done

      Description: In chapter 13 .2 "Comprehensive Review" Step 2.b, students are requested to add "auto_tie_breaker" option in /etc/corosync/corosync.conf.
      Due to a bug in the "lab hacluster grade" script , the result always shows as "FAIL"

      I have done a modification in this script(Line number -279.. 283..286) and it is working fine now .

      TIEBREAK=$(ssh -o stricthostkeychecking=no $NODE " grep -E "auto_tie_breaker:$" /etc/corosync/corosync.conf | awk -F': ' '

      {print \$2}")

      TIEBREAK_NODE=$(ssh -o stricthostkeychecking=no $NODE " grep -E "auto_tie_breaker_node:$" /etc/corosync/corosync.conf | awk -F': ' '{print $2}

      ")

      if [[ "$TIEBREAK" == "1" && "$TIEBREK_NODE" == "lowest" ]]; then
      print_PASS
      else
      print_FAIL

      fi

      done

              rht-psweany Philip Sweany (Inactive)
              bjoseph Biju Joseph (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: