<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to delete ntfs qtree with Ansible na_ontap_qtree module in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Unable-to-delete-ntfs-qtree-with-Ansible-na-ontap-qtree-module/m-p/163539#M37409</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We were able to automate the creation and removal processes of CIFS shares with Ansible, but we are facing some issue with the removal of the qtree. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the steps we were able to do: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Delete quota with the "na_ontap_quotas" module&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Delete quota {{ share.name }}
  na_ontap_quotas:
    state: absent
    vserver: "{{ netapp_vserver }}"
    volume: "{{ share.volume }}"
    type: tree
    quota_target: "/vol/{{ share.volume }}/{{ share.name }}"
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Delete share with the "na_ontap_cifs" module&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Delete Share {{ share.name }}
  na_ontap_cifs:
    state: absent
    share_name: '{{ share.name }}$'
    vserver: "{{ netapp_vserver }}"
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;And here is the step where we are facing the issue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Delete Qtree {{ share.name }}
  na_ontap_qtree:
    state: absent
    name: "{{ share.name }}"
    flexvol_name: "{{ share.volume }}"
    security_style: ntfs
    vserver: "{{ netapp_vserver }}"
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When we run the task to delete the qtree we get the following error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'No element by given name mode.'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've opened a ticket to netapp and they asked me this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;can you change the security style it and try to delete it again?&lt;/EM&gt;&lt;UL&gt;&lt;LI&gt;If I change it to unix on the web console, yes I'm able to delete the qtree with Ansible. I'm not able to change the security style with Ansible.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;can you try to rename it and delete it afterwards ? &lt;/EM&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;I get the same error, when I try to rename it with Ansible.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;After that they asked me to open this discussion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has someone been able to delete ntfs qtrees with Ansible. Any idea on how to solve this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 07:55:44 GMT</pubDate>
    <dc:creator>DIS</dc:creator>
    <dc:date>2021-02-01T07:55:44Z</dc:date>
    <item>
      <title>Unable to delete ntfs qtree with Ansible na_ontap_qtree module</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Unable-to-delete-ntfs-qtree-with-Ansible-na-ontap-qtree-module/m-p/163539#M37409</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We were able to automate the creation and removal processes of CIFS shares with Ansible, but we are facing some issue with the removal of the qtree. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the steps we were able to do: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Delete quota with the "na_ontap_quotas" module&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Delete quota {{ share.name }}
  na_ontap_quotas:
    state: absent
    vserver: "{{ netapp_vserver }}"
    volume: "{{ share.volume }}"
    type: tree
    quota_target: "/vol/{{ share.volume }}/{{ share.name }}"
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Delete share with the "na_ontap_cifs" module&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Delete Share {{ share.name }}
  na_ontap_cifs:
    state: absent
    share_name: '{{ share.name }}$'
    vserver: "{{ netapp_vserver }}"
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;And here is the step where we are facing the issue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Delete Qtree {{ share.name }}
  na_ontap_qtree:
    state: absent
    name: "{{ share.name }}"
    flexvol_name: "{{ share.volume }}"
    security_style: ntfs
    vserver: "{{ netapp_vserver }}"
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When we run the task to delete the qtree we get the following error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'No element by given name mode.'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've opened a ticket to netapp and they asked me this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;can you change the security style it and try to delete it again?&lt;/EM&gt;&lt;UL&gt;&lt;LI&gt;If I change it to unix on the web console, yes I'm able to delete the qtree with Ansible. I'm not able to change the security style with Ansible.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;can you try to rename it and delete it afterwards ? &lt;/EM&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;I get the same error, when I try to rename it with Ansible.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;After that they asked me to open this discussion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has someone been able to delete ntfs qtrees with Ansible. Any idea on how to solve this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 07:55:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Unable-to-delete-ntfs-qtree-with-Ansible-na-ontap-qtree-module/m-p/163539#M37409</guid>
      <dc:creator>DIS</dc:creator>
      <dc:date>2021-02-01T07:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete ntfs qtree with Ansible na_ontap_qtree module</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Unable-to-delete-ntfs-qtree-with-Ansible-na-ontap-qtree-module/m-p/163650#M37423</link>
      <description>&lt;P&gt;I found your case and went back and it looks like the ONTAPI response is successful. It may be helpful to run with the -vvv.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 23:26:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Unable-to-delete-ntfs-qtree-with-Ansible-na-ontap-qtree-module/m-p/163650#M37423</guid>
      <dc:creator>paul_stejskal</dc:creator>
      <dc:date>2021-02-02T23:26:12Z</dc:date>
    </item>
  </channel>
</rss>

