#ansible na_ontap_license module cannot install eval licenses, invalid digital signatures

1 messages · Page 1 of 1 (latest)

near sparrow
#

When tried with system manager, the filer took it and installed the eval licenses. Does ansible check digital signature against system id/serial of the filer?

    - name: Add nlf licenses
      connection: local
      na_ontap_license:
        <<: *login
        state: present
        license_codes:
          - "{{ lookup('file', item) }}"
        use_rest: always
      loop: "{{ lic_list }}"
      tags:
        - add_nlf

Output:

TASK [Add nlf licenses] *******************************************************************
failed: [filer1] (item=lic/NLF_eval_license) => {"ansible_loop_var": "item", "changed": false, "item": "lic/NLF_eval_license", "msg": "Error adding license: calling: cluster/licensing/licenses: got {'message': 'Failed to install the license at index 0 (keys[0]). Reason: The system received a licensing request with an invalid digital signature.', 'code': '1115142', 'arguments': [{'message': '0'}, {'message': 'The system received a licensing request with an invalid digital signature.'}], 'target': 'keys'}. - previous license status: {'installed_licenses': {}, 'base': 'compliant', 'nfs': 'unlicensed', 'cifs': 'unlicensed', 'iscsi': 'unlicensed', 'fcp': 'unlicensed', 'snaprestore': 'unlicensed', 'snapmirror': 'unlicensed', 'flexclone': 'unlicensed', 'snapvault': 'unlicensed', 'snaplock': 'unlicensed', 'snapmanagersuite': 'unlicensed', 'snapprotectapps': 'unlicensed', 'v_storageattach': 'unlicensed', 'insight_balance': 'unlicensed', 'ocshift': 'unlicensed', 'tpm': 'unlicensed', 've': 'unlicensed', 'dp_optimized': 'unlicensed', 'fabricpool': 'unlicensed', 'snapmirror_sync': 'unlicensed', 'nvme_of': 'unlicensed', 'mt_ek_mgmt': 'unlicensed', 's3': 'unlicensed', 'snapmirror_cloud': 'unlicensed'}"}
#

From the REST API doc, it looks like from below doc, ansible/REST is expecting node serial number.

Error Code    Description
1115117

Generic licensing error

1115122

No cluster serial number found

1115124

No node serial number found

1115130

No license code was provided
#

wrong error code referenced. should be:

1115142

License signature is invalid
#

Question is: how is signature generated? Does signature include cluster/node serial?