Skip to content

Bug 2033751: Library go bump#2880

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
eggfoobar:library_go_bump
Jan 6, 2022
Merged

Bug 2033751: Library go bump#2880
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
eggfoobar:library_go_bump

Conversation

@eggfoobar
Copy link
Copy Markdown
Contributor

Bumping the library-go dependency to latest, this should take advantage of leader election changes for SNO clusters proposed in this library-go PR and performance improvements in this PR.

- What I did

The latest library-go exposes methods for leader election related to SNO topology, this change will fetch cluster topology on start up and if the operator is running in an SNO cluster, a different set of leader election configs will be used, otherwise the normal conventions will be used for typical clusters.

- How to verify it

Leader election leaseDuration should be 137s for HA clusters as defined in the ha conventions based off of these calculations and 270s for SNO clusters and these calculations

- Description for the changelog

  • library-go bump to latest
  • controller-runtime update for k8s v1.23
  • changed leader election config to pull from library-go
  • updated struct Handler name change to ProbeHandler for k8s 1.23

@openshift-ci openshift-ci Bot requested review from jkyros and sinnykumari December 16, 2021 04:45
@sinnykumari
Copy link
Copy Markdown
Contributor

Some of the required tests are failing, need fixing

@sinnykumari
Copy link
Copy Markdown
Contributor

Can we update k8s.io/kubernetes as well to 1.23 in replace section of go.mod?

Copy link
Copy Markdown
Contributor

@sinnykumari sinnykumari left a comment

Choose a reason for hiding this comment

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

Few comments, other than that LGTM,

@eggfoobar
Copy link
Copy Markdown
Contributor Author

Absolutely, digging into some of those test errors, and I'll update k8s, thanks!

@sinnykumari
Copy link
Copy Markdown
Contributor

You will need to run make go-deps && make update as well and commit the updated vendored changes.

@eggfoobar eggfoobar force-pushed the library_go_bump branch 2 times, most recently from 90c87f4 to beda448 Compare December 17, 2021 16:40
@sinnykumari
Copy link
Copy Markdown
Contributor

With Feature Freeze in place, this PR will require a valid bug.

@sinnykumari
Copy link
Copy Markdown
Contributor

/retest

@sinnykumari
Copy link
Copy Markdown
Contributor

After discussion with MCO team, we think that this is not really a bug and we are post Feature Freeze that means only bug should go in. Putting hold and this can go once master is open for 4.11
/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 Dec 20, 2021
@damemi
Copy link
Copy Markdown
Contributor

damemi commented Dec 21, 2021

