Babis Kiosidis
02/24/2022, 11:39 AM$ flyte-cli -h flyteadmin.host update-cluster-resource-attributes -p flyte-java-build-test -d production --attributes ksa_annotation ksa_value
Traceback (most recent call last):
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/flytekit/clients/raw.py", line 131, in handler
return fn(*args, **kwargs)
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/flytekit/clients/raw.py", line 701, in update_project_domain_attributes
return self._stub.UpdateProjectDomainAttributes(
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/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.ALREADY_EXISTS
details = "value with matching already exists (duplicate key value violates unique constraint "resource_idx")"
debug_error_string = "{"created":"@1645702544.400290000","description":"Error received from peer ipv4:10.173.33.105:8443","file":"src/core/lib/surface/call.cc","file_line":1070,"grpc_message":"value with matching already exists (duplicate key value violates unique constraint "resource_idx")","grpc_status":6}"
>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/babisk/.pyenv/versions/3.8.9/bin/flyte-cli", line 8, in <module>
sys.exit(_flyte_cli())
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/flytekit/clis/flyte_cli/main.py", line 2189, in update_cluster_resource_attributes
client.update_project_domain_attributes(project, domain, matching_attributes)
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/flytekit/clients/friendly.py", line 902, in update_project_domain_attributes
super(SynchronousFlyteClient, self).update_project_domain_attributes(
File "/Users/babisk/.pyenv/versions/3.8.9/lib/python3.8/site-packages/flytekit/clients/raw.py", line 145, in handler
raise _user_exceptions.FlyteEntityAlreadyExistsException(e)
flytekit.common.exceptions.user.FlyteEntityAlreadyExistsException: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.ALREADY_EXISTS
details = "value with matching already exists (duplicate key value violates unique constraint "resource_idx")"
debug_error_string = "{"created":"@1645702544.400290000","description":"Error received from peer ipv4:10.173.33.105:8443","file":"src/core/lib/surface/call.cc","file_line":1070,"grpc_message":"value with matching already exists (duplicate key value violates unique constraint "resource_idx")","grpc_status":6}"
Prafulla Mahindrakar
02/24/2022, 12:40 PMdomain: production
project: flyte-java-build-test
attributes:
ksa_annotation: "ksa_value"
flytectl update cluster-resource-attribute --attrFile attr.yaml
I tried the same on latest admin and it worked when i fired multiple requests.Ketan (kumare3)
Babis Kiosidis
02/24/2022, 7:11 PMPrafulla Mahindrakar
02/25/2022, 6:19 AM