Bug 2009127 - [GCP] Error when creating machines in GCP: The URL is malformed
Summary: [GCP] Error when creating machines in GCP: The URL is malformed
Keywords:
Status: CLOSED DUPLICATE of bug 2009111
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Joel Speed
QA Contact: sunzhaohua
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-30 03:14 UTC by Reetika Vyas
Modified: 2021-10-06 12:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-06 12:50:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-api-provider-gcp pull 176 0 None Merged Bug 2009738: [release-4.9] Fix broken path defaulting for disk image 2021-10-04 04:29:59 UTC
Red Hat Bugzilla 2009738 1 unspecified CLOSED [IPI-on-GCP] 'Install a cluster with nested virtualization enabled' failed due to unable to launch compute instances 2021-10-18 17:52:15 UTC

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 ***


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