]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: continue in nfs service purge if grace file is already deleted 61594/head
authorAdam King <adking@redhat.com>
Wed, 29 Jan 2025 20:48:53 +0000 (15:48 -0500)
committerAdam King <adking@redhat.com>
Wed, 5 Feb 2025 00:01:41 +0000 (19:01 -0500)
commita03d33117967d8685a5a13eb3de50d7908a78275
treee362cd744b7f57c21e1fbb17d46c9a31298bc57f
parent66a90a927ac09be421683da2e1f5fa934a9b9925
mgr/cephadm: continue in nfs service purge if grace file is already deleted

The test_nfs task we run in teuthology creates and removes a number of
nfs clusters during the task. I think it's possible based on timing for
it to end up in a situation where it tries to remove an nfs service before
the grace file has been created. In that case, cephadm doesn't know it
hasn't created the grace file and just repeatedly fails forever attempting
to remove the nonexistent file. This patch adds handling for the error
case where we get a nonzero rc but the error message implies the command
failed because the file already does not exist.

Fixes: https://tracker.ceph.com/issues/69736
Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/nfs.py