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

https://issues.redhat.com/browse/ACM-15276 BMH role #7359

Open
wants to merge 2 commits into
base: 2.13_stage
Choose a base branch
from

Conversation

oafischer
Copy link
Contributor

Also for 2.12, 2.11 and 2.10.

@oafischer oafischer requested a review from carbonin January 8, 2025 10:25
Comment on lines 81 to 82
<2> Replace with the name of your host.
<3> Possible values are `master` or `worker`.
Copy link
Contributor

Choose a reason for hiding this comment

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

These are optional

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@oafischer oafischer requested a review from carbonin January 9, 2025 09:32
<4> The name must match the name of your `InfrEnv` and exist in the same namespace.
<5> If you do not set a value, the `metadata` value is automatically used.
<6> Make sure the MAC address matches the MAC address of one of your host interfaces.
<7> Use the address of the BMC. See _Port access for the out-of-band management IP address_ for more information.
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks really good. The only thing I would caution is that the user has to go search for this resource without any clues.

See section later in this topic? Or something.

Copy link
Contributor

@swopebe swopebe left a comment

Choose a reason for hiding this comment

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

See comment for suggestion, but looks really good.

Copy link

openshift-ci bot commented Jan 9, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: carbonin, oafischer, swopebe

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

----
bmac.agent-install.openshift.io/role: master
----

Choose a reason for hiding this comment

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

Thank you for taking care of the scaling parts!
We have to add the annotation when we create a BareMetalHost resource. We cannot add the annotation after creating it, because Agent resource is automatically approved and the node installation will be automatically completed.
And, setting the agent to master is required only when we're using discovery ISO method, not BareMetalHost.
I wrote my suggestion below. What do you think about it?

. Complete the steps in xref:scale_node_ocp.adoc#add-nodes-cim-ocp[Adding worker nodes to {ocp-short} clusters] for your the new control plane node.
  If you are using a `BareMetalHost` to add a node, add the following line to your `BareMetalHost` annotations when creating the `BareMetalHost` resource:

+
[source,yaml]
----
    bmac.agent-install.openshift.io/role: master
----

. If you are using discovery ISO to add a node, set the agent to `master` before you approve the agent by running the following command:
+
[source,bash]
----
oc patch agent <AGENT-NAME> -p '{"spec":{"role": "master"}}' --type=merge
----
+
*Note:* CSRs are not automatically approved.

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

Successfully merging this pull request may close these issues.

4 participants