Error: command failed: The key server at "x.x.x.x" contains volume encryption keys that are currently in use and not available
Applies to
- ONTAP 9
- External Key Manager (EKM)
- NetApp Volume Encryption (NVE)
Issue
- While attempting to migrate external key manager servers to new servers you cannot delete the last key server.
Cluster-01::*> security key-manager external remove-servers -vserver cluster-1 -key-servers 10.28.XX.XXError: command failed: The key server at "10.28.XX.XX" contains volume encryption keys that are currently in useand not available from any other configured key server.- The certificates and keys have been copied to the new KMIP servers, but the cluster does not pull the keys from those servers.
- In the following example 10.28.XX.XX is the last of the old key servers. The new key servers show as available but are not present in the key query:
Cluster-01::> security key-manager key queryNode: Cluster-01-01Vserver: Cluster-01Key Manager: 10.28.XX.XX:5696Key Manager Type: KMIPKey Tag Key Type Restored------------------------------------ -------- --------2170bf6c-998b-11eb-b2a8-d039ea061535 VEK trueKey ID: 00000000000000000200000000000500d3a552b209a7265eb531e4cf5adb21c5000000000000000038bc9422-998b-11eb-b2a8-d039ea061535 VEK trueKey ID: 00000000000000000200000000000500e32ca6a0c308f850c51120b47334869f000000000000000027696c31-998b-11eb-b2a8-d039ea061535 VEK trueKey ID: 00000000000000000200000000000500fefbd8470e63a8877d53509b9cd708e40000000000000000Node: Cluster-01-02Vserver: Cluster-01Key Manager: 10.28.XX.XX:5696Key Manager Type: KMIPKey Tag Key Type Restored------------------------------------ -------- --------2170bf6c-998b-11eb-b2a8-d039ea061535 VEK trueKey ID: 00000000000000000200000000000500d3a552b209a7265eb531e4cf5adb21c5000000000000000038bc9422-998b-11eb-b2a8-d039ea061535 VEK trueKey ID: 00000000000000000200000000000500e32ca6a0c308f850c51120b47334869f000000000000000027696c31-998b-11eb-b2a8-d039ea061535 VEK trueKey ID: 00000000000000000200000000000500fefbd8470e63a8877d53509b9cd708e400000000000000006 entries were displayed.- Key servers are available:
Cluster-01::*> key-manager show -statussecurity key-manager show)Node Port Registered Key Manager Status---------------------- ------ --------------------------- ---------------Cluster-01-01 5696 10.28.XX.XX available Cluster-01-01 5696 10.36.XX.XX availableCluster-01-02 5696 10.28.XX.XX availableCluster-01-02 5696 10.36.XX.XX available
