UpgradeSpec#

class UpgradeSpec(auto_handle_flags=None, max_wait_time_in_secs=None, management_server=None, entity_update_specs=None, skipped_precheck_flags=None, *args, **kwargs)#

Bases: PrechecksSpec

Specification for an upgrade operation of an entity to a particular target version.

Parameters:
  • auto_handle_flags – (auto_handle_flags) List of automated system operations to perform, to avoid precheck failure and let the system restore state after an update is complete. The allowed flag is: - ‘powerOffUvms’: This allows the system to automatically power off user VMs which cannot be migrated to other hosts and power them on when the update is done. This option can avoid pinned VM precheck failure on the host which needs to enter maintenance mode during the update and allow the update to go through.

  • max_wait_time_in_secs (min=60, max=86400) – (max_wait_time_in_secs) Number of seconds LCM waits for the VMs to come up after exiting host maintenance mode.

property auto_handle_flags#

List of automated system operations to perform, to avoid precheck failure and let the system restore state after an update is complete. The allowed flag is: - ‘powerOffUvms’: This allows the system to automatically power off user VMs which cannot be migrated to other hosts and power them on when the update is done. This option can avoid pinned VM precheck failure on the host which needs to enter maintenance mode during the update and allow the update to go through.

Type:

list[ SystemAutoMgmtFlag ]

property max_wait_time_in_secs#

Number of seconds LCM waits for the VMs to come up after exiting host maintenance mode.

Type:

int

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model