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

Add redfish bmc protocol to BMH CR #1697

Closed

Conversation

lewisdenny
Copy link
Collaborator

Currently the connection string is set to http://$IP:8000/redfish/v1/Systems/$UUID, the BMH CR expects a bmc protocol of ipmi, redfish or redfish-virtualmedia.

This patch adds the cifmw_deploy_bmh_redfish_bmc_protocol prefixed to the connection string if the connection type is redfish

cifmw_deploy_bmh_redfish_bmc_protocol is set to redfish-virtualmedia by default to match [1] but is now configurable if needed.

More details can be found [2] [3]

[1] https://github.com/openstack-k8s-operators/install_yamls/blob/6f43dd716e8d1ab7b38926ca29c45699a874e164/devsetup/scripts/edpm-compute-baremetal.sh#L76C14-L76C35
[2] https://github.com/metal3-io/baremetal-operator/blob/b87793e1e394bbc4e4b93fda967e2ff9f1bbbe79/docs/api.md?plain=1#L37-L38
[3] https://book.metal3.io/quick-start.html?highlight=redfish-virtualmedia#create-baremetalhosts

As a pull request owner and reviewers, I checked that:

  • Appropriate testing is done and actually running
  • Appropriate documentation exists and/or is up-to-date:
    • README in the role

Currently the connection string is set to `http://$IP:8000/redfish/v1/Systems/$UUID`, the BMH CR expects a bmc protocol of `ipmi, redfish or redfish-virtualmedia`.

This patch adds the `cifmw_deploy_bmh_redfish_bmc_protocol` prefixed to the connection string if the connection type is `redfish`

`cifmw_deploy_bmh_redfish_bmc_protocol` is set to `redfish-virtualmedia` by default to match [1] but is now configurable if needed.

More details can be found [2] [3]

[1] https://github.com/openstack-k8s-operators/install_yamls/blob/6f43dd716e8d1ab7b38926ca29c45699a874e164/devsetup/scripts/edpm-compute-baremetal.sh#L76C14-L76C35
[2] https://github.com/metal3-io/baremetal-operator/blob/b87793e1e394bbc4e4b93fda967e2ff9f1bbbe79/docs/api.md?plain=1#L37-L38
[3] https://book.metal3.io/quick-start.html?highlight=redfish-virtualmedia#create-baremetalhosts
@openshift-ci openshift-ci bot requested review from dpinhas and marios May 15, 2024 03:59
Copy link
Contributor

openshift-ci bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from lewisdenny. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

Thanks for the PR! ❤️
I am marking it as a draft, once passing your happy and the PR is passing CI click the "Ready for review" button below.

@github-actions github-actions bot marked this pull request as draft May 15, 2024 03:59
@lewisdenny lewisdenny mentioned this pull request May 15, 2024
4 tasks
@lewisdenny lewisdenny marked this pull request as ready for review May 15, 2024 04:03
@openshift-ci openshift-ci bot requested review from dsariel and son-vyas May 15, 2024 04:03
@@ -13,7 +13,7 @@ metadata:
workload: {{ node_name.split('-')[0] }}
spec:
bmc:
address: {{ node_data['connection'] }}
address: {{ cifmw_deploy_bmh_redfish_bmc_protocol ~ '+' if 'redfish' in node_data['connection'] }}{{ node_data['connection'] }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We are using idrac in most of the DS hardware, this approach will blow the entire NFV job.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I checked the D/S job and only seen ipmi addresses in the rendered bmh resource? If you could point me to a reference on Slack I would be grateful.

You're right though, this test is too broad and would affect anyone using redfish, I'll have a think and submit a revision, thanks :)

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

Successfully merging this pull request may close these issues.

2 participants