Key auto-retrieve failed on node post Ontap Upgrade
Applies to
- ONTAP 9
- External Key Management server
Issue
- During the giveback after Ontap upgrade the keys did not restore.
Sat Jun 18 01:06:14 -0500 [XXXXXXXXXX: mgwd: km.keyretrieve.failed:alert]: Key auto-retrieve failed on node XXXXXXXXX-02 for Vserver XXXXXXXXXX (ID -1, UUID 4b13acef-e009-11eb-a21e-d039ea30f54d).
- Restoring with 'security key-manager external restore -node XXXXXXXX-02' produces a permission error.
- Decrypt the problematic volume , complete the upgrade and encrypt it again.
Sat Jun 18 02:06:46 -0500 [XXXXXXXXX: kmip2_client: kmip2.ssl.cannot.connect:alert]: Unable to make SSL/TLS connection to KMIP server. Error: SSL_PARAMS
Sat Jun 18 02:05:28 -0500 [XXXXXXXXX: kmip2_client: kmip2.ssl.cannot.connect:alert]: Unable to make SSL/TLS connection to KMIP server. Error: SSL_PARAMS
- Ideally these alerts generate if there are timeouts occurring in the key manager.
Sat Jun 18 2022 01:30:03 -05:00 [kern_kmip2_client:info:6931] [Jun 18 01:30:03]: 0x808b47200: 8003e8000006402d: ERR: kmip2::tables::kmip_keytable_v2: [populateFields]:1761: Get command failed. Exception: KmipGetException: Response status: OPERATION_FAILED. Reason: PERMISSION_DENIED. Message: The KMIP user is not authorized to access the target object.
-0000001d.00006e4f 0000b907 Sat Jun 18 2022 02:03:06 -05:00 [kern_kmip2_client:info:6931] [Jun 18 02:03:06]: 0x808b48600: 8003e800000640fc: ERR: kmip2::tables::kmip_keytable_v2: [populateFields]:1761: Get command failed. Exception: KmipGetException: Response status: OPERATION_FAILED. Reason: PERMISSION_DENIED. Message: The KMIP user is not authorized to access the target object.
- Here ONTAP is reaching the SKLM server, however it is denying the kmip user information of ONTAP.
- SKLM team/SKLM vendor has to determine why the key query was rejected with insufficient privileges.