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

Add option to force deletion of unreachable gw #156

Merged
merged 3 commits into from
Dec 20, 2019
Merged

Add option to force deletion of unreachable gw #156

merged 3 commits into from
Dec 20, 2019

Conversation

mikechristie
Copy link
Contributor

The first patch fixes the issue where if a gw is dead, we can't delete it because we normally update the config on the node we are updating. The other patches fix some bugs/issues found while testing it.

Mike Christie added 3 commits December 5, 2019 15:07
We currently remove the gateway from the config on the gateway we want
to remove. If the gw is down permanently this creates the problem that
we cannot delete the gw unless you re-create it. This patch adds a force
option, so gwcli and api users can tell rbd-target-api on the local node
to just update the config there and ignore the dead gw.

Signed-off-by: Mike Christie <mchristi@redhat.com>
We could be doing a remove_child while the thread that updates the state
is accessing children in GatewayGroup->refresh which will cause a crash.

This has the gw deletion function grab the thread lock while updating
children.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Mike Christie <mchristi@redhat.com>
Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mikechristie mikechristie merged commit 42e9e31 into ceph:master Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants