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

Fix rbd.image scan stuck #185

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhouyh-orcadt
Copy link

Signed-off-by: yaohui.zhou [email protected]

update 3 patches:
patch 1 - fix the close/lock issues. This patch fixes an issue where the common.py is cleaning the ioctx open if a lock call fails.
patch 2 - fix the error_msg issue. This patch fixes an issue where we are not checking for config commit errors and returning a error_msg in a couple places.
patch 3 - fix the rbd.image scan stuck issue. This patch fixes an issue where the pool is full, the code "with rbd.Image (ioctx, image) as rbd_image:" in gwcli will get stuck.

Signed-off-by: yaohui.zhou <[email protected]>

update 3 patches:
	patch 1 - fix the close/lock issues. This patch fixes an issue where the common.py is cleaning the ioctx open if a lock call fails.
	patch 2 - fix the error_msg issue. This patch fixes an issue where we are not checking for config commit errors and returning a error_msg in a couple places.
	patch 3 - fix the rbd.image scan stuck issue. This patch fixes an issue where the pool is full, the code "with rbd.Image (ioctx, image) as rbd_image:" in gwcli will get stuck.
@@ -482,13 +482,12 @@ def unlock(self):

def _seed_rbd_config(self):

ioctx = self._open_ioctx()

Choose a reason for hiding this comment

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

Nit: perhaps just use a with self._open_ioctx() as ioctx: block ....

@@ -591,15 +591,14 @@ def set_item(self, cfg_type, element_name, element_value):

def _commit_rbd(self, post_action):

ioctx = self._open_ioctx()

Choose a reason for hiding this comment

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

Nit: same comment here

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.

2 participants