Skip to content

Conversation

@dbasunag
Copy link
Contributor

@dbasunag dbasunag commented Nov 30, 2022

Short description:

rpc error should be retried as during some operations, they are common. However they recoverable.
We need to add a timeout_seconds for regular get calls, as sometimes, we can have hung call.

More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

@cnv-qe-bot
Copy link

The following are automatically added:

  • Add reviewers from OWNER file (in the root of the repository) under reviewers section.
  • Set PR size label.
  • New issue is created for the PR.

Available user actions:

  • To mark PR as verified add !verified to a PR comment, to un-verify add !-verified to a PR comment.
    Verified label removed on each new commit push.
  • To cherry pick a merged PR add !cherry-pick <target branch to cherry-pick to> to a PR comment.

@dbasunag dbasunag requested review from myakove and removed request for rnetser December 1, 2022 20:36
@dbasunag
Copy link
Contributor Author

dbasunag commented Dec 1, 2022

@rnetser when I re-requested review from @myakove , I see it removed you as reviewer. I have no idea why and how it happened. Can you please add yourself as a reviewer, as I would prefer to have both your review?

@rnetser rnetser self-requested a review December 5, 2022 06:29
rnetser
rnetser previously approved these changes Dec 5, 2022
Copy link
Collaborator

@rnetser rnetser left a comment

Choose a reason for hiding this comment

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

Please fix ci :)

@dbasunag
Copy link
Contributor Author

dbasunag commented Dec 5, 2022

!verified

@myakove
Copy link
Collaborator

myakove commented Dec 12, 2022

!verified

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@myakove myakove merged commit 1ac36f0 into RedHatQE:main Dec 12, 2022
@myakove
Copy link
Collaborator

myakove commented Dec 12, 2022

!cherry-pick v4.12

cnv-qe-bot pushed a commit that referenced this pull request Dec 12, 2022
* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
@cnv-qe-bot
Copy link

Cherry-picked PR add retry on exception and timeout_seconds for get call into v4.12

myakove added a commit to myakove/openshift-python-wrapper that referenced this pull request Dec 12, 2022
* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
myakove added a commit that referenced this pull request Dec 12, 2022
…for get call (#1014)

* add retry on exception and timeout_seconds for get call (#990)

* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>

* Add TIMEOUT_1MINUTE constant

Co-authored-by: Debarati Basu-Nag <dbasunag@redhat.com>
Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
@dbasunag
Copy link
Contributor Author

!cherry-pick v4.11

cnv-qe-bot pushed a commit that referenced this pull request Dec 13, 2022
* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
@cnv-qe-bot
Copy link

Cherry-picked PR add retry on exception and timeout_seconds for get call into v4.11

dbasunag added a commit to dbasunag/openshift-python-wrapper that referenced this pull request Dec 13, 2022
* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
rnetser added a commit that referenced this pull request Dec 14, 2022
* add retry on exception and timeout_seconds for get call (#990)

* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>

* Add constant TIMEOUT_1MINUTE

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
dbasunag added a commit to dbasunag/openshift-python-wrapper that referenced this pull request Dec 14, 2022
…atQE#1023)

* add retry on exception and timeout_seconds for get call (RedHatQE#990)

* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>

* Add constant TIMEOUT_1MINUTE

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
myakove added a commit that referenced this pull request Dec 17, 2022
… (#1029)

* add retry on exception and timeout_seconds for get call (#990)

* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>

* Add constant TIMEOUT_1MINUTE

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
@dbasunag dbasunag deleted the add_retry branch February 25, 2025 18:39
myakove added a commit that referenced this pull request Aug 11, 2025
* add retry on exception and timeout_seconds for get call

* add retry on exception and timeout_seconds for get call

* fix CI issue

* fix CI error

* add docstring

* Update ocp_resources/resource.py

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>

* undo the last changes

* undo the changes

* add timeout_seconds to class attribute

Co-authored-by: Ruth Netser <54615090+rnetser@users.noreply.github.com>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants