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

OCPBUGS-46354: fix(ho): Add all supported config schemas for NodePool NTO reconcile #5280

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

hasueki
Copy link
Contributor

@hasueki hasueki commented Dec 12, 2024

What this PR does / why we need it:
Fixes OCPBUGS-46354

Observed errors:

{"level":"error","ts":"2024-12-07T12:38:02Z","msg":"Failed to reconcile NodePool","controller":"nodepool","controllerGroup":"hypershift.openshift.io","controllerKind":"NodePool","NodePool":{"name":"30734861-mynodepool","namespace":"master"},"namespace":"master","name":"30734861-mynodepool","reconcileID":"a994e171-39d8-4ebe-b36d-d5bf3b32f91c","error":"failed to reconcile NTO: failed to build mirror configs: configmap \"ignition-config-98-ibm-machineconfig-roks-30734861\" yaml document failed validation: error decoding config: no kind \"ImageDigestMirrorSet\" is registered for version \"config.openshift.io/v1\" in scheme \"/hypershift/hypershift-operator/controllers/nodepool/nto.go:415\"","stacktrace":"github.com/openshift/hypershift/hypershift-operator/controllers/nodepool.(*NodePoolReconciler).Reconcile\n\t/hypershift/hypershift-operator/controllers/nodepool/nodepool_controller.go:205\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222"}
{"level":"debug","ts":"2024-12-07T12:38:02Z","logger":"events","msg":"failed to reconcile NTO: failed to build mirror configs: configmap \"ignition-config-98-ibm-machineconfig-roks-30734861\" yaml document failed validation: error decoding config: no kind \"ImageDigestMirrorSet\" is registered for version \"config.openshift.io/v1\" in scheme \"/hypershift/hypershift-operator/controllers/nodepool/nto.go:415\"","type":"Warning","object":{"kind":"NodePool","namespace":"master","name":"30734861-mynodepool","uid":"6890952e-ffe4-4396-8df4-2054dd939a20","apiVersion":"hypershift.openshift.io/v1beta1","resourceVersion":"422964745"},"reason":"ReconcileError"}
{"level":"error","ts":"2024-12-07T12:38:03Z","msg":"Reconciler error","controller":"nodepool","controllerGroup":"hypershift.openshift.io","controllerKind":"NodePool","NodePool":{"name":"30734861-mynodepool","namespace":"master"},"namespace":"master","name":"30734861-mynodepool","reconcileID":"a994e171-39d8-4ebe-b36d-d5bf3b32f91c","error":"failed to reconcile NTO: failed to build mirror configs: configmap \"ignition-config-98-ibm-machineconfig-roks-30734861\" yaml document failed validation: error decoding config: no kind \"ImageDigestMirrorSet\" is registered for version \"config.openshift.io/v1\" in scheme \"/hypershift/hypershift-operator/controllers/nodepool/nto.go:415\"","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222"}

Adding all API schemas based on:

_ = mcfgv1.Install(scheme)
_ = v1alpha1.Install(scheme)
_ = configv1.Install(scheme)
_ = configv1alpha1.Install(scheme)

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes OCPBUGS-46354

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@openshift-ci-robot openshift-ci-robot added jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 12, 2024
@openshift-ci-robot
Copy link

@hasueki: This pull request references Jira Issue OCPBUGS-46354, which is invalid:

  • expected the bug to target either version "4.19." or "openshift-4.19.", but it targets "4.18.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

What this PR does / why we need it:
Fixes OCPBUGS-46354

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes OCPBUGS-46354

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from csrwng and enxebre December 12, 2024 19:00
@openshift-ci openshift-ci bot added area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release and removed do-not-merge/needs-area labels Dec 12, 2024
@hasueki
Copy link
Contributor Author

hasueki commented Dec 12, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 12, 2024
@openshift-ci-robot
Copy link

@hasueki: This pull request references Jira Issue OCPBUGS-46354, which is valid. The bug has been moved to the POST state.

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

No GitHub users were found matching the public email listed for the QA contact in Jira ([email protected]), skipping review request.

In response to this:

/jira refresh

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 openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

@rtheis rtheis left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2024
@rtheis
Copy link
Contributor

rtheis commented Dec 17, 2024

/retest-required

1 similar comment
@hasueki
Copy link
Contributor Author

hasueki commented Dec 17, 2024

/retest-required

@enxebre
Copy link
Member

enxebre commented Dec 17, 2024

can we include a unit test for this func? it should be pretty similar to TestdefaultAndValidateConfigManifest

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2024
@hasueki
Copy link
Contributor Author

