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>
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