NSX API call for upgrade_selected_units does not resume upgrade for the selected host transport node group
search cancel

NSX API call for upgrade_selected_units does not resume upgrade for the selected host transport node group

book

Article ID: 407341

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

During NSX upgrade for host transport nodes, NSX host transport nodes are grouped by their cluster by default, new groups can also be added to customize the upgrade order for hosts within the different cluster for varies reasons.

When utilizing the API call POST /upgrade/plan?action=upgrade_selected_units the upgrade may not continue for the selected host transport node group and the upgrade status will stay at "paused".

The above-mentioned API call may return status 200 but no upgrade is observed from NSX UI and the selected group remained at the lowered version. 

Environment

VMware NSX 4.1.1

Cause

The host transport node upgrade setting has a condition for pausing the upgrade when each group is upgraded. When this option is toggled and there are no other groups are selected for "include for upgrade", the upgrade will not continue. 

Resolution

This is an expected behavior when there are no other groups have toggled "include for upgraded" and the pause condition is met when one group has been successfully upgraded. 

To utilize API call for an automated upgrade process, uncheck the "After each group is upgraded" option and have the desired group for upgrade toggled for "Include for upgrade".

Alternatively, utilize the NSX UI to resume the upgrade.