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

[LibFix] Fix CephNode.__getstate__ object properties error #4369

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

vamahaja
Copy link
Contributor

@vamahaja vamahaja commented Jan 9, 2025

When rerun used to connect to existing cluster CephNode object calls __getstate__ method which deletes object properties from dict. This operation fails when some properties are not present.

To fix issue, add steps to check keys before using del method.

@vamahaja vamahaja added the bug in framework Something isn't working in framework label Jan 9, 2025
@vamahaja vamahaja requested review from a team as code owners January 9, 2025 14:14
@vamahaja vamahaja changed the title Fix rerun [LibFix] Fix CephNode.__getstate__ object properties error Jan 9, 2025
@openshift-ci openshift-ci bot added the lgtm Add this label when the PR is good to be merged label Jan 10, 2025
Copy link
Contributor

openshift-ci bot commented Jan 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: psathyan, vamahaja

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

RCA:
When rerun used to connect to existing cluster `CephNode` object calls
`__getstate__` method which deletes object properties from dict. This
operation fails when some properties are not present.
To fix issue, add steps to check keys before using `del` method.

Signed-off-by: Vaibhav Mahajan <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm Add this label when the PR is good to be merged label Jan 10, 2025
Copy link
Contributor

openshift-ci bot commented Jan 10, 2025

New changes are detected. LGTM label has been removed.

@mergify mergify bot merged commit aa2b0d5 into red-hat-storage:main Jan 10, 2025
5 of 6 checks passed
@vamahaja vamahaja deleted the fix-rerun branch January 14, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug in framework Something isn't working in framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants