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

ovirt_disk: Fix issue in detaching the direct LUN #700

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

nijinashok
Copy link
Contributor

The direct LUN doesn't have a disk profile and follow_link(self._connection, entity.disk_profile) will be None. So detaching the LUN will fail with error "'NoneType' object has no attribute 'name'".

RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=2183112

@nijinashok nijinashok requested a review from mnecas as a code owner March 30, 2023 12:47
@nijinashok nijinashok force-pushed the master branch 3 times, most recently from e8d6aeb to c0dbfca Compare April 6, 2023 04:07
Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

+1

The direct LUN doesn't have a disk profile and follow_link(self._connection, entity.disk_profile
) will be None. So detaching the LUN will fail with error "'NoneType' object has no attribute 'name'".

Signed-off-by: Nijin Ashok <nashok@redhat.com>
@mnecas mnecas merged commit a0f0fd8 into oVirt:master Apr 19, 2023
@mnecas mnecas mentioned this pull request Aug 23, 2023
@mnecas mnecas mentioned this pull request Oct 11, 2023
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.

3 participants