Bug 1810635

Summary: GCP UPI does not support networks outside of target project
Product: OpenShift Container Platform Reporter: Antonio Escalera <aescaler>
Component: InstallerAssignee: Abhinav Dahiya <adahiya>
Installer sub component: openshift-installer QA Contact: Johnny Liu <jialiu>
Status: CLOSED NOTABUG Docs Contact:
Severity: medium    
Priority: unspecified CC: yanyang
Version: 4.3.z   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 17:05:30 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:

Description Antonio Escalera 2020-03-05 16:05:39 UTC
Description of problem:

In GCP, it is common to have one project with all of the networks, and share them to VPCs in other projects. 
UPI with this topology currently fails when creating manifests.
We need to be able to support shared VPC networking, as this is the current best practices recommendation from Google.

https://cloud.google.com/vpc/docs/shared-vpc#shared_vpc_networks

Version:
4.3.2

How reproducible:

100%

Steps to Reproduce:
1. Create project with networks
2. Share networks to VPC in different project
3. Try to run the OpenShift installer in that different project

Actual results:

$ openshift-install create manifests
FATAL failed to fetch Master Machines: failed to load asset "Install Config": platform.gcp.network: Invalid value: "paas-ops-01": failed to get network paas-ops-01: Get https://www.googleapis.com/compute/v1/projects/xxxxx-paas-ops/global/networks/paas-ops-01?alt=json&prettyPrint=false: context canceled

Expected results:

Manifests are created successfully

Additional info:

Comment 1 Abhinav Dahiya 2020-03-05 17:05:30 UTC
We don't support Shared VPC. This is not a bug.

Please open a RFE https://issues.redhat.com/secure/RapidBoard.jspa?rapidView=5496&view=detail