You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
failed to create resource: Put "http://localhost:8080/namespaces/default/clouds/gcp/resources/vpe": EOF
which seems to cause the orchestrator to crash:
panic: runtime error: index out of range [0] with length 0
goroutine 68 [running]:
github.com/paraglider-project/paraglider/pkg/gcp.(*privateServiceHandler).readAndProvisionResource(0xc000c749c0, {0x30b0308, 0xc000882c60}, 0xc000e0e5a0, {0xc000eae300, 0x1c}, 0xc0003965b0, {0x4b0b240, 0x0, 0x0})
/home/weit/paraglider/pkg/gcp/resources.go:631 +0x1b9
github.com/paraglider-project/paraglider/pkg/gcp.ReadAndProvisionResource({0x30b0308, 0xc000882c60}, 0xc000e0e5a0, {0xc000eae300, 0x1c}, 0xc0003965b0, {0x4b0b240, 0x0, 0x0}, 0xc000e0e600)
/home/weit/paraglider/pkg/gcp/resources.go:243 +0x11a
github.com/paraglider-project/paraglider/pkg/gcp.(*GCPPluginServer)._CreateResource(0xc000dabee0, {0x30b0308, 0xc000882c60}, 0xc000e0e5a0, 0xc000e0e600)
/home/weit/paraglider/pkg/gcp/plugin.go:438 +0x1665
I updated the below gcp resources.go method to return 1
// Get the subnet requirements for a private service connect attachment
func (r *privateServiceHandler) getNumberAddressSpacesRequired() int {
return 1
}
re-built and run glide command again - which then produced the below error:
failed to create resource: Request failed with status code 400: {"error":"rpc error: code = Unknown desc = unable to read and provision resource: unable to insert address: googleapi: Error 400: Invalid value for field 'resource.purpose': 'PRIVATE_SERVICE_CONNECT'. The type/purpose values are invalid for subnetwork address."}
after updating addressPurpose constant with the below value:
addressPurpose = "GCE_ENDPOINT"
I was able to create a gcp endpoint with glide resource create CLI:
I am looking into this. In the meantime, the additionalAddress(es) value is designed to accommodate cases when a resource requires multiple address spaces to be provisioned. An easy example of this is k8s clusters which need multiple, non-overlapping address spaces for pods, services, etc.
Creating the file
gcp_psc_ep.json
with the below contents:and invoking:
produced the below message:
which seems to cause the orchestrator to crash:
I updated the below gcp resources.go method to return 1
re-built and run glide command again - which then produced the below error:
after updating addressPurpose constant with the below value:
I was able to create a gcp endpoint with
glide resource create
CLI:I would like to ask whether I am missing something or perhaps a fix should be applied.
Thanks.
The text was updated successfully, but these errors were encountered: