Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2256449

Summary: [rhosp 17.1][osp-d operator] when creating osbms, it select bmh with inspecting state instead of available
Product: Red Hat OpenStack Reporter: Martin Schuppert <mschuppe>
Component: osp-director-operator-containerAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: jschluet, mburns, morazi, mschuppe, mzheng, pkomarov, ramishra, rhos-maint
Target Milestone: z3Keywords: Triaged
Target Release: 17.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: osp-director-operator-container-1.3.1-14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2255787 Environment:
Last Closed: 2024-05-29 19:50:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2255787    
Bug Blocks:    

Comment 3 pkomarov 2024-05-23 12:42:45 UTC
Verified , 

[root@titan131 logs]# grep -ir "BaremetalHost ProvisioningState is not" *must-gather-20240519T212256253993/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:17:56.316854389Z 2024-05-19T20:17:56.316Z    INFO    baremetalset-resource   BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212256253993/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:17:56.316854389Z 2024-05-19T20:17:56.316Z    INFO    baremetalset-resource   BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212256253993/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:17:56.316854389Z 2024-05-19T20:17:56.316Z    INFO    baremetalset-resource   BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212256253993/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:20:06.384233890Z 2024-05-19T20:20:06.384Z    INFO    controllers.OpenStackBaremetalSet       BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212256253993/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:20:06.384233890Z 2024-05-19T20:20:06.384Z    INFO    controllers.OpenStackBaremetalSet       BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212256253993/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:20:06.384233890Z 2024-05-19T20:20:06.384Z    INFO    controllers.OpenStackBaremetalSet       BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212909190258/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:17:56.316854389Z 2024-05-19T20:17:56.316Z    INFO    baremetalset-resource   BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212909190258/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:17:56.316854389Z 2024-05-19T20:17:56.316Z    INFO    baremetalset-resource   BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212909190258/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:17:56.316854389Z 2024-05-19T20:17:56.316Z    INFO    baremetalset-resource   BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212909190258/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:20:06.384233890Z 2024-05-19T20:20:06.384Z    INFO    controllers.OpenStackBaremetalSet       BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212909190258/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:20:06.384233890Z 2024-05-19T20:20:06.384Z    INFO    controllers.OpenStackBaremetalSet       BaremetalHost ProvisioningState is not 'Available'
must-gather-20240519T212909190258/quay-io-openstack-k8s-operators-must-gather-sha256-9af2867f0d06c5af3a5562ce133b66e94dacd6b487f00c111bc27315cc6df8d4/namespaces/openstack/pods/osp-director-operator-controller-manager-68cd6cbf8c-pflwp/manager/manager/logs/current.log:2024-05-19T20:20:06.384233890Z 2024-05-19T20:20:06.384Z    INFO    controllers.OpenStackBaremetalSet       BaremetalHost ProvisioningState is not 'Available'


2024-05-19T20:17:56.316878336Z 2024-05-19T20:17:56.316Z INFO    baremetalset-resource   Available BaremetalHost: openshift-worker-0
2024-05-19T20:17:56.317088154Z 2024-05-19T20:17:56.317Z INFO    baremetalset-resource   Found sufficient quantity of BaremetalHosts ([{{BareMetalHost metal3.io/v1alpha1} {openshift-worker-1  openshift-machine-api  39f7ac57-4421-4fe3-b48f-fccfaf30f1ff 49207 1 2024-05-19 20:17:41 +0000 UTC <nil> <nil> map[app:openstack] map[inspect.metal3.io:disabled kubectl.kubernetes.io/last-applied-configuration:{"apiVersion":"metal3.io/v1alpha1","kind":"BareMetalHost","metadata":{"annotations":{"inspect.metal3.io":"disabled"},"labels":{"app":"openstack"},"name":"openshift-worker-1","namespace":"openshift-machine-api"},"spec":{"bmc":{"address":"idrac://10.46.2.226","credentialsName":"openshift-worker-1-bmc-secret"},"bootMACAddress":"6c:fe:54:0a:bc:f2","bootMode":"legacy","hardwareProfile":"unknown","online":false,"rootDeviceHints":{"deviceName":"/dev/sda"}}}

Passing CI : 
https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/view/DFG/view/ospk8s/view/qe/job/DFG-ospk8s-osp-director-dev-tools-qe-17.1_hybrid_nfv_sriov_dpdk/46/

Comment 7 errata-xmlrpc 2024-05-29 19:50:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat OpenStack Platform 17.1 director Operator container images security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:2728