Bug 2034582 - Calling 'supported-platforms' returns ['baremetal'] only even if all the hosts are ovirt/vsphere vms
Summary: Calling 'supported-platforms' returns ['baremetal'] only even if all the host...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 4.9.0
Assignee: Miguel Martin
QA Contact: Yuri Obshansky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-21 12:01 UTC by Miguel Martin
Modified: 2022-08-28 08:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-28 08:45:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 3089 0 None Merged OCPBUGSM-38736: Fix 'supported-platforms' endpoint 2022-01-19 12:12:40 UTC
Red Hat Bugzilla 2009670 1 None None None 2021-12-21 12:01:03 UTC

Description Miguel Martin 2021-12-21 12:01:04 UTC
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.

Comment 1 Michael Filanov 2021-12-26 09:47:03 UTC
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

Comment 2 Sarah Lavie 2021-12-27 18:01:53 UTC
Is this bug reported on SNO or multi-node?

Comment 3 Miguel Martin 2022-01-10 07:06:06 UTC
Multinode, SNO should show '[baremetal]' only I believe.

Comment 4 Michael Filanov 2022-01-10 07:07:54 UTC
@mmartinv in the description you wrote "The problem seems to be the SNO check."
SNO should return None platform.

Comment 5 Miguel Martin 2022-01-10 07:22:29 UTC

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... :(

Comment 6 Michael Filanov 2022-01-10 07:33:42 UTC
OK thanks assigned to you then

Comment 8 Yuri Obshansky 2022-05-30 18:13:00 UTC
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


Note You need to log in before you can comment on or make changes to this bug.