#na_ontap_file_security_permissions - timeout error

1 messages · Page 1 of 1 (latest)

gray rose
#

I have the following ansible code:

- name: Delete Everyone permissions.
  netapp.ontap.na_ontap_file_security_permissions:
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    https: true
    validate_certs: false
    state: absent
    vserver: "{{ vserver }}"
    access_control: file_directory
    path: "{{ path }}"
    propagation_mode: propagate
    validate_changes: warn
    acls:
      - access: access_allow
        user: "Everyone"
        apply_to:
          this_folder: true
          files: true
          sub_folders: true

When run against a path with low file count, it succeeds with no issues.
When run against a high file count path, I receive the following error:

TASK [Delete Everyone permissions.] ************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error deleting file security permissions acl /target_folder: job reported error: Timeout error: Process still running, received {'job': {'uuid': 'd1f1f758-3b81-11ee-a6d9-00a098f678e8', '_links': {'self': {'href': '/api/cluster/jobs/d1f1f758-3b81-11ee-a6d9-00a098f678e8'}}}}."}

If I continue to run the playbook over again, it will eventually succeed without the error and delete "everyone" from the path.

I'm assuming this is some kind of timeout. Has anyone else experienced this issue and does anyone have a fix?

gray rose
#

A little more detail... When the playbook fails with the timeout error, I can still see the job running on the NetApp using the "job show" command. Is there a way to tell the na_ontap_file_security_permissions module to wait for the job to complete?

strong plume
#

Let me check with the team. A timeout of 0 was hardcode for this specific delete, so let me check why we did this and get back. to you.

gray rose
#

It's also happening with the na_ontap_file_security_permissions_acl module. The next task in the playbook is to set full control permissions and I'm experiencing the same issue.

- name: Set Full Control permissions.
  netapp.ontap.na_ontap_file_security_permissions_acl:
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    https: true
    validate_certs: false
    state: present
    vserver: "{{ vserver }}"
    access_control: file_directory
    path: "{{ path }}"
    propagation_mode: propagate
    validate_changes: warn
    access: access_allow
    acl_user: "BUILTIN\\Administrators"
    advanced_rights:
      full_control: true
    apply_to:
      this_folder: true
      files: true
      sub_folders: true

TASK [Set Full Control permissions.] ***********************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating file security permissions acl /target_folder: job reported error: Timeout error: Process still running, received {'job': {'uuid': '9f627bd7-3b8b-11ee-a6d9-00a098f678e8', '_links': {'self': {'href': '/api/cluster/jobs/9f627bd7-3b8b-11ee-a6d9-00a098f678e8'}}}}."}

strong plume
#

So there no hard timeout on this one other than the default system timeout of 120 seconds, after 120 second we will error out letting you know the job is still running