Skip to content

bug 2039670: Skip deployment of PDBs on the SNO topology#109

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
ingvagabund:pdbs-for-operands
Jan 25, 2022
Merged

bug 2039670: Skip deployment of PDBs on the SNO topology#109
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
ingvagabund:pdbs-for-operands

Conversation

@ingvagabund
Copy link
Member

@ingvagabund ingvagabund commented Jan 12, 2022

Builds on top of openshift/library-go#1246 and WithIsSNOCheck from openshift/library-go#1238.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 12, 2022

@ingvagabund: This pull request references Bugzilla bug 2039670, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @zhouying7780

Details

In response to this:

bug 2039670: Deploy PDB to prevent more than one operand replica going unavailable

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.

@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jan 12, 2022
Copy link
Member

@bertinatto bertinatto left a comment

Choose a reason for hiding this comment

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

@ingvagabund I think we got this sorted out already. Please take a look: af5cba6

@ingvagabund
Copy link
Member Author

ingvagabund commented Jan 12, 2022

@bertinatto of course you have /O\ . I will just update the code so the PDBs are created conditionally. To avoid installation on the SNO topology.

@ingvagabund ingvagabund changed the title bug 2039670: Deploy PDB to prevent more than one operand replica going unavailable bug 2039670: Skip deploymen of PDB on the SNO topology Jan 12, 2022
@ingvagabund ingvagabund changed the title bug 2039670: Skip deploymen of PDB on the SNO topology bug 2039670: Skip deployment of PDBs on the SNO topology Jan 12, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 12, 2022

@ingvagabund: An error was encountered querying GitHub for users with public email (yinzhou@redhat.com) for bug 2039670 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. non-200 OK status code: 403 Forbidden body: "{\n \"documentation_url\": \"https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits\",\n \"message\": \"You have exceeded a secondary rate limit. Please wait a few minutes before you try again.\"\n}\n"

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

Details

In response to this:

bug 2039670: Skip deployment of PDBs on the SNO topology

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.

@ingvagabund
Copy link
Member Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 12, 2022
@ingvagabund
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 12, 2022
@ingvagabund
Copy link
Member Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 13, 2022
@ingvagabund
Copy link
Member Author

Once #110 gets merged I will rebase this PR.

@ingvagabund
Copy link
Member Author

/test all

Comment on lines +89 to +98
isSNO, precheckSucceeded, err := guard.IsSNOCheckFnc(configInformers.Config().V1().Infrastructures())()
if err != nil {
klog.Errorf("IsSNOCheckFnc failed: %v", err)
return false
}
if !precheckSucceeded {
klog.V(4).Infof("IsSNOCheckFnc precheck did not succeed, skipping")
return false
}
return !isSNO
Copy link
Contributor

@jsafrane jsafrane Jan 25, 2022

Choose a reason for hiding this comment

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

Can you create isSNO() out of this and use isSNO() / !isSNO() below?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately, the create/delete conditionals are not opposite of each other. They both can be false when:

  • configInformers.Config().V1().Infrastructures()'s hasSynced is false
  • retrieval of the cluster infrastructure object failed.

@ingvagabund
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 25, 2022
@jsafrane
Copy link
Contributor

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ingvagabund, jsafrane

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 25, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 25, 2022

@ingvagabund: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

@openshift-merge-robot openshift-merge-robot merged commit 068ddb9 into openshift:master Jan 25, 2022
@ingvagabund ingvagabund deleted the pdbs-for-operands branch January 25, 2022 15:21
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 25, 2022

@ingvagabund: All pull requests linked via external trackers have merged:

Bugzilla bug 2039670 has been moved to the MODIFIED state.

Details

In response to this:

bug 2039670: Skip deployment of PDBs on the SNO topology

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. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments