-
Notifications
You must be signed in to change notification settings - Fork 199
Add extra worker to cluster after dev-scripts install is complete #1807
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
base: master
Are you sure you want to change the base?
Add extra worker to cluster after dev-scripts install is complete #1807
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Assisted by: Claude
4a379ed to
de2a91f
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.
You should not commit this file
| name: ${CLUSTER_NAME}-${WORKER_NAME} | ||
| namespace: openshift-machine-api | ||
| labels: | ||
| infraenvs.agent-install.openshift.io: ${CLUSTER_NAME} |
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.
This should not be here: it requires assisted components
| address: ${BMC_FULL_ADDRESS} | ||
| credentialsName: ${CLUSTER_NAME}-${WORKER_NAME}-bmc-secret | ||
| disableCertificateVerification: true | ||
| automatedCleaningMode: disabled |
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.
Hmm, why?
| BMH_NAME="${CLUSTER_NAME}-${WORKER_NAME}" | ||
| if oc get baremetalhost -n openshift-machine-api "$BMH_NAME" &>/dev/null; then | ||
| echo "Deleting BareMetalHost ${BMH_NAME}..." | ||
| oc delete baremetalhost -n openshift-machine-api "$BMH_NAME" || true |
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.
I wonder why errors are ignored in all these calls
| MACHINES=$(oc get machine -n openshift-machine-api -o name | grep -i "$WORKER_NAME" || true) | ||
| if [ -n "$MACHINES" ]; then | ||
| echo "Found machines: $MACHINES" | ||
| echo "$MACHINES" | xargs -r oc delete -n openshift-machine-api || true |
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.
Are you sure it's the right process? I think you need to scale down MachineSet, otherwise it will create another machine
Assisted by: Claude