Bug 1906517 - Validation is not robust enough and may prevent to generate install-confing.
Summary: Validation is not robust enough and may prevent to generate install-confing.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.7.0
Assignee: Martin André
QA Contact: weiwei jiang
URL:
Whiteboard:
Depends On:
Blocks: 1913813
TreeView+ depends on / blocked
 
Reported: 2020-12-10 17:18 UTC by Martin André
Modified: 2021-02-24 15:42 UTC (History)
0 users

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.
Clone Of:
Environment:
Last Closed: 2021-02-24 15:41:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 4474 0 None closed Bug 1906517: OpenStack: Skip collecting info for empty subnet IDs 2021-02-17 20:48:03 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:42:24 UTC

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


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