-
Notifications
You must be signed in to change notification settings - Fork 40
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
METAL-966: Add metal3 provider #175
base: main
Are you sure you want to change the base?
Conversation
@honza: This pull request references METAL-966 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.17.0" version, but no target version was set. In response to this: 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. |
2d6320e
to
3e68300
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @honza the changes you are adding here look reasonable to me.
Although we recently merged #169 which slightly changes how we handle InfraCluster generation for each platform, and moves some of the switch/case around, would you be able to adapt this PR to that change?
Before merging this PR we would need to add e2e tests (similarly to what we already do with powervs/gcp/vsphere in this repo), which will require to us to get openshift/cluster-api-provider-metal3#18 merged first
8d95a47
to
ff1c497
Compare
410528e
to
5eed1ef
Compare
bd716a1
to
1399782
Compare
ef1f476
to
1fc88f7
Compare
a04c708
to
dcfcf2e
Compare
2fc2992
to
44bd53d
Compare
249ab16
to
5a298c1
Compare
/lgtm though deferring to @damdo for approval |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes @honza
and sorry it took me a while to review it again.
Changes mostly LGTM, I am still seeing some errors in the e2e for cluster-capi-operator logs .
I0318 17:10:57.753893 1 corecluster_controller.go:97] "Reconciling core cluster" logger="CoreClusterController" controller="CoreClusterController" controllerGroup="config.openshift.io" controllerKind="ClusterOperator" ClusterOperator="cluster-api" namespace="" name="cluster-api" reconcileID="e28bbbab-82a2-4116-880a-098c385c4475"
I0318 17:10:57.754254 1 clusteroperator_controller.go:48] "Reconciling \"cluster-api\" ClusterObject" logger="ClusterOperatorController" controller="ClusterOperatorController" controllerGroup="config.openshift.io" controllerKind="ClusterOperator" ClusterOperator="cluster-api" namespace="" name="cluster-api" reconcileID="2d247a45-e414-4aae-a453-63ef6fa63f70"
I0318 17:10:57.754339 1 infracluster_controller.go:87] "Reconciling InfraCluster" logger="InfraClusterController" controller="InfraClusterController" controllerGroup="config.openshift.io" controllerKind="ClusterOperator" ClusterOperator="cluster-api" namespace="" name="cluster-api" reconcileID="de31d60e-ed68-4975-b5e6-52bf532bb85f"
I0318 17:10:57.764557 1 corecluster_controller.go:139] "Finished reconciling core cluster" logger="CoreClusterController" controller="CoreClusterController" controllerGroup="config.openshift.io" controllerKind="ClusterOperator" ClusterOperator="cluster-api" namespace="" name="cluster-api" reconcileID="e28bbbab-82a2-4116-880a-098c385c4475"
E0318 17:10:57.764599 1 controller.go:316] "Reconciler error" err="failed to ensure core cluster: failed to get infra cluster openshift-cluster-api/ostest-g6k4h: no matches for kind \"BareMetalCluster\" in version \"infrastructure.cluster.x-k8s.io/v1beta1\"" controller="CoreClusterController" controllerGroup="config.openshift.io" controllerKind="ClusterOperator" ClusterOperator="cluster-api" namespace="" name="cluster-api" reconcileID="e28bbbab-82a2-4116-880a-098c385c4475"
To fix that you'll need to change the corecluster controller's mapOCPPlatformToInfraClusterKindAndVersion
function (here) to return a BareMetalCluster
Kind for the metal platform.
Once that's done let's see what the e2e say, and then I can add my labels. Thanks!
New changes are detected. LGTM label has been removed. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dtantsur The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
It looks like the CAPI Machine is not going into
Something might be off with the |
Yes, that's expected. We're still working on a fix in our provider. Thanks |
@honza Hey any news on the provider fix? Do you have a link to the upstream bug? |
/test e2e-metal3-capi-techpreview |
@honza it was too early to test because the image for openshift/cluster-api-provider-metal3#38 hadn't finished building yet. Now it has finished, so it should be in the testing payload: /test e2e-metal3-capi-techpreview |
@honza: The following tests failed, say
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. |
Seeing lots of logs like:
|
We're using the old image. The above error message is on a different line in latest main: https://github.com/openshift/cluster-api-provider-metal3/blob/fbcbf9a7597a0c943624cd4415da69612040cfa3/baremetal/metal3machine_manager.go#L2004 |
CI build was accepted, the new provider code is in /test e2e-metal3-capi-techpreview |
No description provided.