Open 1hermast opened 3 months ago
Error Message: failed: [localhost] ": "Error deleting qtree xxx: calling: storage/qtrees/5250194a-4c01-413a-8d5b-2adb2687bb86: got job reported error: Timeout error: Process still running, received {'job': {'uuid': 'd708b0a5-d197-11ee-9138-d039ea45654b', '_links': {'self': {'href': '/api/cluster/jobs/d708b0a5-d197-11ee-9138-d039ea45654b'}}}}.."
@1hermast sorry for the late reply, looking in to this
Let me have the team check what going on here. base of your playbook, and the code it looks like the initial delete is throwing the error, but we'll check why that is
if self.use_rest:
api = "storage/qtrees/%s" % self.volume_uuid
query = {'return_timeout': 3}
response, error = rest_generic.delete_async(self.rest_api, api, self.qid, query)
if self.parameters['wait_for_completion']:
dummy, error = rrh.check_for_error_and_job_results(api, response, error, self.rest_api)
if error:
self.module.fail_json(msg='Error deleting qtree %s: %s' % (self.parameters['name'], error))
We have story DEVOPS-6940 open for this fix.
Summary
i tried to delete qtrees with the "na_ontap_qtree" Module with the options "force_delete: yes" and "wait_for_completion: false" that should actually delete the qtree and files in the background. but i get folowing message: timeout when deleting qtree
Component Name
na_ontap_qtree:
Ansible Version
ONTAP Collection Version
ONTAP Version
Playbook
Steps to Reproduce
create a qtree with thousands of files and dry to delete the directory
Expected Results
the files schould be deleted in the background, without getting a timeout message
Actual Results