-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix the OSBMS scaling KUTTL test #1111
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ apiVersion: osp-director.openstack.org/v1beta1 | |
kind: OpenStackBaremetalSet | ||
metadata: | ||
finalizers: | ||
- baremetalset.osp-director.openstack.org-compute | ||
- baremetalset.osp-director.openstack.org | ||
labels: | ||
ooo-subnetname/ctlplane: "true" | ||
ooo-subnetname/internal_api: "true" | ||
|
@@ -17,7 +17,7 @@ metadata: | |
name: compute | ||
namespace: openstack | ||
spec: | ||
baseImageUrl: http://192.168.111.1/images/rhel-guest-image-8.4-992.x86_64.qcow2 | ||
baseImageUrl: http://192.168.111.1/images/rhel-guest-image-9.2-20230414.17.x86_64.qcow2 | ||
count: 2 | ||
ctlplaneInterface: enp1s0 | ||
roleName: Compute | ||
|
@@ -32,21 +32,3 @@ status: | |
provisioningStatus: | ||
readyCount: 1 | ||
state: Error | ||
--- | ||
# We don't know which BMH was chosen as compute-0 originally, so we use a script to | ||
# check for the "BaremetalHostNotFound" error (as the actual error message will vary | ||
# based on which BMH was actually deleted) | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
namespaced: true | ||
timeout: 600 | ||
commands: | ||
- script: | | ||
set -x | ||
sleep 5 | ||
osbmsstate=$(oc get osbms -n openstack compute -o json | jq -r '.status.provisioningStatus.reason') | ||
if grep -q "Please check BaremetalHost resources and re-add" <<< "$osbmsstate"; then | ||
exit 0 | ||
else | ||
exit 1 | ||
fi | ||
Comment on lines
-35
to
-52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was unnecessary. Just checking the OSBMS |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ apiVersion: osp-director.openstack.org/v1beta1 | |
kind: OpenStackBaremetalSet | ||
metadata: | ||
finalizers: | ||
- baremetalset.osp-director.openstack.org-compute | ||
- baremetalset.osp-director.openstack.org | ||
name: compute | ||
namespace: openstack | ||
spec: | ||
baseImageUrl: http://192.168.111.1/images/rhel-guest-image-8.4-992.x86_64.qcow2 | ||
baseImageUrl: http://192.168.111.1/images/rhel-guest-image-9.2-20230414.17.x86_64.qcow2 | ||
count: 2 | ||
ctlplaneInterface: enp1s0 | ||
deploymentSSHSecret: osp-controlplane-ssh-keys | ||
|
@@ -33,7 +33,4 @@ status: | |
hostname: compute-1 | ||
provisioningStatus: | ||
readyCount: 1 | ||
reason: Existing BaremetalHost "openshift-worker-0" not found for OpenStackBaremetalSet | ||
compute. Please check BaremetalHost resources and re-add "openshift-worker-0" | ||
to continue | ||
Comment on lines
-36
to
-38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was unnecessary. Just checking the OSBMS |
||
state: Error |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ apiVersion: osp-director.openstack.org/v1beta1 | |
kind: OpenStackBaremetalSet | ||
metadata: | ||
finalizers: | ||
- baremetalset.osp-director.openstack.org-compute | ||
- baremetalset.osp-director.openstack.org | ||
name: compute | ||
namespace: openstack | ||
spec: | ||
baseImageUrl: http://192.168.111.1/images/rhel-guest-image-8.4-992.x86_64.qcow2 | ||
baseImageUrl: http://192.168.111.1/images/rhel-guest-image-9.2-20230414.17.x86_64.qcow2 | ||
count: 2 | ||
ctlplaneInterface: enp1s0 | ||
deploymentSSHSecret: osp-controlplane-ssh-keys | ||
|
@@ -33,7 +33,4 @@ status: | |
hostname: compute-1 | ||
provisioningStatus: | ||
readyCount: 1 | ||
reason: Existing BaremetalHost "openshift-worker-0" not found for OpenStackBaremetalSet | ||
compute. Please check BaremetalHost resources and re-add "openshift-worker-0" | ||
to continue | ||
Comment on lines
-36
to
-38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was unnecessary. Just checking the OSBMS |
||
state: Error |
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.
We don't need to pick a specific host/BMH. We just need to delete one of them, and so we now just choose the first one in the list.