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

Fix a bug where HCO is ready while there is handling one of the operand returns error #1097

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

nunnatsa
Copy link
Collaborator

@nunnatsa nunnatsa commented Jan 26, 2021

HCO should not be ready (return a positive response in the readiness prob), if it failes to handle one of the operands. But instead, HCO is ready in such case.

This PR is fixing this problem by setting the ready state to false in case of operator handling error.

Fixes: https://bugzilla.redhat.com/1920576

Signed-off-by: Nahshon Unna-Tsameret nunnatsa@redhat.com

Release note:

Fix a bug where HCO is ready while there is handling one of the operand returns error

…nd returns error

HCO should not be ready (return a positive response in the readiness prob), if it failes to handle one of the operands. But instead, HCO is ready in such case.

This PR is fixing this problem by setting the ready state to false in case of operator handling error.

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/L labels Jan 26, 2021
@nunnatsa nunnatsa changed the title Fix a bug where HCO is ready while there is handling one of the opera… Fix a bug where HCO is ready while there is handling one of the operand returns error Jan 26, 2021
@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Jan 26, 2021
@sonarcloud
Copy link

sonarcloud bot commented Jan 26, 2021

SonarCloud Quality Gate failed.

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
3.2% 3.2% Duplication

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 512590434

  • 18 of 18 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 65.36%

Totals Coverage Status
Change from base Build 511951631: 0.1%
Covered Lines: 2334
Relevant Lines: 3571

💛 - Coveralls

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 26, 2021
@openshift-ci
Copy link

openshift-ci bot commented Jan 26, 2021

@nunnatsa: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/hco-e2e-upgrade-aws 889c02d link /test hco-e2e-upgrade-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nunnatsa
Copy link
Collaborator Author

/override-bot

@hco-bot
Copy link
Collaborator

hco-bot commented Jan 26, 2021

hco-e2e-image-index-azure, hco-e2e-image-index-aws lanes succeeded.
/override ci/prow/hco-e2e-image-index-gcp
hco-e2e-upgrade-azure lane succeeded.
/override ci/prow/hco-e2e-upgrade-aws

@kubevirt-bot
Copy link
Contributor

@hco-bot: Overrode contexts on behalf of hco-bot: ci/prow/hco-e2e-image-index-gcp, ci/prow/hco-e2e-upgrade-aws

In response to this:

hco-e2e-image-index-azure, hco-e2e-image-index-aws lanes succeeded.
/override ci/prow/hco-e2e-image-index-gcp
hco-e2e-upgrade-azure lane succeeded.
/override ci/prow/hco-e2e-upgrade-aws

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nunnatsa
Copy link
Collaborator Author

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nunnatsa

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

The pull request process is described 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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 26, 2021
@kubevirt-bot kubevirt-bot merged commit 6894403 into kubevirt:master Jan 26, 2021
@nunnatsa nunnatsa deleted the fix-wrong-readiness branch January 26, 2021 17:26
@nunnatsa
Copy link
Collaborator Author

/cherry-pick release-1.3

@kubevirt-bot
Copy link
Contributor

@nunnatsa: new pull request created: #1098

In response to this:

/cherry-pick release-1.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants