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

ipi-vsphere: Require min 3 control planes nodes #60488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ VERSION=$(oc adm release info ${TESTING_RELEASE_IMAGE} --output=json | jq -r '.m

set -o errexit

# Ensure at least 3 control planes for vSphere. Single node is not supported.
Copy link
Contributor

Choose a reason for hiding this comment

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

you will probably need to update ci-operator/step-registry/ipi/conf/vsphere/vcm/ipi-conf-vsphere-vcm-commands.sh as well. we are deprecating this step and its possible your workflow might not even be using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in d2eff0b

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rvanderp3 Windows jobs in vSphere are using ipi-vsphere-ovn-hybrid-custom-vxlan-port that relies on ipi-conf-vsphere.

are you saying we should move aways from ipi-conf-vsphere?

Copy link
Contributor

@jcpowermac jcpowermac Jan 9, 2025

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it, makes sense.

CONTROL_PLANE_REPLICAS=${CONTROL_PLANE_REPLICAS:-3}
if [ "${CONTROL_PLANE_REPLICAS}" -lt 3 ]; then
echo "CONTROL_PLANE_REPLICAS must be at least 3 for vSphere"
exit 1
fi

Z_VERSION=1000

if [ ! -z ${VERSION} ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ref:
- name: CONTROL_PLANE_REPLICAS
default: "3"
documentation: |-
the number of the master nodes for ipi on vsphere cluster.
the number of the master nodes for ipi on vsphere cluster. Minimum required 3. Single Node is not
supported in vSphere.
- name: COMPUTE_NODE_REPLICAS
default: "3"
documentation: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ VERSION=$(oc adm release info ${TESTING_RELEASE_IMAGE} --output=json | jq -r '.m

set -o errexit

# Ensure at least 3 control planes for vSphere. Single node is not supported.
CONTROL_PLANE_REPLICAS=${CONTROL_PLANE_REPLICAS:-3}
if [ "${CONTROL_PLANE_REPLICAS}" -lt 3 ]; then
echo "CONTROL_PLANE_REPLICAS must be at least 3 for vSphere"
exit 1
fi

Z_VERSION=1000

if [ ! -z "${VERSION}" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ref:
- name: CONTROL_PLANE_REPLICAS
default: "3"
documentation: |-
the number of the master nodes for ipi on vsphere cluster.
the number of the master nodes for ipi on vsphere cluster. Minimum required 3. Single Node is not
supported in vSphere.
- name: COMPUTE_NODE_REPLICAS
default: "3"
documentation: |-
Expand Down