Hi, just wondering what is the current status of this? We are seeing some failures in CI for the main 1.23 rebase (openshift/kubernetes#1087) around MCO and wondering if bumping it to 1.23 will resolve it. Updating to 1.23 should be done for 4.10

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 21, 2021
@openshift-ci openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 21, 2021
@damemi
Copy link
Copy Markdown
Contributor

damemi commented Dec 21, 2021

/retitle Bug 2033751: Library go bump
this is the 1.23 rebase BZ you can use

@openshift-ci openshift-ci Bot changed the title Library go bump Bug 2033751: Library go bump Dec 21, 2021
@openshift-ci openshift-ci Bot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label Dec 21, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 21, 2021

@eggfoobar: This pull request references Bugzilla bug 2033751, 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 @wangke19

Details

In response to this:

Bug 2033751: Library go bump

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 the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Dec 21, 2021
@openshift-ci openshift-ci Bot requested a review from wangke19 December 21, 2021 13:51
@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

/retest-required

@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

/test e2e-gcp-op-single-node
/test e2e-aws-upgrade-single-node
/test e2e-vsphere-upgrade

@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

kikisdeliveryservice commented Dec 21, 2021

Required tests are passing just taking a look at a few others before approving.

Getting confirmation elsewhere that this should go in.

@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

e2e-agnostic-upgrade seems to be hitting unrelated errors:

 Container test exited with code 1, reason Error
---
operator cloud-controller-manager CloudConfigControllerDegraded is False with AsExpected: Cloud Config Controller works as expected
level=info msg=Cluster operator etcd RecentBackup is Unknown with ControllerStarted: 
level=info msg=Cluster operator insights Disabled is False with AsExpected: 
level=info msg=Cluster operator monitoring Progressing is True with RollOutInProgress: Rolling out the stack.
level=error msg=Cluster operator monitoring Degraded is True with UpdatingPrometheusK8SFailed: Failed to rollout the stack. Error: updating prometheus-k8s: waiting for Prometheus object changes failed: waiting for Prometheus openshift-monitoring/k8s: expected 2 replicas, got 1 updated replicas
level=info msg=Cluster operator monitoring Available is False with MultipleTasksFailed: Rollout of the monitoring stack failed and is degraded. Please investigate the degraded status error.
level=info msg=Cluster operator network ManagementStateDegraded is False with : 
level=error msg=Cluster initialization failed because one or more operators are not functioning properly.
level=error msg=The cluster should be accessible for troubleshooting as detailed in the documentation linked below,
level=error msg=https://docs.openshift.com/container-platform/latest/support/troubleshooting/troubleshooting-installations.html
level=error msg=The 'wait-for install-complete' subcommand can then be used to continue the installation
level=fatal msg=failed to initialize the cluster: Cluster operator monitoring is not available
Setup phase finished, prepare env for next steps 

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/2880/pull-ci-openshift-machine-config-operator-master-e2e-agnostic-upgrade/1473397169183526912

/test e2e-agnostic-upgrade

Copy link
Copy Markdown
Contributor

@kikisdeliveryservice kikisdeliveryservice left a comment

Choose a reason for hiding this comment

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

Overall, PR is good, but would like a few changes for consistency and a couple questions.

Thanks!

Comment thread cmd/common/helpers.go Outdated
Comment thread cmd/common/helpers.go Outdated
Comment thread cmd/machine-config-controller/start.go Outdated
Comment thread cmd/machine-config-operator/start.go Outdated
Comment thread internal/clients/builder.go Outdated
Comment thread pkg/controller/template/render_test.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any background on this change? This was added a few months ago from @Prashanth684 who said it would only be external once there was a CCM for PowerVS, did that happen (I'm unsure about the status)

See: #2801 (comment)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

correct. this should not be external yet and the comment referenced above still holds. could this change be reverted please.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't have the full context to make a recommendation here, the unit test will break since that information seems to be coming from library-go added in this commit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hmm..yeah..i'm checking with the IBM folks but looks like it has been marked as an external provider and i do see changes in CCM too, so this should be good. i'll confirm once i hear back from them.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

alright yeah so CCM now includes PowerVS: openshift/cluster-cloud-controller-manager-operator#129 which is supported through the IBM cloud provider, so this change is good! thanks @kikisdeliveryservice for notifying and thanks @eggfoobar for this change!

@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

This is going to need a rebase otherise looks good thanks for the updates!

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

19 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

kikisdeliveryservice commented Jan 5, 2022

adding a hold while azure infra issues get sorted out.

/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 5, 2022
@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

removing hold now

/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 6, 2022
@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

/retest-required

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jan 6, 2022

@eggfoobar: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-workers-rhel7 a98a15a link false /test e2e-aws-workers-rhel7
ci/prow/e2e-aws-upgrade-single-node a98a15a link false /test e2e-aws-upgrade-single-node
ci/prow/e2e-aws-workers-rhel8 a98a15a link false /test e2e-aws-workers-rhel8
ci/prow/e2e-aws-disruptive a98a15a link false /test e2e-aws-disruptive
ci/prow/e2e-vsphere-upgrade a98a15a link false /test e2e-vsphere-upgrade

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.

@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

azure problems are still here:
/test e2e-agnostic-upgrade

@openshift-merge-robot openshift-merge-robot merged commit f5befcb into openshift:master Jan 6, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jan 6, 2022

@eggfoobar: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Bugzilla bug in order for it to move to the next state. Once unlinked, request a bug refresh with /bugzilla refresh.

Bugzilla bug 2033751 has not been moved to the MODIFIED state.

Details

In response to this:

Bug 2033751: Library go bump

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.

@eggfoobar eggfoobar deleted the library_go_bump branch April 29, 2026 04:18
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.

8 participants