Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-7312

sanity-hsm: $? verification is not valid with set -e

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Lustre 2.7.0
    • Fix Version/s: None
    • Labels:
    • Severity:
      3
    • Project:
      HSM
    • Rank (Obsolete):
      9223372036854775807

      Description

      The part of the fix for LU-5622

      while (( SECONDS < end_wait )); do
                      sleep 2
                      do_nodesv $agents "pgrep -x $HSMTOOL_BASE"
                      if [ $? -ne 0 ]; then
                              echo "Copytool is stopped on $agents"
                              break
                      fi
                      echo "Copytool still running on $agents"
              done
              if do_nodesv $agents "pgrep -x $HSMTOOL_BASE"; then
                      error "Copytool failed to stop in ${TIMEOUT}s ..."
              else
                      echo "Copytool has stopped in " \
                           "$((TIMEOUT - (end_wait - SECONDS)))s."
              fi
      

      causes failure in sanity-hsm.
      sanity-hsm.sh has set -e option, so checks of return code can cause an error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bfaccini Bruno Faccini (Inactive)
                Reporter:
                529964 Bhagyesh Dudhediya (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: