Bug 1906517

Summary: Validation is not robust enough and may prevent to generate install-confing.
Product: OpenShift Container Platform Reporter: Martin André <m.andre>
Component: InstallerAssignee: Martin André <m.andre>
Installer sub component: OpenShift on OpenStack QA Contact: weiwei jiang <wjiang>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high    
Version: 4.6   
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: A missing guard in the OpenStack validations could potentially lead to fetch the list of subnets with an empty subnet ID, and cause some non-RHOSP clouds to return unexpected values. Consequence: The unexpected error code would fail validation and prevent to install OpenShift on these non-RHOSP clouds. Fix: Add a missing guard against empty subnet ID Result: Validation now returns the expected result and as a consequence it is now possible to install OpenShift on more clouds.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:41:57 UTC Type: Bug
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:    
Bug Blocks: 1913813    

Description Martin André 2020-12-10 17:18:51 UTC
The bug was initially reported in https://github.com/openshift/okd/issues/418.

Some clouds may return a generic 404 error instead of an ErrResourceNotFound error, causing the installer to fail with:

    FATAL failed to fetch Install Config: failed to generate asset "Install Config": failed to generate OpenStack cloud info: failed to fetch machine subnet info: Resource not found



openshift-install create install-config --log-level=debug --dir=./
DEBUG OpenShift Installer 4.6.0-0.okd-2020-11-27-200126 
DEBUG Built from commit 7b5bd8be9e5f18cc9b8af5f95d629ddd64c015cc 
DEBUG Fetching Install Config...                   
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 Pull Secret...                     
DEBUG   Loading Platform...                        
DEBUG   Fetching SSH Key...                        
DEBUG   Generating SSH Key...                      
? SSH Public Key /home/ubuntu/.ssh/rsa.pub
DEBUG   Fetching Base Domain...                    
DEBUG     Fetching Platform...                     
DEBUG     Generating Platform...                   
? Platform openstack
? Cloud shiftstack
? ExternalNetwork ext_net
? APIFloatingIPAddress *.*.*.*
? FlavorName c4.m16
DEBUG   Generating Base Domain...                  
? Base Domain example.org
DEBUG   Fetching Cluster Name...                   
DEBUG     Fetching Base Domain...                  
DEBUG     Reusing previously-fetched Base Domain   
DEBUG     Fetching Platform...                     
DEBUG     Reusing previously-fetched Platform      
DEBUG   Generating Cluster Name...                 
? Cluster Name okd-cluster
DEBUG   Fetching Pull Secret...                    
DEBUG   Generating Pull Secret...                  
? Pull Secret [? for help] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
DEBUG   Fetching Platform...                       
DEBUG   Reusing previously-fetched Platform        
DEBUG Generating Install Config...                 
FATAL failed to fetch Install Config: failed to generate asset "Install Config": failed to generate OpenStack cloud info: failed to fetch machine subnet info: Resource not found

Comment 8 errata-xmlrpc 2021-02-24 15:41:57 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement 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-2020:5633