Skip to content

na_ontap_lun force_resize REST #319

@wagneradrian92

Description

@wagneradrian92

Summary

When updating a lun via na_ontap_lun modul the following error appears:

REST API currently does not support 'force_resize'
ontap version:
9.13 will be upgraded to 9.17

python module:
netapp-ontap: 9.17.1.0

ansible-collection:
23.3.0

no hint for this issue in documentation
https://docs.ansible.com/projects/ansible/latest/collections/netapp/ontap/na_ontap_lun_module.html#parameter-force_resize

worked with 9.13.1 python module and 22.8.2 ansible collection

Component Name

na_ontap_lun

Ansible Version

$ ansible --version
2.14.18

ONTAP Collection Version

$ ansible-galaxy collection list
23.3.0

ONTAP Version

sridharc-vsim34::> version
NetApp Release 9.7.0: Tue May 18 10:45:16 UTC 2021
9.13

Playbook

- name: update lun size
  delegate_to: localhost
  netapp.ontap.na_ontap_lun:
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    https: true
    validate_certs: "{{ validate_certs }}"
    state: present
    flexvol_name: "{{ volume_name }}"
    force_resize: true
    name: "{{ lun_name }}"
    size: "{{ size_gib }}"
    space_reserve: false
    vserver: "{{ vserver_name }}"

Steps to Reproduce

force_resize does not seem to exist anymore?

TASK [subrole_lun : update lun size] *******************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "REST API currently does not support 'force_resize'"}

Expected Results

being able to resize the lun

Actual Results

TASK [subrole_lun : update lun size] *******************************************  
1:27:30 PM
85
fatal: [localhost]: FAILED! => {"changed": false, "msg": "REST API currently does not support 'force_resize'"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions