
Moved all DC content under a kubernetes directory. This is needed to allow title versioning distinctions in partner builds. Signed-off-by: Ron Stone <ronald.stone@windriver.com> Change-Id: Ia7ab4fccc7cb9ed6c242cf584f237165f00e5ef2
15 KiB
Update Orchestration of Central Cloud's RegionOne and Subclouds Using the CLI
For update orchestration, you can use the dcmanager
commands from
the command line interface. These are similar to the sw-manager
commands used
to define and execute update strategies on non-distributed systems.
To use the Horizon Web interface instead, see Update Orchestration of
Central Cloud's RegionOne and Subclouds
<update-orchestration-of-central-clouds-regionone-and-subclouds>
.
Note
Before you can use update orchestration, you must upload and apply
one or more updates to the SystemController / central update repository.
For more information, see Uploading and Applying Updates
to SystemController Using the CLI
<uploading-and-applying-updates-to-systemcontroller-using-the-cli>
.
Patch Strategy Settings
The update strategy for a system controls how updates are applied to the Central Cloud's RegionOne and the subclouds. The following settings are available:
- subcloud apply type
-
parallel or serial — determines whether the subclouds are updated in parallel, or serially.
If this is not specified using the , the values for
subcloud\_update\_type
defined for each subcloud group will be used by default. - maximum parallel subclouds
-
Sets the maximum number of subclouds that can be updated in parallel (default 20).
If this is not specified using the , the values for
max\_parallel\_subclouds
defined for each subcloud group will be used by default. - stop on failure
-
true (default) or false — determines whether update orchestration failure for a subcloud prevents application to subsequent subclouds.
To create a update strategy, use the
patch-strategy create
command.~(keystone_admin)]$ dcmanager patch-strategy create \ [--subcloud-apply-type <type>] \ [–-max-parallel-subclouds <i>] \ [–-stop-on-failure <level>] \ [--group group] \ [<subcloud>]
For example:
~(keystone_admin)]$ dcmanager patch-strategy create --group 10 +------------------------+----------------------------+ | Field | Value | +------------------------+----------------------------+ | subcloud apply type | parallel | | max parallel subclouds | 10 | | stop on failure | False | | state | initial | | created_at | 2021-01-07T14:54:58.634476 | | updated_at | None | +------------------------+----------------------------+
Note
You can optionally pass the name or ID of a subcloud group to the
patch-strategy create
command. This results in a strategy that is applied only to the System Controller and all subclouds in the specified group. The subcloud group values are used for subcloud apply type and max parallel subclouds parameters.To show the settings for the update strategy, use the
patch-strategy show
command.For example:
~(keystone_admin)]$ dcmanager patch-strategy show +------------------------+----------------------------+ | Field | Value | +------------------------+----------------------------+ | subcloud apply type | parallel | | max parallel subclouds | 20 | | stop on failure | False | | state | initial | | created_at | 2018-02-02T14:42:13.822499 | | updated_at | None | +------------------------+----------------------------+
Note
A value of None for subcloud apply type, and max parallel subclouds indicates that subcloud group values are being used.
To apply the update strategy, use the
patch-strategy apply
command.~(keystone_admin)]$ dcmanager patch-strategy apply +------------------------+----------------------------+ | Field | Value | +------------------------+----------------------------+ | subcloud apply type | parallel | | max parallel subclouds | 20 | | stop on failure | False | | state | applying | | created_at | 2018-02-02T14:42:13.822499 | | updated_at | 2018-02-02T14:42:19.376688 | +------------------------+----------------------------+
To show the step currently being performed on each of the subclouds, use the
strategy-step list
command.For example:
~(keystone_admin)]$ dcmanager strategy-step list +------------------+-------+-------------+-----------------------------+----------------------------+----------------------------+ | cloud | stage | state | details | started_at | finished_at | +------------------+-------+-------------+-----------------------------+----------------------------+----------------------------+ | SystemController | 1 | complete | | 2018-03-13 14:12:12.262001 | 2018-03-13 14:15:52.450908 | | subcloud-1 | 2 | applying... | apply phase is 66% complete | 2018-03-13 14:16:02.457588 | None | | subcloud-4 | 2 | applying... | apply phase is 83% complete | 2018-03-13 14:16:02.463213 | None | | subcloud-5 | 2 | finishing | | 2018-03-13 14:16:02.473669 | None | | subcloud-6 | 2 | applying... | apply phase is 66% complete | 2018-03-13 14:16:02.483422 | None | +------------------+-------+-------------+-----------------------------+----------------------------+----------------------------+
To show the step currently being performed on a subcloud, use the
strategy-step show
<subcloud> command.~(keystone_admin)]$ dcmanager strategy-step show <subcloud>
To abort the current update orchestration operation, use the
patch-strategy abort
command.Note
The
dcmanager patch-strategy abort
command completes the current updating stage before aborting, to prevent hosts from being left in a locked state requiring manual intervention.~(keystone_admin)]$ dcmanager patch-strategy abort
To delete a update strategy, use the
patch-strategy delete
command.~(keystone_admin)]$ dcmanager patch-strategy delete +------------------------+----------------------------+ | Field | Value | +------------------------+----------------------------+ | subcloud apply type | parallel | | max parallel subclouds | 20 | | stop on failure | False | | state | deleting | | created_at | 2018-03-23T20:04:50.992444 | | updated_at | 2018-03-23T20:05:14.157352 | +------------------------+----------------------------+
Configuration for Specific Subclouds
To determine how updates are applied to the nodes on each subcloud and on RegionOne, the update strategy refers to separate configuration settings. The following settings are applied by default:
- storage apply type: parallel
- worker apply type: parallel
- max parallel workers: 10
- alarm restriction type: relaxed
- default instance action: migrate
To update the default values, use the dcmanager patch-strategy-config
update
command. You can also use this command to configure custom
behavior for individual subclouds.
Note
Since re-location is not possible on a single-node Simplex system, you must change the configuration to set default_instance_action to stop-start.
To list the default update strategy and any custom configurations configured for individual subclouds, use the
patch-strategy-config list
command.For example:
~(keystone_admin)]$ dcmanager patch-strategy-config list +--------------------+--------------------+--------------------+-----------------------+------------------------+------------------+ | cloud | storage apply type | worker apply type | max parallel workers | alarm restriction type | default instance | | | | | | | action | +--------------------+--------------------+--------------------+-----------------------+------------------------+------------------+ | all clouds default | parallel | parallel | 10 | relaxed | migrate | | subcloud-6 | parallel | parallel | 2 | relaxed | stop-start | +--------------------+--------------------+--------------------+-----------------------+------------------------+------------------+
To show the configuration settings applicable to all subclouds by default, use the
patch-strategy-config show
command.~(keystone_admin)]$ dcmanager patch-strategy-config show +-------------------------+--------------------+ | Field | Value | +-------------------------+--------------------+ | cloud | all clouds default | | storage apply type | parallel | | worker apply type | parallel | | max parallel workers | 10 | | alarm restriction type | relaxed | | default instance action | migrate | | created_at | None | | updated_at | None | +-------------------------+--------------------+
To update the settings, or to create a custom configuration for a subcloud, use the
patch-strategy-config update
command.~(keystone_admin)]$ dcmanager patch-strategy-config update \ \ –-storage-apply-type <type> \ –-worker-apply-type <type> \ –-max-parallel-workers <i> \ –-alarm-restriction-type <level> \ –-default-instance-action <action> \ [<subcloud_name>]
where
- storage apply type
-
parallel or serial — determines whether storage nodes are updated in parallel or serially.
- worker apply type
-
parallel or serial — determines whether worker nodes are updated in parallel or serially.
- max parallel workers
-
Set the maximum number of worker nodes that can be updated in parallel.
- alarm restriction type
-
relaxed or strict — determines whether the orchestration is aborted for alarms that are not management-affecting. For more information, refer to the
- default instance action
Note
This parameter is only applicable to hosted application VMs with the stx-openstack application.
migrate or stop-start — determines whether hosted application VMs are migrated or stopped and restarted when a worker host is upgraded
- subcloud_name
The name of the subcloud to use the custom strategy. If this omitted, the default update strategy is updated.
Note
You must specify all of the settings.
To show the configuration settings for a subcloud, use the
patch-strategy-config show
<subcloud> command.~(keystone_admin)]$ dcmanager patch-strategy-config show [<name>]
For example:
~(keystone_admin)]$ dcmanager patch-strategy-config show subcloud-6 +-------------------------+----------------------------+ | Field | Value | +-------------------------+----------------------------+ | cloud | subcloud-6 | | storage apply type | parallel | | worker apply type | parallel | | max parallel workers | 2 | | alarm restriction type | relaxed | | default instance action | stop-start | | created_at | 2018-03-12 20:08:48.917866 | | updated_at | None | +-------------------------+----------------------------+
If custom configuration settings have not been created for the subcloud, the following message is displayed:
ERROR (app) No options found for Subcloud with id 1, defaults will be used.