[LU-7110] sanity-hsm.sh can erase all files on filesystem Created: 07/Sep/15  Updated: 21/Apr/16  Resolved: 21/Apr/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Critical
Reporter: parinay v kondekar (Inactive) Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Epic: test
Rank (Obsolete): 9223372036854775807

 Description   
copytool_setup() {
        local facet=${1:-$SINGLEAGT}
        local lustre_mntpnt=${2:-$MOUNT}
        local arc_id=$3
        local hsm_root=${4:-$(copytool_device $facet)}
        local agent=$(facet_active_host $facet)

        if [[ -z "$arc_id" ]] &&
                do_facet $facet "pkill -CONT -x $HSMTOOL_BASE"; then
                        echo "Wakeup copytool $facet on $agent"
                        return 0
        fi

        if $HSM_ARCHIVE_PURGE; then
                echo "Purging archive on $agent"
                do_facet $facet "rm -rf $hsm_root/*"
        fi

If the $hsm_root variable is not defined, rm -rf /* command will be executed.

Easy way to reproduce (please, be careful!!! files on mounted shares will be deleted as well as on cluster node!)

SINGLEAGT=client sh sanity-hsm.sh



 Comments   
Comment by Gerrit Updater [ 07/Sep/15 ]

Parinay Kondekar (parinay.kondekar@seagate.com) uploaded a new patch: http://review.whamcloud.com/16291
Subject: LU-7110 sanity-hsm.sh can erase all files on filesystem
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 817c648fceb4903904d64e0751602eae4ee1f94d

Comment by parinay v kondekar (Inactive) [ 07/Sep/15 ]

http://review.whamcloud.com/16291

Comment by Gerrit Updater [ 21/Apr/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16291/
Subject: LU-7110 tests: sanity-hsm.sh can erase all files on filesystem
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5764a8ce591e7f62cad2ee95b7041c115a1cd0f6

Comment by Joseph Gmitter (Inactive) [ 21/Apr/16 ]

landed to master for 2.9.0

Generated at Sat Feb 10 02:06:04 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.