vmware / powershell-module-for-vmware-cloud-foundation-certificate-management

PowerShell Module for VMware Cloud Foundation Certificate Management
https://vmware.github.io/powershell-module-for-vmware-cloud-foundation-certificate-management/
BSD 2-Clause "Simplified" License
11 stars 7 forks source link

`Install-VCFCertificate` not working on macOS #93

Closed m-gustafsson closed 11 months ago

m-gustafsson commented 11 months ago

Code of Conduct

VMware Cloud Foundation

5.1

PowerShell Version

7.3.4

PowerCLI Version

13.1

Module Version

1.4.0

PowerValidatedSolutions Version

2.6.0

PowerVCF Version

2.4.0

Guest Operating System

macOS 13.6 build 22G120

Environment Details

Standard VMware internal MaaS deployment.

Environmental variables set as:

$sddcManagerFqdn = "sddc-manager.vrack.vsphere.local"
$sddcManagerUser = "administrator@vsphere.local"
$sddcManagerPass = "VMware123!"
$workloadDomain = "sddcId-1001"
$cluster = "SDDC-Cluster1"
$certificateDirectory = "/Users/mgustafsson/CRT"
$certificateFileExt = ".crt"

Description

Followed https://docs.vmware.com/en/VMware-Cloud-Foundation/5.0/vcf-operations/GUID-F431F343-B55C-495A-BE92-32483AC825D7.html#GUID-748DCB72-8610-44CA-B288-4FF598C9427D__GUID-BBB73B3E-1391-4A5E-A5B6-D79CD600BCB3 for replacing ESXi certificates in the management domain. All commands up until Install-VCFCertificate run without issues.

Install-VCFCertificate -esxi -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $workloadDomain -cluster $cluster -certificateDirectory $certificateDirectory -certificateFileExt $certificateFileExt runs, for 1min 55 seconds, then but all 4 hosts in the management cluster are skipped. No certificates are uploaded and no error is displayed.

Tried running without variables and only for a single host, no difference. Command runs for 43 seconds then the prompt is skipped.

Error or Debug Output

No error output.

Expected Behavior

Hosts to enter maintenance mode with full data evacuation, certificate replaced and host rebooted in a rolling fashion.

Actual Behavior

No certificates are replaced on the hosts.

Steps to Reproduce

Install Powershell on macOS, install the modules, set the variables and run the Install-VCFCertificate commandlet.

Log Fragments and Files

No response

Screenshots

image (25)

References

No response

tenthirtyam commented 11 months ago

The same issue is seen on Linux, correct?

tenthirtyam commented 11 months ago

Assigning to Kevin Teng (@garlicNova) for triage.

m-gustafsson commented 11 months ago

The same issue is seen on Linux, correct?

Correct, but I raised a separate issue for that. https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-certificate-management/issues/92

github-actions[bot] commented 10 months ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.