Skip to content

Conversation

@eranco74
Copy link
Contributor

@eranco74 eranco74 commented Dec 9, 2021

kube-controller-manager keeps logging this error when HyperShift HostedCluster platform is none:

I1207 11:59:01.295504       1 event.go:291] "Event occurred" object="openshift-monitoring/cluster-monitoring-operator-97cd798c5" kind="ReplicaSet" apiVersion="apps/v1" type="Warning" reason="FailedCreate" message="Error creating: pods \"cluster-monitoring-operator-97cd798c5-\" is forbidden: infrastructure.config.openshift.io \"cluster\" not found"

This error leads to worker nodes not getting any pods scheduled (not even SDN) and resulting worker nodes stuck with NotREady status.

@openshift-ci openshift-ci bot requested review from enxebre and ironcladlou December 9, 2021 10:54
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: eranco74
To complete the pull request process, please assign csrwng after the PR has been reviewed.
You can assign the PR to them by writing /assign @csrwng in a comment when ready.

The full list of commands accepted by this bot can be found 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

@avishayt
Copy link
Contributor

avishayt commented Dec 9, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 9, 2021
case hyperv1.IBMCloudPlatform:
infra.Status.PlatformStatus = &configv1.PlatformStatus{}
infra.Status.PlatformStatus.Type = configv1.IBMCloudPlatformType
case hyperv1.NonePlatform:
Copy link
Member

@enxebre enxebre Dec 9, 2021

Choose a reason for hiding this comment

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

Please just set
infra.Status.PlatformStatus.Type = configv1.PlatformType(hcp.Spec.Platform.Type)
for any case, no need to discriminate by platform.

@eranco74
Copy link
Contributor Author

eranco74 commented Dec 9, 2021

Closing, this code is part of #764 that fix more issues with none platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants