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

lnetctl peer show of an unknown peer won't display any error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

      Here is a test code to integrate in the fix:

      test_630() { 
       reinit_dlc || return $? 
       local output 
       local rc 
       output=$($LNETCTL peer show --nid 1.1.1.1@tcp 2>&1)
       rc=$? 
       echo "rc=$rc output='$output'" 
       ((rc != 0)) || error "peer show of an unknown nid should fail" 
       echo "$output" | grep -q "cannot find peer" || 
               error "Bad or missing error message, got: '$output'" 
      } 
      run_test 630 "peer show: unknown peer should be reported" 

       

            cbordage Cyril Bordage
            cbordage Cyril Bordage
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: