Skip to content

Conversation

@MahnoorAsghar
Copy link
Contributor

@MahnoorAsghar MahnoorAsghar commented Nov 7, 2025

Assisted by: Claude

@openshift-ci openshift-ci bot requested review from andfasano and bfournie November 7, 2025 17:01
@openshift-ci
Copy link

openshift-ci bot commented Nov 7, 2025

[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 assign zaneb for approval. For more information see the 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

@MahnoorAsghar MahnoorAsghar force-pushed the add-vm-bmc-post-install branch from 4a379ed to de2a91f Compare November 7, 2025 17:02
Copy link
Member

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}
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants