Whamcloud - gitweb
LU-3985 tests: Archive access must be done from an agent 76/8076/2
authorJames Nunez <james.a.nunez@intel.com>
Mon, 28 Oct 2013 02:50:01 +0000 (20:50 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 2 Nov 2013 01:19:58 +0000 (01:19 +0000)
In sanity-hsm, all access to the archive backend must be
done from an agent. Tests 111a and 111b call the
copytool_remove_backend routine that calls find on the
archive backend. With this patch, the call to find is
done on the agent with a call to "do_facet $SINGLEAGT".

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I537fe5e019861908612140b3c96ea2018a738e46
Reviewed-on: http://review.whamcloud.com/8076
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Aurelien Degremont <aurelien.degremont@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

index a9ed931..ee25dcb 100644 (file)
@@ -178,7 +178,7 @@ copytool_suspend() {
 copytool_remove_backend() {
        local fid=$1
-       local be=$(find $HSM_ARCHIVE -name $fid)
+       local be=$(do_facet $SINGLEAGT find $HSM_ARCHIVE -name $fid)
        echo "Remove from backend: $fid = $be"
        do_facet $SINGLEAGT rm -f $be