Skip to content
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

common/config: update values when they are removed via mon #32091

Merged
merged 1 commit into from Dec 11, 2019

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Dec 6, 2019

If a value is set via the mon (ceph config set ...), and then later
removed, the removal doesn't propagate to the legacy values (or debug
options) because update_legacy_values() only iterates over legacy value
and not debug options.

Similarly, we want to trigger a config notification to any observers,
so we need to add the option to values.changed.

Fixes: https://tracker.ceph.com/issues/42964
Signed-off-by: Sage Weil sage@redhat.com

If a value is set via the mon (ceph config set ...), and then later
removed, the removal doesn't propagate to the legacy values (or debug
options) because update_legacy_values() only iterates over legacy value
and not debug options.

Similarly, we want to trigger a config notification to any observers,
so we need to add the option to values.changed.

Fixes: https://tracker.ceph.com/issues/42964
Signed-off-by: Sage Weil <sage@redhat.com>
liewegas added a commit that referenced this pull request Dec 11, 2019
* refs/pull/32091/head:
	common/config: update values when they are removed via mon

Reviewed-by: Neha Ojha <nojha@redhat.com>
@liewegas liewegas merged commit 56be2e4 into ceph:master Dec 11, 2019
@liewegas liewegas deleted the fix-42964 branch December 11, 2019 04:05
@batrick
Copy link
Member

batrick commented Dec 16, 2019

@liewegas is this a dup? https://tracker.ceph.com/issues/43296

@liewegas
Copy link
Member Author

nope, that's a different bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants