Bug 2009127

Summary: [GCP] Error when creating machines in GCP: The URL is malformed
Product: OpenShift Container Platform Reporter: Reetika Vyas <revyas>
Component: Cloud ComputeAssignee: Joel Speed <jspeed>
Cloud Compute sub component: Other Providers QA Contact: sunzhaohua <zhsun>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: unspecified CC: aabhishe, dmoiseev, mbargenq, wking
Version: 4.9Keywords: ServiceDeliveryImpact
Target Milestone: ---   
Target Release: ---   
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-10-06 12:50:34 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 Reetika Vyas 2021-09-30 03:14:20 UTC
Description of problem:

It doesn't have <>/projects/<projectname>  in
'https://compute.googleapis.com/compute/v1/o-bcd57f4f/global/images/osd-v4-fmvr6-rhcos-image'


Version-Release number of selected component (if applicable):
Upgrading from  4.9.0-rc.1 to 4.9.0-rc.4

How reproducible:


Steps to Reproduce:

oc logs machine-api-controllers-78584976c8-mb7nf -c machine-controller -n openshift-machine-api

I0928 06:54:11.730579       1 controller.go:470] Actuator returned invalid configuration error: error launching instance: googl
eapi: Error 400: Invalid value for field 'resource.disks[0].initializeParams.sourceImage': 'https://compute.googleapis.com/comp
ute/v1/o-bcd57f4f/global/images/osd-v4-fmvr6-rhcos-image'. The URL is malformed., invalid
I0928 06:54:11.730588       1 controller.go:482] osd-v4-fmvr6-w-c-upgrade-6fhqx: going into phase "Failed"
Actual results:


Expected results:
Example: GET https://compute.googleapis.com/compute/v1/projects/{project}/global/images

Additional info:

https://github.com/openshift/cluster-api-provider-gcp/blob/release-4.9/pkg/cloud/gcp/actuators/machine/reconciler.go#L74

Comment 2 dmoiseev 2021-10-06 12:50:34 UTC

*** This bug has been marked as a duplicate of bug 2009111 ***