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

hostlist_expand is wrongly used to expand simple number range

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      hostlist_expand is defined to expand hostlist, e.g. trevis-72vm[2-5,7,9]. But we wrongly use it to expand simple number range (ost indices) in test-framework.sh, e.g. [2-5,7,9].
      For example, if you run the following test case in sanity.sh,

      test_888() {
             echo "test hostlist_expand"
             hostlist_expand "[3-7,9,10]"
             hostlist_expand "trevis-73vm[3-7,9,10]"
      }
      run_test 888 "test hostlist_expand"
      

      you will see the output is

      == sanity test 888: test hostlist_expand == 16:34:03 (1493109243)
      test hostlist_expand
      4
      trevis-73vm3 trevis-73vm4 trevis-73vm5 trevis-73vm6 trevis-73vm7 trevis-73vm9 trevis-73vm10
      

      I will fix it.

      Attachments

        Activity

          People

            emoly.liu Emoly Liu
            emoly.liu Emoly Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: