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

obdfilter-survey cannot find Lustre version number

    XMLWordPrintable

Details

    • 9223372036854775807

    Description

      obdfilter-survey looks for the Lustre version to see if the variable rszmax should be changed

       253 check_record_size() {
       254         [ $(version_code $(get_lustre_version)) -lt $(version_code 2.3.61) ] &&
       255                 rszmax=1024
      ...
      

      In logs for obdfilter survey, we see an error when trying to check the Lustre version. For example, in the suite_stdout log for https://testing.hpdd.intel.com/test_sets/586ba2cc-3bb7-11e7-b3f6-5254006e85c2, we see

      07:44:33:/usr/bin/obdfilter-survey: line 242: ( << 16) | ( << 8) | : syntax error: operand expected (error token is "<< 16) | ( << 8) | ")
      07:44:33:/usr/bin/obdfilter-survey: line 254: [: -lt: unary operator expected
      

      We get the version with

       245 get_lustre_version() {
       246         local host=${1:-${unique_hosts[0]}}
       247         remote_shell $host $lctl get_param -n version |
       248                 awk '/^lustre:/ {print $2}'
       249 }
      

      The problem is that the string "lustre" is no longer returned with the lctl call

      # lctl get_param -n version
      2.9.56_70_g3dad616
      

      The call to 'lctl get_param' should be not to pipe the results to awk.

      Attachments

        Activity

          People

            pichong Gregoire Pichon
            jamesanunez James Nunez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: