Skip to content

Conversation

@dtantsur
Copy link
Member

Implements the most important parts of https://github.com/openshift/enhancements/blob/master/enhancements/security/bmc-ca-certificate-support.md
by creating a new asset that conditionally generates a ConfigMap in the openshift-machine-api namespace.

Co-Authored-By: Zou Yu [email protected]
Assisted-By: Claude Code (commercial license)

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 11, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 11, 2025

@dtantsur: This pull request references METAL-1105 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 spike to target the "4.21.0" version, but no target version was set.

In response to this:

Implements the most important parts of https://github.com/openshift/enhancements/blob/master/enhancements/security/bmc-ca-certificate-support.md
by creating a new asset that conditionally generates a ConfigMap in the openshift-machine-api namespace.

Co-Authored-By: Zou Yu [email protected]
Assisted-By: Claude Code (commercial license)

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.

@dtantsur
Copy link
Member Author

/cc @zaneb

@openshift-ci openshift-ci bot requested review from elfosardo, honza and zaneb November 11, 2025 15:52
@dtantsur
Copy link
Member Author

/retest

@dtantsur
Copy link
Member Author

/retest

OFCIR migration

@dtantsur
Copy link
Member Author

/verified by @dtantsur

I have tested #10072 + openshift/cluster-baremetal-operator#527 + openshift/ironic-image#691 with the help of openshift-metal3/dev-scripts#1812 on a local environment. Neither install-config nor BMH definitions contain disableCertificateVerification any more. Initial deployment passed, and so did provisioning workers.

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 19, 2025
@openshift-ci-robot
Copy link
Contributor

@dtantsur: This PR has been marked as verified by @dtantsur.

In response to this:

/verified by @dtantsur

I have tested #10072 + openshift/cluster-baremetal-operator#527 + openshift/ironic-image#691 with the help of openshift-metal3/dev-scripts#1812 on a local environment. Neither install-config nor BMH definitions contain disableCertificateVerification any more. Initial deployment passed, and so did provisioning workers.

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.

@patrickdillon
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 19, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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 Nov 19, 2025
Copy link
Member

@zaneb zaneb left a comment

Choose a reason for hiding this comment

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

This looks correct, but can be simplified so that you only have to deal with the data in 2 places instead of 3.


# This is required since the progress service (https://github.com/openshift/installer/blob/dd9047c4c119e942331f702a4b7da85c60042da5/data/data/bootstrap/files/usr/local/bin/report-progress.sh#L22-L33),
# usually dedicated to creating the bootstrap ConfigMap, will fail to create this configmap in case of bootstrap-in-place single node deployment,
# usually dedicated to creating the bootstrap ConfigMap, will fail to create this configmap in case of bootstrap-in-place single node deployment,
Copy link
Member

Choose a reason for hiding this comment

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

nit: unintentional whitespace change?

&tls.ServiceAccountKeyPair{},
&tls.JournalCertKey{},
&tls.IronicTLSCert{},
&tls.BMCVerifyCA{},
Copy link
Member

Choose a reason for hiding this comment

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

Since you already have BMCVerifyCA in the PlatformData, instead of doing this you could just create a file at data/data/bootstrap/baremetal/files/opt/openshift/bmc-ca/verify_ca.crt.template with the content:

{{ .PlatformData.BareMetal.BMCVerifyCA }}

Then you wouldn't need the BMCVerifyCA asset at all, and its one line of code could be rolled straight into the BMCVerifyCAConfigMap asset.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I need to digest this. I guess one issue is that we'll get an empty file by default, which may confuse Ironic. Can I make a file creation conditional?

Copy link
Member

Choose a reason for hiding this comment

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

You already made mounting the volume conditional.

@dtantsur
Copy link
Member Author

@zaneb if the general logic is okay, can we continue this discussion in a follow-up work? Testing each change is a bit cumbersome, and we're so close to FF.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 20, 2025
@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Nov 20, 2025
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 20, 2025
@zaneb
Copy link
Member

zaneb commented Nov 20, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 20, 2025
@dtantsur
Copy link
Member Author

/test e2e-aws-ovn

@dtantsur
Copy link
Member Author

/test e2e-aws-ovn

Repo problems

@dtantsur
Copy link
Member Author

/verified later @dtantsur

I don't have reasons to believe that a rebase caused the feature to get broken, but I cannot verify it now because building images in dev-scripts is currently broken

@openshift-ci-robot openshift-ci-robot added verified-later verified Signifies that the PR passed pre-merge verification criteria labels Nov 21, 2025
@openshift-ci-robot
Copy link
Contributor

@dtantsur: This PR has been marked to be verified later by @dtantsur.

In response to this:

/verified later @dtantsur

I don't have reasons to believe that a rebase caused the feature to get broken, but I cannot verify it now because building images in dev-scripts is currently broken

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.

@dtantsur
Copy link
Member Author

/test e2e-aws-ovn

I see improvements locally, so hopefully the repos will work this time.

@dtantsur
Copy link
Member Author

/test e2e-aws-ovn

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 0e43b96 and 2 for PR HEAD 2cb7563 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 386dca3 and 1 for PR HEAD 2cb7563 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 21, 2025

@dtantsur: 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-metal-assisted 2cb7563 link false /test e2e-metal-assisted
ci/prow/e2e-metal-ovn-two-node-arbiter 2cb7563 link false /test e2e-metal-ovn-two-node-arbiter
ci/prow/e2e-metal-ovn-two-node-fencing 2cb7563 link false /test e2e-metal-ovn-two-node-fencing
ci/prow/e2e-metal-single-node-live-iso 2cb7563 link false /test e2e-metal-single-node-live-iso

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
Contributor

/retest-required

Remaining retests: 0 against base HEAD b3eccf7 and 0 for PR HEAD 2cb7563 in total

@openshift-merge-bot openshift-merge-bot bot merged commit e22009c into openshift:main Nov 22, 2025
19 of 24 checks passed
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. 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. verified Signifies that the PR passed pre-merge verification criteria verified-later

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants