#unmounting a vol.

1 messages · Page 1 of 1 (latest)

drifting mango
#

Alrighty,

So I've got the below being fed into Ansible, I can't isolate why this stupid thing isn't unmounting the vol properly.
I've tried both '' and "" for junction path, and I've verified with -vvv that it's properly passing the "" or '' and not anything else.

FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Error creating volume Media_aimetis11: calling: storage/volumes: got {'message': 'One of "aggregates.uuid", "aggregates.name", or "style" must be provided.', 'code': '787140'}."}

##Unmount Prod volume

  • name: Prod Volume unmount
    netapp.ontap.na_ontap_volume:
    junction_path: ''
    name: "{{ vol_junction }}_{{ obj_name }}"
    vserver: "{{ prd_vserver }}"
    hostname: "{{ _hostname }}"
    username: "{{ _username }}"
    password: "{{ _pass }}"
    https: true
    use_rest: always
    validate_certs: false
#

Also, collection version is 22.11

keen herald
#

@drifting mango Using junction_path: '' should unmount an existing volume.
The error says the module is trying to create the specified volume. Could you check if volume Media_aimetis11 exists?

drifting mango
#

Q I'll triple check all spelling and post a snippet soon

keen herald
drifting mango
#

...
This is what I get for inheriting issues from a colleague