Whamcloud - gitweb
EX-4158 lipe: keep cache data when PCC is stopped by lpcc service
authorLei Feng <flei@whamcloud.com>
Thu, 28 Oct 2021 11:09:12 +0000 (07:09 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 30 Oct 2021 06:03:03 +0000 (06:03 +0000)
If a PCC backend is managed by lpcc service, keep the cache data
in PCC backend when it is stopped by lpcc service.

Change-Id: I15e80d28ff017573b8f7b24449979072256ab6b2
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanity-pcc env=ONLY=200-202,ONLY_REPEAT=10 \
                 clientextra_install_params="--packages lipe-lpcc"
Reviewed-on: https://review.whamcloud.com/45396
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/lpcc

index e5ce4ff..960e1db 100755 (executable)
--- a/lipe/lpcc
+++ b/lipe/lpcc
@@ -113,7 +113,7 @@ class LpccService:
 
     def _del_pcc(self):
         eprint("Deleting PCC...")
-        cmdline = ['lctl', 'pcc', 'del', self.lpcc_mount, self.lpcc_cache]
+        cmdline = ['lctl', 'pcc', 'del', '--keep', self.lpcc_mount, self.lpcc_cache]
         eprint(cmdline)
         returncode = subprocess.call(cmdline)
         return returncode