#na_ontap_license errors

1 messages · Page 1 of 1 (latest)

dire herald
#

I have not encountered this, the license codes are valid, but got errors like:

TASK [Add licenses] *****************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "calling: cluster/licensing/licenses: got {'message': 'Installed the first 11 licenses. Failed to install the license at index 11 (keys[11]). Reason: License addition failed.', 'code': '1115131', 'target': 'keys'}."}

my playbook:

      - name: Add licenses                                                        
        na_ontap_license:                                                            
          state: present                                                          
          license_codes: "{{ licenses }}"                                            
          <<: *login                                                                                   
        tags:               
        - license        

Funny thing is if I add license manually on the index 11, I got the msg:

atc01::> license add YZIISLIMISBTEEUQECCAAAAAAAAA
  (system license add)
NLFv2 License for package "CIFS" is already installed. There is no need to install a 28-character License Key.


Error: command failed: License addition failed.

But add other licenses works with ansible and manual command. I have never encountered this before. Is the NLFv2 cause this issue?

unique current
#

The module will error out if Ontap does. And it look like from your case ontap did error out.

NLFv2 i believe will group licenses together, so one string enable multiple feature in ONTAP, so one of the previous code probably under the cover contain the info for that code

dire herald
#

can NFLv2 support older os version like < 9.10? what I am looking for is: can latest ansible module handle both NFLv1 and NFLv2? I have filers in different level of os.