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

Handle v9.0 upgrade finalize case correctly #1491

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions nsxt/resource_nsxt_upgrade_prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,16 @@ func isVCF9HostUpgrade(m interface{}, targetVersion string) (bool, error) {
return false, nil
}
// In this case, all components other than host will be NOT_STARTED, but hosts will be with status SUCCESS
// Finalize component can be NOT_STARTED or PAUSED
for _, c := range statusSummary.ComponentStatus {
if *c.ComponentType == hostUpgradeGroup {
if *c.Status != nsxModel.ComponentUpgradeStatus_STATUS_SUCCESS {
return false, nil
}
} else if *c.ComponentType == finalizeUpgradeGroup {
if *c.Status != nsxModel.ComponentUpgradeStatus_STATUS_PAUSED && *c.Status != nsxModel.ComponentUpgradeStatus_STATUS_NOT_STARTED {
return false, nil
}
} else {
// It's not a host - should be NOT_STARTED
if *c.Status != nsxModel.ComponentUpgradeStatus_STATUS_NOT_STARTED {
Expand Down
Loading