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

Retry fetching Noobaa endpoint pods data in case of KeyError #3247

Merged
merged 2 commits into from Nov 4, 2020
Merged

Conversation

ebenahar
Copy link
Contributor

@ebenahar ebenahar commented Nov 2, 2020

Fixes #3248

Signed-off-by: Elad Ben Aharon ebenahar@redhat.com

@ebenahar ebenahar requested a review from a team as a code owner November 2, 2020 16:55
@@ -2981,6 +2981,7 @@ def finalizer():
request.addfinalizer(finalizer)


@retry.retry(KeyError)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is bad, a retry already happens from the calling code in nb_ensure_endpoint_count, we just need to not throw and return False

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point. Fixed now

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>
nb-ohad
nb-ohad previously approved these changes Nov 2, 2020
nb-ohad
nb-ohad previously approved these changes Nov 2, 2020
@ebenahar ebenahar changed the title Retry fetching Noobaa endpoint pods data Retry fetching Noobaa endpoint pods data in case of KeyError Nov 2, 2020
tests/conftest.py Show resolved Hide resolved
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation

Cluster Name:
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/manage/mcg
Additional Test Params:
OCP VERSION: 4.6
OCS VERSION: 4.6

Job UNSTABLE (some or all tests failed).

@ebenahar
Copy link
Contributor Author

ebenahar commented Nov 3, 2020

The failures in the above run of PR validation are not related to the change done here, marking as verified

@ebenahar ebenahar added the Verified Mark when PR was verified and log provided label Nov 3, 2020
Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>
Copy link
Contributor

@OdedViner OdedViner left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation

Cluster Name:
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/manage/mcg
Additional Test Params:
OCP VERSION: 4.6
OCS VERSION: 4.6

Job UNSTABLE (some or all tests failed).

@ebenahar ebenahar merged commit 856c673 into master Nov 4, 2020
prsurve pushed a commit to prsurve/ocs-ci that referenced this pull request Feb 5, 2021
…-storage#3247)

* Retry fetching Noobaa endpoint pods data

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

fix

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>

* Address comments

Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>
@petr-balogh petr-balogh deleted the eps branch August 5, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_ready_noobaa_endpoint_count() sometimes fails with KeyError: 'containerStatuses'
7 participants