Add/Repair Node fails at "GenerateSSLCertificatesForAddScaleUnitNodes" with "The system cannot find the file specified."
January 13, 2025 · View on GitHub
Symptoms
After update to 2411, the Add Node or Repair Node operation will fail at "GenerateSSLCertificatesForAddScaleUnitNodes" with the error:
_ActionPlanInstanceID: b5918716-de3c-41fe-9eb8-addadcb9f439 WarningMessage:[CRKR6S7C01]:Task: Invocation of interface 'GenerateSSLCertificatesForAddScaleUnitNodes' of role 'Cloud\Infrastructure\ASCA' failed:
Type 'GenerateSSLCertificatesForAddScaleUnitNodes' of Role 'ASCA' raised an exception:
System.Management.Automation.MethodInvocationException: Exception calling "GetResult" with "0" argument(s): "The system cannot find the file specified. " ---> System.Security.Cryptography.CryptographicException: The system cannot find the file specified.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.X509Certificates.X509Utils.QueryCertFileType(String fileName)
at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, SecureString password, X509KeyStorageFlags keyStorageFlags)
at Microsoft.AzureStack.Security.CertificateAuthority.CertificateAuthorityManager.<>c__DisplayClass10_0.
Issue Validation
Query the action plan instance logs:
EtlLogs
| where AEODeviceARMResourceUri contains "
You should see the following in the logs:
ActionPlanInstanceID:
SDN Prefix shouldnt have been set:
ActionPlanInstanceID:
The action plan should be looking for the below 2 pfx paths:
ActionPlanInstanceID:
Notice that the -NCREST.pfx has no value before the '-'. The expected value is
For further confirmation, navigate to path
C:\ClusterStorage\Infrastructure_1\Shares\SU1_Infrastructure_1\AzureStackCertStore\Internal\Current\ALMManagedAgents\
and you should see pfx's for NCREST with a non-null value for the prefix.
Mitigation Details
To mitigate the issue, do the following on all pre-existing nodes (i.e. all nodes that existed before add-node was initiated.)
Make a copy of the
Once that is done, resume the add node/ repair node admin operation.