swift-lizard-86320
09/17/2022, 4:31 PMpyflyte run --remote core/flyte_basics/hello_world.py my_wf
after setting up a cluster on gcloud, I think it has something to do with my SSL setup being incorrect?freezing-airport-6809
freezing-airport-6809
swift-lizard-86320
09/17/2022, 6:53 PMswift-lizard-86320
09/17/2022, 6:53 PMswift-lizard-86320
09/17/2022, 6:54 PMswift-lizard-86320
09/17/2022, 6:54 PMswift-lizard-86320
09/17/2022, 6:55 PMswift-lizard-86320
09/17/2022, 6:55 PMswift-lizard-86320
09/17/2022, 6:56 PMhelm install cert-manager --namespace flyte --version v0.12.0 jetstack/cert-manager
`)swift-lizard-86320
09/17/2022, 6:56 PMError: failed to install CRD crds/certificaterequests.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "<http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1>"
swift-lizard-86320
09/18/2022, 4:33 AMdetails = "failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.
Details:
[
{
"@type": "<http://type.googleapis.com/google.rpc.ErrorInfo|type.googleapis.com/google.rpc.ErrorInfo>",
"domain": "<http://googleapis.com|googleapis.com>",
"metadata": {
"method": "google.iam.credentials.v1.IAMCredentials.SignBlob",
"service": "<http://iamcredentials.googleapis.com|iamcredentials.googleapis.com>"
},
"reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT"
}
]"
freezing-airport-6809
swift-lizard-86320
09/18/2022, 4:35 AMswift-lizard-86320
09/18/2022, 4:35 AMfreezing-airport-6809
swift-lizard-86320
09/18/2022, 4:35 AMfreezing-airport-6809
freezing-airport-6809
swift-lizard-86320
09/18/2022, 4:40 AMswift-lizard-86320
09/18/2022, 6:02 AMfreezing-airport-6809
swift-lizard-86320
09/19/2022, 6:29 PMfreezing-airport-6809
freezing-boots-56761
ACCESS_TOKEN_SCOPE_INSUFFICIENT
message? locally?freezing-boots-56761
freezing-boots-56761
storage:
type: stow
stow:
kind: google
config:
json: ""
# replace with the GCP project ID
project_id:
scopes: <https://www.googleapis.com/auth/devstorage.read_write>
freezing-airport-6809
freezing-boots-56761
details = "failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.
freezing-boots-56761
freezing-boots-56761
pyflyte run
commandswift-lizard-86320
09/19/2022, 7:14 PMswift-lizard-86320
09/19/2022, 7:15 PMswift-lizard-86320
09/19/2022, 7:16 PMarmaangoel78@cloudshell:~/Gauntlet/flytesnacks/cookbook (gauntletai)$ pyflyte run --remote core/flyte_basics/hello_world.py my_wf
{"asctime": "2022-09-19 19:16:13,698", "name": "flytekit.cli", "levelname": "ERROR", "message": "Non-auth RPC error <_InactiveRpcError of RPC that terminated with:\n\tstatus = StatusCode.UNKNOWN\n\tdetails = \"failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.\nDetails:\n[\n {\n \"@type\": \"<http://type.googleapis.com/google.rpc.ErrorInfo\|type.googleapis.com/google.rpc.ErrorInfo\>",\n \"domain\": \"googleapis.com\",\n \"metadata\": {\n \"method\": \"google.iam.credentials.v1.IAMCredentials.SignBlob\",\n \"service\": \"iamcredentials.googleapis.com\"\n },\n \"reason\": \"ACCESS_TOKEN_SCOPE_INSUFFICIENT\"\n }\n]\"\n\tdebug_error_string = \"{\"created\":\"@1663614973.698578904\",\"description\":\"Error received from peer ipv4:35.199.161.247:443\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":966,\"grpc_message\":\"failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.\\nDetails:\\n[\\n {\\n \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\\n \"domain\": \"<http://googleapis.com|googleapis.com>\",\\n \"metadata\": {\\n \"method\": \"google.iam.credentials.v1.IAMCredentials.SignBlob\",\\n \"service\": \"<http://iamcredentials.googleapis.com|iamcredentials.googleapis.com>\"\\n },\\n \"reason\": \"ACCESS_TOKEN_SCOPE_INSUFFICIENT\"\\n }\\n]\",\"grpc_status\":2}\"\n>, sleeping 200ms and retrying"}
{"asctime": "2022-09-19 19:16:13,917", "name": "flytekit.cli", "levelname": "ERROR", "message": "Non-auth RPC error <_InactiveRpcError of RPC that terminated with:\n\tstatus = StatusCode.UNKNOWN\n\tdetails = \"failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.\nDetails:\n[\n {\n \"@type\": \"<http://type.googleapis.com/google.rpc.ErrorInfo\|type.googleapis.com/google.rpc.ErrorInfo\>",\n \"domain\": \"googleapis.com\",\n \"metadata\": {\n \"method\": \"google.iam.credentials.v1.IAMCredentials.SignBlob\",\n \"service\": \"iamcredentials.googleapis.com\"\n },\n \"reason\": \"ACCESS_TOKEN_SCOPE_INSUFFICIENT\"\n }\n]\"\n\tdebug_error_string = \"{\"created\":\"@1663614973.917603494\",\"description\":\"Error received from peer ipv4:35.199.161.247:443\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":966,\"grpc_message\":\"failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.\\nDetails:\\n[\\n {\\n \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\\n \"domain\": \"<http://googleapis.com|googleapis.com>\",\\n \"metadata\": {\\n \"method\": \"google.iam.credentials.v1.IAMCredentials.SignBlob\",\\n \"service\": \"<http://iamcredentials.googleapis.com|iamcredentials.googleapis.com>\"\\n },\\n \"reason\": \"ACCESS_TOKEN_SCOPE_INSUFFICIENT\"\\n }\\n]\",\"grpc_status\":2}\"\n>, sleeping 400ms and retrying"}
Traceback (most recent call last):
File "/home/armaangoel78/.local/bin/pyflyte", line 8, in <module>
sys.exit(main())
File "/home/armaangoel78/.local/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/armaangoel78/.local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/armaangoel78/.local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/armaangoel78/.local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/flytekit/clis/sdk_in_container/run.py", line 539, in _run
remote_entity = remote.register_script(
File "/home/armaangoel78/.local/lib/python3.9/site-packages/flytekit/remote/remote.py", line 596, in register_script
upload_location, md5_bytes = fast_register_single_script(
File "/home/armaangoel78/.local/lib/python3.9/site-packages/flytekit/tools/script_mode.py", line 113, in fast_register_single_script
upload_location = create_upload_location_fn(content_md5=md5)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/flytekit/clients/friendly.py", line 998, in get_upload_signed_url
return super(SynchronousFlyteClient, self).create_upload_location(
File "/home/armaangoel78/.local/lib/python3.9/site-packages/flytekit/clients/raw.py", line 41, in handler
return fn(*args, **kwargs)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/flytekit/clients/raw.py", line 854, in create_upload_location
return self._dataproxy_stub.CreateUploadLocation(create_upload_location_request, metadata=self._metadata)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/home/armaangoel78/.local/lib/python3.9/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.
Details:
[
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"domain": "googleapis.com",
"metadata": {
"method": "google.iam.credentials.v1.IAMCredentials.SignBlob",
"service": "iamcredentials.googleapis.com"
},
"reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT"
}
]"
debug_error_string = "{"created":"@1663614974.333626746","description":"Error received from peer ipv4:35.199.161.247:443","file":"src/core/lib/surface/call.cc","file_line":966,"grpc_message":"failed to create a signed url. Error: unable to sign bytes: googleapi: Error 403: Request had insufficient authentication scopes.\nDetails:\n[\n {\n "@type": "type.googleapis.com/google.rpc.ErrorInfo",\n "domain": "googleapis.com",\n "metadata": {\n "method": "google.iam.credentials.v1.IAMCredentials.SignBlob",\n "service": "<http://iamcredentials.googleapis.com|iamcredentials.googleapis.com>"\n },\n "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT"\n }\n]","grpc_status":2}"
>
swift-lizard-86320
09/19/2022, 7:21 PMswift-lizard-86320
09/19/2022, 7:22 PMfreezing-boots-56761
freezing-boots-56761
swift-lizard-86320
09/19/2022, 7:23 PMswift-lizard-86320
09/19/2022, 7:23 PMfreezing-boots-56761
kubectl get configmap -n flyte <name of configmap> -o yaml
freezing-boots-56761
File "/home/armaangoel78/.local/lib/python3.9/site-packages/flytekit/clients/raw.py", line 854, in create_upload_location
return self._dataproxy_stub.CreateUploadLocation(create_upload_location_request, metadata=self._metadata)
swift-lizard-86320
09/19/2022, 7:25 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-boots-56761
freezing-boots-56761
freezing-boots-56761
freezing-boots-56761
freezing-boots-56761
high-park-82026
flytectl config init --host <flyte url>
flytectl register examples -p flytesnacks -d development
This should register all examples we have in flytesnacks… then go to the UI and run any of the workflows… let’s confirm this scenario works first…swift-lizard-86320
09/19/2022, 9:25 PMswift-lizard-86320
09/19/2022, 9:26 PMswift-lizard-86320
09/19/2022, 9:28 PMswift-lizard-86320
09/19/2022, 9:28 PM----------------------------------------------------------------------------------------------- -------- -------------------------------------------------------
| NAME | STATUS | ADDITIONAL INFO |
----------------------------------------------------------------------------------------------- -------- -------------------------------------------------------
| /tmp/register1646303769/snacks-cookbook-case_studies-bioinformatics-blast/0__bash.blastx_1.pb | Failed | Error registering file due to rpc error: code = |
| | | Unavailable desc = name resolver error: produced zero |
| | | addresses |
----------------------------------------------------------------------------------------------- -------- -------------------------------------------------------
1 rows
Error: example 0xc0007b0ab0 failed to register rpc error: code = Unavailable desc = name resolver error: produced zero addresses
swift-lizard-86320
09/19/2022, 9:37 PMfreezing-boots-56761
swift-lizard-86320
09/19/2022, 10:12 PMswift-lizard-86320
09/19/2022, 10:13 PMswift-lizard-86320
09/19/2022, 10:13 PMgcloud iam service-accounts add-iam-policy-binding --role "roles/iam.workloadIdentityUser" --member "serviceAccount:${PROJECT_ID}.svc.id.goog[flyte/flyteadmin]" gsa-flyteadmin@${PROJECT_ID}.<http://iam.gserviceaccount.com|iam.gserviceaccount.com>
swift-lizard-86320
09/19/2022, 10:13 PMswift-lizard-86320
09/19/2022, 10:13 PMswift-lizard-86320
09/19/2022, 10:14 PMfreezing-boots-56761
swift-lizard-86320
09/20/2022, 4:43 AMswift-lizard-86320
09/20/2022, 4:43 AMswift-lizard-86320
09/20/2022, 4:43 AMswift-lizard-86320
09/20/2022, 5:11 AMswift-lizard-86320
09/20/2022, 5:12 AMswift-lizard-86320
09/20/2022, 5:13 AMswift-lizard-86320
09/20/2022, 5:14 AMswift-lizard-86320
09/20/2022, 5:34 AMfreezing-boots-56761