Hi all,
Renaming of aggregate fails with below error even though the cluster has aggregates. If "use_rest: never" is used the playbook task completes fine.
- name: "Rename Root Aggregates: {{ cluster }}"
netapp.ontap.na_ontap_aggregate:
state: present
service_state: online
from_name: "{{ item.name }}"
name: "{{ item.newname }}"
<<: *clusterlogin
with_items: "{{ aggr_rename }}"
tags:
- aggr_rename
error:
failed: [localhost] (item={'name': 'aggr0_test_01_nas_01', 'newname': 'aggr0_n01'}) => changed=false
ansible_loop_var: item
invocation:
module_args:
allow_flexgroups: null
cert_filepath: null
disk_class: null
disk_count: null
disk_size: null
disk_size_with_unit: null
disk_type: null
disks: null
encryption: null
feature_flags: null
force_ontap_version: null
from_name: aggr0_test_01_nas_01
hostname: 10.114.247.244
http_port: null
https: true
ignore_pool_checks: null
is_mirrored: null
key_filepath: null
mirror_disks: null
name: aggr0_n01
nodes: null
object_store_name: null
ontapi: null
password: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
raid_size: null
raid_type: null
service_state: online
snaplock_type: null
spare_pool: null
state: present
tags: null
time_out: 100
unmount_volumes: null
use_rest: auto
username: admin
validate_certs: false
wait_for_online: false
item:
name: aggr0_test_01_nas_01
newname: aggr0_n01
msg: 'Error renaming aggregate aggr0_n01: no aggregate with from_name aggr0_test_01_nas_01.'
ONTAP: 9.12.1P8
Collection: netapp.ontap 21.14.1