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

CLIENTONLY testing no longer works

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.9.0
    • Lustre 2.1.0
    • None
    • CLIENTONLY=true PDSH="pdsh -R ssh -S -w" mds_HOST=mds1 mgs_HOST=mds2 ost1_HOST=oss1 ost2_HOST=oss2 OSTDEV1="/dev/vdb" OSTDEV2="/dev/vdb" bash /usr/lib64/lustre/tests/sanity.sh
    • 3
    • 10549

    Description

      I'm trying to run "CLIENTONLY" testing on 2.1. CLIENTONLY testing is basically a test mode where test-framework.sh is not allowed to muck with the servers, and therefore has to skip much of the server configuration portion of the testing. IIRC it assumes that lustre is already mounted on the client doing the testing.

      This seems to have gotten broken with 165400bbb8161b36764bd51056293375101329a6 back at the end of 2009.

      I have (naïvely) applied the following patch to at least get past the blocking nature of this bug:

      --- a/lustre/tests/test-framework.sh
      +++ b/lustre/tests/test-framework.sh
      @@ -2436,7 +2436,9 @@ check_and_setup_lustre() {
           fi
       
           init_gss
      -    set_flavor_all $SEC
      +    if [ -z "$CLIENTONLY" ]; then
      +        set_flavor_all $SEC
      +    fi
       
           if [ "$ONLY" == "setup" ]; then
               exit 0
      

      I don't know if this really is an acceptable solution but I can't imagine why it would be acceptable to try to set/test the GSS flavour when the particular (CLIENTONLY) testing mode is supposed to keep it's hands off of the servers and just use the client mount as it is anyway.

      Probably before landing such a patch, somebody would need to investigate the entire nature of set_flavor_all() to be sure this is the correct fix.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              brian Brian Murrell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: