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

Bug 1938426

Summary: [OSP] Validation should fail when no any IaaS flavor or type related field are given
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: InstallerAssignee: Mike Fedosin <mfedosin>
Installer sub component: OpenShift on OpenStack QA Contact: Jon Uriarte <juriarte>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: low CC: andbartl, m.andre, padillon, pprinett
Version: 4.7Keywords: Triaged
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-06 11:38:38 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: 1903055    
Bug Blocks:    

Comment 1 Emilien Macchi 2021-03-24 16:54:02 UTC
*** Bug 1942512 has been marked as a duplicate of this bug. ***

Comment 9 Jon Uriarte 2021-06-29 11:01:36 UTC
Verified in OCP 4.7.0-0.nightly-2021-06-26-014854 on top of OSP 16.1.6 (RHOS-16.1-RHEL-8-20210506.n.1).

Removed computeFlavor from the install-config:

# install-config.yaml 
...
platform:
  openstack:
    cloud:            "shiftstack"
    externalNetwork:  "nova"
    region:           "regionOne"
    #computeFlavor:    "m4.xlarge"
    lbFloatingIP:     "x.x.x.x"
    ingressFloatingIP:     "y.y.y.y"
    externalDNS:      ["z.z.z.z"]
    
intall-config validation fails as expected:

IPI:
---

$ openshift-install create cluster --log-level=debug --dir=/home/stack/ostest/                                                                                                                                         
DEBUG OpenShift Installer 4.7.0-0.nightly-2021-06-26-014854
DEBUG Built from commit 3948d1fe9f04057823b871133085d602e6575067
DEBUG Fetching Metadata...
DEBUG Loading Metadata...
DEBUG   Loading Cluster ID...
DEBUG     Loading Install Config...
DEBUG       Loading SSH Key...
DEBUG       Loading Base Domain...
DEBUG         Loading Platform...
DEBUG       Loading Cluster Name...
DEBUG         Loading Base Domain...
DEBUG         Loading Platform...
DEBUG       Loading Networking...
DEBUG         Loading Platform...
DEBUG       Loading Pull Secret...
DEBUG       Loading Platform...
FATAL failed to fetch Metadata: failed to load asset "Install Config": [controlPlane.platform.openstack.type: Required value: Flavor name must be provided, compute[0].platform.openstack.type: Required value: Flavor name must be provided]


UPI:
---

$ openshift-install create manifests --log-level=debug --dir=/home/stack/ostest/
DEBUG OpenShift Installer 4.7.0-0.nightly-2021-06-26-014854 
DEBUG Built from commit 3948d1fe9f04057823b871133085d602e6575067 
DEBUG Fetching Master Machines...                  
DEBUG Loading Master Machines...                   
DEBUG   Loading Cluster ID...                      
DEBUG     Loading Install Config...                
DEBUG       Loading SSH Key...                     
DEBUG       Loading Base Domain...                 
DEBUG         Loading Platform...                  
DEBUG       Loading Cluster Name...                
DEBUG         Loading Base Domain...               
DEBUG         Loading Platform...                  
DEBUG       Loading Networking...                  
DEBUG         Loading Platform...                  
DEBUG       Loading Pull Secret...                 
DEBUG       Loading Platform...                    
FATAL failed to fetch Master Machines: failed to load asset "Install Config": [controlPlane.platform.openstack.type: Required value: Flavor name must be provided, compute[0].platform.openstack.type: Required value: Flavor name must be provided]

Comment 11 errata-xmlrpc 2021-07-06 11:38:38 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 (OpenShift Container Platform 4.7.19 bug fix 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/RHBA-2021:2554