hasueki commented Dec 18, 2024

can we include a unit test for this func? it should be pretty similar to TestdefaultAndValidateConfigManifest

@enxebre Unit test added

Copy link
Contributor

@rtheis rtheis left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 19, 2024
@rtheis
Copy link
Contributor

rtheis commented Dec 19, 2024

/retest-required

@sjenning
Copy link
Contributor

/approve

Copy link
Contributor

openshift-ci bot commented Dec 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hasueki, rtheis, sjenning

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 19, 2024
@sjenning
Copy link
Contributor

/test e2e-aks

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 253fa18 and 2 for PR HEAD ad2f927 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 04b85e8 and 1 for PR HEAD ad2f927 in total

Copy link
Contributor

openshift-ci bot commented Dec 20, 2024

@hasueki: 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-override f5ce417 link true /test e2e-aws-override
ci/prow/okd-scos-e2e-aws-ovn ad2f927 link false /test okd-scos-e2e-aws-ovn

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 04b85e8 and 2 for PR HEAD ad2f927 in total

@openshift-merge-bot openshift-merge-bot bot merged commit 5f05b35 into openshift:main Dec 20, 2024
12 of 13 checks passed
@openshift-ci-robot
Copy link

@hasueki: Jira Issue OCPBUGS-46354: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-46354 has been moved to the MODIFIED state.

In response to this:

What this PR does / why we need it:
Fixes OCPBUGS-46354

Observed errors:

{"level":"error","ts":"2024-12-07T12:38:02Z","msg":"Failed to reconcile NodePool","controller":"nodepool","controllerGroup":"hypershift.openshift.io","controllerKind":"NodePool","NodePool":{"name":"30734861-mynodepool","namespace":"master"},"namespace":"master","name":"30734861-mynodepool","reconcileID":"a994e171-39d8-4ebe-b36d-d5bf3b32f91c","error":"failed to reconcile NTO: failed to build mirror configs: configmap \"ignition-config-98-ibm-machineconfig-roks-30734861\" yaml document failed validation: error decoding config: no kind \"ImageDigestMirrorSet\" is registered for version \"config.openshift.io/v1\" in scheme \"/hypershift/hypershift-operator/controllers/nodepool/nto.go:415\"","stacktrace":"github.com/openshift/hypershift/hypershift-operator/controllers/nodepool.(*NodePoolReconciler).Reconcile\n\t/hypershift/hypershift-operator/controllers/nodepool/nodepool_controller.go:205\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222"}
{"level":"debug","ts":"2024-12-07T12:38:02Z","logger":"events","msg":"failed to reconcile NTO: failed to build mirror configs: configmap \"ignition-config-98-ibm-machineconfig-roks-30734861\" yaml document failed validation: error decoding config: no kind \"ImageDigestMirrorSet\" is registered for version \"config.openshift.io/v1\" in scheme \"/hypershift/hypershift-operator/controllers/nodepool/nto.go:415\"","type":"Warning","object":{"kind":"NodePool","namespace":"master","name":"30734861-mynodepool","uid":"6890952e-ffe4-4396-8df4-2054dd939a20","apiVersion":"hypershift.openshift.io/v1beta1","resourceVersion":"422964745"},"reason":"ReconcileError"}
{"level":"error","ts":"2024-12-07T12:38:03Z","msg":"Reconciler error","controller":"nodepool","controllerGroup":"hypershift.openshift.io","controllerKind":"NodePool","NodePool":{"name":"30734861-mynodepool","namespace":"master"},"namespace":"master","name":"30734861-mynodepool","reconcileID":"a994e171-39d8-4ebe-b36d-d5bf3b32f91c","error":"failed to reconcile NTO: failed to build mirror configs: configmap \"ignition-config-98-ibm-machineconfig-roks-30734861\" yaml document failed validation: error decoding config: no kind \"ImageDigestMirrorSet\" is registered for version \"config.openshift.io/v1\" in scheme \"/hypershift/hypershift-operator/controllers/nodepool/nto.go:415\"","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222"}

Adding all API schemas based on:

_ = mcfgv1.Install(scheme)
_ = v1alpha1.Install(scheme)
_ = configv1.Install(scheme)
_ = configv1alpha1.Install(scheme)

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes OCPBUGS-46354

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

Distgit: hypershift
This PR has been included in build ose-hypershift-container-v4.19.0-202412200739.p0.g5f05b35.assembly.stream.el9.
All builds following this will include this PR.

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. area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants