Orchestrated Removal Host Software DeploymentΒΆ

A fully deployed patch release can be removed (or un-deployed) by using the Orchestrated Deployment Host Software Deployment procedure and deploying a previous patch release or the major release.

Note

A fully deployed major release cannot be removed (or un-deployed).

For example, the following shows the current software releases deployed:

~(keystone_admin)]$ software list
 +--------------------------+-------+-----------+
 | Release                  | RR    |   State   |
 +--------------------------+-------+-----------+
 | starlingx-10.0.0         | True  | deployed  |
 | starlingx-10.0.1         | False | deployed  |
 | starlingx-10.0.2         | True  | deployed  |
 | starlingx-10.0.3         | False | deployed  |
 +--------------------------+-------+-----------+

To remove patch releases starlingx-10.0.3 and starlingx-10.0.2, follow the Orchestrated Deployment Host Software Deployment procedure, and deploy (or go back to) the starlingx-10.0.1 software release in step <1.

~(keystone_admin)]$ sw-manager sw-deploy-strategy create [--controller-apply-type {serial,ignore}]
                                                            [--storage-apply-type {serial,parallel,ignore}]
                                                            [--worker-apply-type {serial,parallel,ignore}]
                                                            [--max-parallel-worker-hosts {2,3,4,5,6,7,8,9,10}]
                                                            [--instance-action {stop-start,migrate}]
                                                            [--alarm-restrictions {strict,relaxed}]
                                                            starlingx-10.0.1

strategy-uuid:                          5435e049-7002-4403-acfb-7886f6da14af
release-id:                             starlingx-10.0.1
controller-apply-type:                  serial
storage-apply-type:                     serial
worker-apply-type:                      serial
default-instance-action:                stop-start
alarm-restrictions:                     strict
current-phase:                          build
current-phase-completion:               0%
state:                                  building
inprogress:                             true
~(keystone_admin)]$ sw-manager sw-deploy-strategy show
Strategy Software Deploy Strategy:
  strategy-uuid:                          6282f049-bb9e-46f0-9ca8-97bf626884e0
  release-id:                             starlingx-10.0.1
  controller-apply-type:                  serial
  storage-apply-type:                     serial
  worker-apply-type:                      serial
  default-instance-action:                stop-start
  alarm-restrictions:                     strict
  current-phase:                          build
  current-phase-completion:               100%
  state:                                  ready-to-apply
  build-result:                           success
  build-reason:

Note

If parallel apply for storage is used, it will be automatically replaced with the serial apply for --storage-apply-type.

Apply the software orchestration deployment strategy.

~(keystone_admin)]$ sw-manager sw-deploy-strategy apply
Strategy Software Deploy Strategy:
strategy-uuid: 92e69661-2ef2-4d7d-baf2-272b8886d95a
release-id: starlingx-10.0.1
controller-apply-type: serial
storage-apply-type: serial
worker-apply-type: serial
default-instance-action: stop-start
alarm-restrictions: relaxed
current-phase: apply
current-phase-completion: 0%
state: applying
inprogress: true

On completion of the Orchestrated Deployment Host Software Deployment procedure, run the following command:

~(keystone_admin)]$ software list
+--------------------------+-------+-----------+
| Release                  | RR    |   State   |
+--------------------------+-------+-----------+
| starlingx-10.0.0         | True  | deployed  |
| starlingx-10.0.1         | False | deployed  |
| starlingx-10.0.2         | True  | available |
| starlingx-10.0.3         | False | available |
+--------------------------+-------+-----------+

If the removed patches are no longer required on the system, you can delete them.

~(keystone_admin)]$ software delete starlingx-10.0.3
starlingx-10.0.3 has been deleted.
~(keystone_admin)]$ software delete starlingx-10.0.2
starlingx-10.0.2 has been deleted.
~(keystone_admin)]$ software list
+--------------------------+-------+-----------+
| Release                  | RR    |   State   |
+--------------------------+-------+-----------+
| starlingx-10.0.0         | True  | deployed  |
| starlingx-10.0.1         | False | deployed  |
+--------------------------+-------+-----------+