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
I am not able to reproduce locally, because I am not sure how I can clean resources created by QA user.
09:58:24 Capacity reservation is not enabled. Skipping reservation.
09:58:25 Going to get all instances from GCE
09:58:26 Done. Found total of 1 instances.
09:58:26 Going to delete: sct-runner-1-8-instance-dbb7a2e1 (gcp-sct-project-1 project)
09:58:28 Failure to communicate resource deletion to Argus
09:58:28 Traceback (most recent call last):
09:58:28 File "/tmp/jenkins/workspace/QA-tools/hydra-clean-test-resources/scylla-cluster-tests/sdcm/utils/argus.py", line 50, in terminate_resource_in_argus
09:58:28 client.terminate_resource(name=resource_name, reason="clean-resources: Graceful Termination")
09:58:28 File "/tmp/jenkins/workspace/QA-tools/hydra-clean-test-resources/scylla-cluster-tests/argus/client/sct/client.py", line 194, in terminate_resource
09:58:28 self.check_response(response)
09:58:28 File "/tmp/jenkins/workspace/QA-tools/hydra-clean-test-resources/scylla-cluster-tests/argus/client/base.py", line 68, in check_response
09:58:28 raise ArgusClientError(
09:58:28 argus.client.base.ArgusClientError: ('API Error encountered using endpoint: POST /api/v1/client/sct/dbb7a2e1-b4b3-4062-a97e-f3e8ffe7196d/resource/sct-runner-1-8-instance-dbb7a2e1/terminate', 'Resource not found')
09:58:28 sct-runner-1-8-instance-dbb7a2e1 deleted=<google.cloud.compute_v1.services.instances.client.InstancesClient.delete.<locals>._CustomOperation object at 0x7f8afe0c8850>
09:58:28 Cleanup for the {'TestId': 'dbb7a2e1-b4b3-4062-a97e-f3e8ffe7196d'} resources has been finished
The text was updated successfully, but these errors were encountered:
We are currently not adding the sct-runner to the resource table, which is what causes this issue. I'll do a PR in argus to add SCT runner to the table so that it can be correctly marked as terminated by clean-resources
k0machi
added a commit
to k0machi/argus
that referenced
this issue
Dec 16, 2024
This commit adds logic to add SCT runner to the resource table and also
adds client support for its name. Additionally, it adds a workaround for
older client versions, where SCT runner will be submitted without a
name.
Fixesscylladb/scylla-cluster-tests#9543
I tried clean-resources jenkins job (https://jenkins.scylladb.com/view/QA/job/QA-tools/job/hydra-clean-test-resources/76/) to clean up resources from https://argus.scylladb.com/tests/scylla-cluster-tests/dbb7a2e1-b4b3-4062-a97e-f3e8ffe7196d. But it failed with API Error.
I am not able to reproduce locally, because I am not sure how I can clean resources created by QA user.
The text was updated successfully, but these errors were encountered: