Description of problem: Calling 'supported-platforms' returns ['baremetal'] only even if all the hosts are ovirt/vsphere vms Version-Release number of selected component (if applicable): All How reproducible: Always Steps to Reproduce: 1. Create a cluster. 2. Download the ISO 2. Use the ISO to boot all the VMs from the same platform (oVirt or vSphere) 3. Wait for the VMs to be discovered. 4. Call the 'supported-platforms' endpoint Actual results: only ['baremetal'] platform is returned Expected results: ['baremetal', 'ovirt'] or ['baremetal', 'vsphere'] is returned. Additional info: The problem seems to be the SNO check.
SNO support only none platform. it's a bug to return baremetal https://github.com/openshift/assisted-service/blob/52fe780cb49242dc1bddc2fcba490a9047ee17fa/internal/bminventory/inventory.go#L2051-L2053
Is this bug reported on SNO or multi-node?
Multinode, SNO should show '[baremetal]' only I believe.
@mmartinv in the description you wrote "The problem seems to be the SNO check." SNO should return None platform.
Of course @mfilanov is right, SNO should return ['none'] (sorry I just returned from PTO, :D), but "The problem seems to be the SNO check." is still valid, we just have two bugs instead of one: 1. How SNO is detected. 2. The returned value once it's detected. I pushed https://github.com/openshift/assisted-service/pull/3089 before Christmas, it should fix this, but it looks like this bug as an incorrect target... :(
OK thanks assigned to you then
The issue resolved partially on v2.4.2 Now: "platform": { "ovirt": {}, "type": "baremetal" }, "platform": { "ovirt": {}, "type": "vsphere" }, which is not correct. Going to close bugzilla and reported new ticket https://issues.redhat.com/browse/MGMT-10628