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

test-framework does not cleanup the env for failed tests

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.8.0
    • Lustre 2.5.3, Lustre 2.8.0
    • None
    • 3
    • Test Infrastructure
    • 17420

    Description

      if a test fails with an error, we just exit:

      error() {
      	error_noexit "$@"
      	exit 1
      }
      

      and therefore the end of run_one() does not execute, what means we do not cleanup the env settings (e.g. fail_loc) before running the next test.

      Attachments

        Issue Links

          Activity

            [LU-6225] test-framework does not cleanup the env for failed tests

            Landed for 2.8

            jgmitter Joseph Gmitter (Inactive) added a comment - Landed for 2.8

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13692/
            Subject: LU-6225 test: test-framework does not cleanup for failed tests
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: dc3a6a13d2cec51ca5d8ab1c870ce4cee3d80494

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13692/ Subject: LU-6225 test: test-framework does not cleanup for failed tests Project: fs/lustre-release Branch: master Current Patch Set: Commit: dc3a6a13d2cec51ca5d8ab1c870ce4cee3d80494
            standan Saurabh Tandan (Inactive) added a comment - - edited

            Encountered same issue for tag 2.7.66 for FULL- EL7.1 Server/EL6.7 Client , master , build# 3314
            https://testing.hpdd.intel.com/test_sets/924b1b78-ca91-11e5-9609-5254006e85c2

            Another failure for master : Tag 2.7.66 FULL - EL7.1 Server/SLES11 SP3 Client, build# 3314
            https://testing.hpdd.intel.com/test_sets/b0f05d56-ca7b-11e5-9609-5254006e85c2

            standan Saurabh Tandan (Inactive) added a comment - - edited Encountered same issue for tag 2.7.66 for FULL- EL7.1 Server/EL6.7 Client , master , build# 3314 https://testing.hpdd.intel.com/test_sets/924b1b78-ca91-11e5-9609-5254006e85c2 Another failure for master : Tag 2.7.66 FULL - EL7.1 Server/SLES11 SP3 Client, build# 3314 https://testing.hpdd.intel.com/test_sets/b0f05d56-ca7b-11e5-9609-5254006e85c2
            standan Saurabh Tandan (Inactive) added a comment - - edited

            Another Instance for interop: EL7 Server/2.7.1 Client
            Server: master, build# 3303, RHEL 7
            Client: 2.7.1, b2_7_fe/34
            https://testing.hpdd.intel.com/test_sets/7a715f8a-bac4-11e5-9137-5254006e85c2
            https://testing.hpdd.intel.com/test_sets/7a2d8fe4-bac4-11e5-9137-5254006e85c2

            standan Saurabh Tandan (Inactive) added a comment - - edited Another Instance for interop: EL7 Server/2.7.1 Client Server: master, build# 3303, RHEL 7 Client: 2.7.1, b2_7_fe/34 https://testing.hpdd.intel.com/test_sets/7a715f8a-bac4-11e5-9137-5254006e85c2 https://testing.hpdd.intel.com/test_sets/7a2d8fe4-bac4-11e5-9137-5254006e85c2
            standan Saurabh Tandan (Inactive) added a comment - Another instance found for : Server: Master , Build# 3276 Client: b2_7_fe/34 https://testing.hpdd.intel.com/test_sets/1c4ee028-a5a5-11e5-a14a-5254006e85c2 https://testing.hpdd.intel.com/test_sets/1c77ef4a-a5a5-11e5-a14a-5254006e85c2
            standan Saurabh Tandan (Inactive) added a comment - Server: Master, Build# 3266, Tag 2.7.64 , RHEL 7 Client: 2.5.5, b2_5_fe/62 https://testing.hpdd.intel.com/test_sets/0d665f82-a000-11e5-a33d-5254006e85c2 https://testing.hpdd.intel.com/test_sets/0d289292-a000-11e5-a33d-5254006e85c2
            sarah Sarah Liu added a comment -

            Hit in interop testing
            https://testing.hpdd.intel.com/test_sessions/2b6be11e-9033-11e5-a833-5254006e85c2
            server: lustre-master/3251 EL7
            client 2.7.0

            sarah Sarah Liu added a comment - Hit in interop testing https://testing.hpdd.intel.com/test_sessions/2b6be11e-9033-11e5-a833-5254006e85c2 server: lustre-master/3251 EL7 client 2.7.0
            gaurav_mahajan gaurav mahajan (Inactive) added a comment - - edited

            The tests which call error_noexit() will return with a value (non zero value) to run_one(). Then run_one() will call error() in case of non zero return value from the test which will again call error_noexit().

            If we include reset_fail_loc to error_noexit () then it becomes kind of doing the things which are already done as error() will ultimately get called incase of non zero return value (ie on error)

            In case of error_and_remount(), agree that it calls error_no_exit() and exits from there. I guess modification is needed for test framework to handle this looping of error() and error_no_exit().

            As of now, I will accept the comments and move reset_fail_loc to error_no_exit(). But modifications are needed for test_framework.sh

            Please leave your comments on this.

            gaurav_mahajan gaurav mahajan (Inactive) added a comment - - edited The tests which call error_noexit() will return with a value (non zero value) to run_one(). Then run_one() will call error() in case of non zero return value from the test which will again call error_noexit(). If we include reset_fail_loc to error_noexit () then it becomes kind of doing the things which are already done as error() will ultimately get called incase of non zero return value (ie on error) In case of error_and_remount(), agree that it calls error_no_exit() and exits from there. I guess modification is needed for test framework to handle this looping of error() and error_no_exit(). As of now, I will accept the comments and move reset_fail_loc to error_no_exit(). But modifications are needed for test_framework.sh Please leave your comments on this.

            Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: http://review.whamcloud.com/13692
            Subject: LU-6225 test: test-framework does not cleanup for failed tests
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 00afee36ddfb1fb7bb4b58ca82b0fef41f7f4527

            gerrit Gerrit Updater added a comment - Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: http://review.whamcloud.com/13692 Subject: LU-6225 test: test-framework does not cleanup for failed tests Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 00afee36ddfb1fb7bb4b58ca82b0fef41f7f4527
            pjones Peter Jones added a comment -

            Does this issue only affect b2_5 or is it relevant for master too?

            pjones Peter Jones added a comment - Does this issue only affect b2_5 or is it relevant for master too?

            People

              wc-triage WC Triage
              gaurav_mahajan gaurav mahajan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: