Skip to content

Fix rbd.image scan stuck - #185

Open
zhouyh-orcadt wants to merge 1 commit into
ceph:mainfrom
zhouyh-orcadt:fix_scan_image_stuck
Open

Fix rbd.image scan stuck#185
zhouyh-orcadt wants to merge 1 commit into
ceph:mainfrom
zhouyh-orcadt:fix_scan_image_stuck

Conversation

@zhouyh-orcadt

Copy link
Copy Markdown

Signed-off-by: yaohui.zhou yaohui.zhou@orcadt.com

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 <yaohui.zhou@orcadt.com>

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.

def _seed_rbd_config(self):

ioctx = self._open_ioctx()

Copy link
Copy Markdown

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 ....


def _commit_rbd(self, post_action):

ioctx = self._open_ioctx()

Copy link
Copy Markdown

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