vmware / power-validated-solutions-for-cloud-foundation

PowerShell Module for VMware Validated Solutions
https://vmware.github.io/power-validated-solutions-for-cloud-foundation/
BSD 2-Clause "Simplified" License
45 stars 24 forks source link

Add pre-check for NSX Federation before deployment. #708

Closed nthaler-vmware closed 2 weeks ago

nthaler-vmware commented 1 month ago

Code of Conduct

VMware Cloud Foundation

5.2

Module Version

2.11.0.1057

PowerShell Version

7.4.4

PowerCLI Version

13.3

PowerVCF Version

2.4.1.1000

Guest Operating System

Windows Server 2019

Environment Details

No response

Description

PDR depends on a L2 Stretch between site A and site B with a MGMT segment under the same name in both sites.

However, the pre-check does not validate this.

Error or Debug Output

08-07-2024_08:23:22] [INFO] Configuring Network Mappings between the Protected and the Recovery VMware Cloud Foundation Instances

Error at Script Line 3137

Relevant Command: $StatusMsg = Add-SrmMapping -sddcManagerAFqdn $jsonInput.protected.sddcManagerFqdn -sddcManagerAUser $jsonInput.protected.sddcManagerUser -sddcManagerAPass $jsonInput.protected.sddcManagerPass -sddcManagerBFqdn $jsonInput.recovery.sddcManagerFqdn -sddcManagerBUser $jsonInput.recovery.sddcManagerUser -sddcManagerBPass $jsonInput.recovery.sddcManagerPass -type "network" -protected $jsonInput.protected.networkSegment -recovery $jsonInput.recovery.networkSegment -WarningAction SilentlyContinue -ErrorAction SilentlyContinue -WarningVariable WarnMsg -ErrorVariable ErrorMsg

Error Message: 8/7/2024 08:23:28       Get-VirtualNetwork              VirtualNetwork with name 'xint-m01-seg01' was not found using the specified filter(s).

Expected Behavior

Pre-check should throw an error if NSX Federation is not enabled.

Error message should specify which site the network segment is missing on.

Actual Behavior

Pre-check does not include NSX Federation validatiom.

Steps to Reproduce

Do not install NSX Federation and run PDR.

Log Fragments and Files

No response

Screenshots

No response

References

No response

nthaler-vmware commented 1 month ago

... of conversely, allow an option to create a segment with the same name assuming a VLAN backed port-group so the segment exists on both sides

tenthirtyam commented 1 month ago

Error message formatted and updated to an enhancement.