Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Generating the SDDC Manager Free Pool Health #29

Closed
4 tasks done
tenthirtyam opened this issue Nov 23, 2022 · 3 comments · Fixed by #32
Closed
4 tasks done

Error: Generating the SDDC Manager Free Pool Health #29

tenthirtyam opened this issue Nov 23, 2022 · 3 comments · Fixed by #32
Assignees
Labels
bug Bug pending-review Pending Review report/health Health Report
Milestone

Comments

@tenthirtyam
Copy link
Collaborator

tenthirtyam commented Nov 23, 2022

Code of Conduct

  • I have read and agree to the Code of Conduct.
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

VMware Cloud Foundation

4.4.1

PowerShell Version

Windows PowerShell 5.1

Module Version

1.0.4

PowerValidatedSolution Version

1.9.0

PowerVCF Version

2.2.0

PowerCLI Version

12.7.0

Guest Operating System

Windows Server 2019

Environment Details

Scale Lab

Description

When running the health report the following error is returned when checking the SDDC Manager Free Pool Health:

 [11-21-2022_16:02:33] INFO Generating the SDDC Manager Free Pool Health for Workload Domain (sfo-w01).
 [11-21-2022_16:02:37]   Error at Script Line 5665
 [11-21-2022_16:02:37]   Relevant Command: $expiryDate = [math]::Ceiling((([DateTime]$expirationDate) - (Get-Date)).TotalDays)
 [11-21-2022_16:02:37]   Error Message: Cannot convert null to type "System.DateTime".
 [11-21-2022_16:02:37] INFO Generating the Snapshots Report for Workload Domain (sfo-w01).
 [11-21-2022_16:02:49] INFO Generating the Password Expiry Report for Workload Domain (sfo-w01).
 [11-21-2022_16:03:53] INFO Generating the NSX Transport Node Report for Workload Domain (sfo-w01).
 [11-21-2022_16:03:58] INFO Generating the NSX Transport Node Tunnel Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:05] INFO Generating the NSX Tier-0 Gateway BGP Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:12] INFO Generating the Disk Capacity Report for Workload Domain (sfo-w01).'
 [11-21-2022_16:04:49] INFO Generating the Virtual Machines with Connected CD-ROM Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:57] INFO Generating the final report and saving to (C:\Reporting\HealthReports\11-21-2022_04_01_24-health-sfo-w01.htm).

Error or Debug Output

 [11-21-2022_16:01:29] INFO Starting the process of creating a Health Report for Workload Domain (sfo-w01).
 [11-21-2022_16:01:29] INFO Setting up the log file to path C:\Reporting\logs\Invoke-VcfHealthReport-11-21-2022_04_01_29.log.
 [11-21-2022_16:01:29] INFO Setting up report folder and report C:\Reporting\HealthReports\11-21-2022_04_01_24-health-sfo-w01.htm.
 [11-21-2022_16:01:29] INFO Running an SoS Health Check for Workload Domain (sfo-w01), process takes time.
 [11-21-2022_16:01:51] INFO Generating the Service Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:51] INFO Generating the DNS Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:51] INFO Generating the NTP Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:51] INFO Generating the Certificate Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:51] INFO Generating the ESXi Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:51] INFO Generating the vSAN Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:51] INFO Generating the vSAN Storage Policy Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:51] INFO Generating the vCenter Server Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:01:53] INFO Generating the ESXi Connection Health Data report for Workload Domain (sfo-w01).
 [11-21-2022_16:02:02] INFO Generating the NSX-T Data Center Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:02:11] INFO Generating the Connectivity Health Report using the SoS output for Workload Domain (sfo-w01).
 [11-21-2022_16:02:20] INFO Generating the Backup Status Report for Workload Domain (sfo-w01).
 [11-21-2022_16:02:33] INFO Generating the SDDC Manager Free Pool Health for Workload Domain (sfo-w01).
 [11-21-2022_16:02:37]   Error at Script Line 5665
 [11-21-2022_16:02:37]   Relevant Command: $expiryDate = [math]::Ceiling((([DateTime]$expirationDate) - (Get-Date)).TotalDays)
 [11-21-2022_16:02:37]   Error Message: Cannot convert null to type "System.DateTime".
 [11-21-2022_16:02:37] INFO Generating the Snapshots Report for Workload Domain (sfo-w01).
 [11-21-2022_16:02:49] INFO Generating the Password Expiry Report for Workload Domain (sfo-w01).
 [11-21-2022_16:03:53] INFO Generating the NSX Transport Node Report for Workload Domain (sfo-w01).
 [11-21-2022_16:03:58] INFO Generating the NSX Transport Node Tunnel Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:05] INFO Generating the NSX Tier-0 Gateway BGP Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:12] INFO Generating the Disk Capacity Report for Workload Domain (sfo-w01).'
 [11-21-2022_16:04:49] INFO Generating the Virtual Machines with Connected CD-ROM Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:57] INFO Generating the final report and saving to (C:\Reporting\HealthReports\11-21-2022_04_01_24-health-sfo-w01.htm).
PS C:\Users\Administrator> +

Expected Behavior

Check the free pool without error and return the results.

Actual Behavior

Does not return the correct data for the free pool and errors:

 [11-21-2022_16:02:33] INFO Generating the SDDC Manager Free Pool Health for Workload Domain (sfo-w01).
 [11-21-2022_16:02:37]   Error at Script Line 5665
 [11-21-2022_16:02:37]   Relevant Command: $expiryDate = [math]::Ceiling((([DateTime]$expirationDate) - (Get-Date)).TotalDays)
 [11-21-2022_16:02:37]   Error Message: Cannot convert null to type "System.DateTime".
 [11-21-2022_16:02:37] INFO Generating the Snapshots Report for Workload Domain (sfo-w01).
 [11-21-2022_16:02:49] INFO Generating the Password Expiry Report for Workload Domain (sfo-w01).
 [11-21-2022_16:03:53] INFO Generating the NSX Transport Node Report for Workload Domain (sfo-w01).
 [11-21-2022_16:03:58] INFO Generating the NSX Transport Node Tunnel Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:05] INFO Generating the NSX Tier-0 Gateway BGP Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:12] INFO Generating the Disk Capacity Report for Workload Domain (sfo-w01).'
 [11-21-2022_16:04:49] INFO Generating the Virtual Machines with Connected CD-ROM Report for Workload Domain (sfo-w01).
 [11-21-2022_16:04:57] INFO Generating the final report and saving to (C:\Reporting\HealthReports\11-21-2022_04_01_24-health-sfo-w01.htm).

Steps to Reproduce

Invoke-VcfHealthReport -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -sddcManagerRootPass $sddcManagerRootPass -reportPath $reportPath -allDomains -failureOnly

Log Fragments and Files

No response

Screenshots

No response

References

No response

@tenthirtyam tenthirtyam added bug Bug report/health Health Report labels Nov 23, 2022
@tenthirtyam tenthirtyam added this to the v1.0.5 milestone Nov 23, 2022
@tenthirtyam tenthirtyam self-assigned this Nov 23, 2022
@github-actions github-actions bot added the pending-review Pending Review label Nov 23, 2022
@tenthirtyam
Copy link
Collaborator Author

tenthirtyam commented Dec 2, 2022

PS > Request-SddcManagerFreePool -server $server -user $user -pass $pass
[12-02-2022_09:06:58]   Error at Script Line 5665
[12-02-2022_09:06:58]   Relevant Command: $expiryDate = [math]::Ceiling((([DateTime]$expirationDate) - (Get-Date)).TotalDays)
[12-02-2022_09:06:58]   Error Message: Cannot convert null to type "System.DateTime".

tenthirtyam pushed a commit that referenced this issue Dec 2, 2022
Updates `Request-SddcManagerFreePool` function:

- Typo in description.
- Sets the $expiryDate = 0 if the license has expired.

Closes #29

Signed-off-by: Ryan Johnson <[email protected]>
@tenthirtyam tenthirtyam mentioned this issue Dec 2, 2022
11 tasks
@tenthirtyam
Copy link
Collaborator Author

Root Cause

The key in $licenseManager.Evaluation.Properties did not include expirationDate if the license was expired. Instead, it is diagnostic.

@github-actions
Copy link

github-actions bot commented Jan 3, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug pending-review Pending Review report/health Health Report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant