]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: nfs migration: avoid port conflicts 44482/head
authorSebastian Wagner <sewagner@redhat.com>
Thu, 6 Jan 2022 11:35:38 +0000 (12:35 +0100)
committerSebastian Wagner <sewagner@redhat.com>
Thu, 6 Jan 2022 11:35:38 +0000 (12:35 +0100)
commitd2cbf9153f02b67d18e168adaeb65940859cc75a
tree162c4f173c4b7fad6e846f2e14b9c2a8c67eaba6
parentc1c7d3b61a6f2c9f87dbd645a790f84d2d4e4318
mgr/cephadm: nfs migration: avoid port conflicts

The nfs upgrade renames the nfs spec from `nfs.ganesha-{service_id}`
to `nfs.{service_id}`. Previously we used the orphan-daemon check
to remove the old `nfs.ganesha-{service_id}` daemons. This does not work
as sometimes serve() tries to deploy the new daemons before cleaning up the
old daemons. This results in a port conflict breaking the upgrade.

Fixes: https://tracker.ceph.com/issues/53424
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
src/pybind/mgr/cephadm/migrations.py