New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgr/rbd_support: store global schedule without localized prefix #37864
Conversation
@dillaman It still uses I suppose |
Can we have |
so it is still used after mgr failover Fixes: https://tracker.ceph.com/issues/48020 Signed-off-by: Mykola Golub <mgolub@suse.com>
Signed-off-by: Mykola Golub <mgolub@suse.com>
@dillaman updated |
Unrelated to this PR, but it looks like the [1] https://jenkins.ceph.com/job/ceph-pull-requests/62641/consoleFull |
if schedule_cfg: | ||
self.handler.module.set_module_option( | ||
self.handler.MODULE_OPTION_NAME, schedule_cfg) | ||
self.handler.module.set_localized_module_option( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: perhaps put this under the if
clause at line 354 after moving it to the non-localized module options. There is technically a possibility of a MGR crash that will leave the old config under the localized section, but it seems unlikely enough and eventually we can remove all this code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I intentionally put this out of the if
clause, so it always had a chance to clean the old option. Consider a case when an old localized option exists for both mgr.x and mgr.y (mgr/rbd_support/x/mirror_snapshot_schedule
and mgr/rbd_support/y/mirror_snapshot_schedule
). After upgrade the active mgr.x "fixes" mgr/rbd_support/x/mirror_snapshot_schedule
making it mgr/rbd_support/mirror_snapshot_schedule
. Then mgr.y becomes active, and if it is under if
clause it will not remove mgr/rbd_support/y/mirror_snapshot_schedule
because mgr/rbd_support/mirror_snapshot_schedule
exists. And then if the user decides to remove the global schedule (mgr/rbd_support/mirror_snapshot_schedule
) the mgr.y will mysteriously reuse mgr/rbd_support/y/mirror_snapshot_schedule
.
Thanks, I will try to reproduce this locally. |
jenkins test make check |
so it is still used after mgr failover
Fixes: https://tracker.ceph.com/issues/48020
Signed-off-by: Mykola Golub mgolub@suse.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox