Cloud TPU API - Create Node - Malformed Name

40 views
Skip to first unread message

paulo milheiro

unread,
Feb 26, 2022, 3:12:03 PM2/26/22
to Google Cloud Endpoints

Hi! Im trying to create a Google Cloud TPU node using TPU client API and I cannot figure out the parent resource name of a TPU node in Google Cloud.I tried all the possible combinations, for example:

And I always get the same error (google.api_core.exceptions.InvalidArgument: 400 Malformed name) :

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Malformed name: 'projects/my-project-id/locations/europe-west4-a/nodes/'"
 debug_error_string = "{"created":"@1645878700.379000000","description":"Error received from peer ipv4:142.250.179.170:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Malformed name: 'projects/my-project-id/locations/europe-west4-a/nodes/'","grpc_status":3}"

Im using Python 3.8, google-cloud-tpu v1.2.1, on a Conda virtualenv.

Any help would be much apprecciated!

George Suceveanu

unread,
Feb 28, 2022, 1:07:28 PM2/28/22
to Google Cloud Endpoints
Hello, 

The pattern for parent is "pattern": "^projects/[^/]+/locations/[^/]+$". More related detail can be found on the related GitHub page. Some of the values for parameters might not be right, for instance europe-west4-a might be europe-west4. 

This discussion group is oriented more towards general opinions, trends, and issues of general nature touching Cloud Endpoints. For coding and program architecture, as well as Cloud TPU API parameter patterns, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help. 
Reply all
Reply to author
Forward
0 new messages