docs/doc/source/dist_cloud/reinstalling-a-subcloud-with-redfish-platform-management-service.rst
Juanita-Balaraj 3733f8a967 Rehoming a Subcloud
Updated Patchset 5
Updated Patchset 4
Updated Patchset 3
Updated Patchset 2
Updated Patchset 1

Signed-off-by: Juanita-Balaraj <juanita.balaraj@windriver.com>
Change-Id: Ie17aeb732c265bc2e5f72ed78a64b26905f7e022
Signed-off-by: Juanita-Balaraj <juanita.balaraj@windriver.com>
2021-06-08 13:43:20 -04:00

4.3 KiB

Reinstall a Subcloud with Redfish Platform Management Service

For subclouds with servers that support Redfish Virtual Media Service (version 1.2 or higher), you can use the Central Cloud's CLI to re-install the ISO and bootstrap subclouds from the Central Cloud.

Caution

All application and data on the subcloud will be lost after re-installation.

The subcloud reinstallation has two phases:

Executing the dcmanager subcloud reinstall command in the Central Cloud:

  • Uses Redfish Virtual Media Service to remote install the ISO on controller-0 in the subcloud.
  • Uses Ansible to bootstrap on controller-0.

  • The install values are required for subcloud reinstallation. By default, install values are stored in the database after a subcloud installation or upgrade, and the reinstallation will re-use the install values. If you want to update the install values, use the following CLI command in the Central Cloud.

    ~(keystone_admin)]$ dcmanager subcloud update subcloud1 --install-values install-values.yaml --bmc-password <password>

    For more information on install-values.yaml file, see Installing a Subcloud Using Redfish Platform Management Service <installing-a-subcloud-using-redfish-platform-management-service>.

    You can only reinstall the same software version with the Central Cloud on the subcloud.

  • Check the subcloud's availability in the Central Cloud, for example,

    ~(keystone_admin)]$ dcmanager subcloud list
    
     +----+----------+------------+--------------+---------------+---------+
     | id | name     | management | availability | deploy status | sync    |
     +----+----------+------------+--------------+---------------+---------+
     | 1  | subcloud1| unmanaged  | offline      | complete      | unknown |
     +----+----------+------------+--------------+---------------+---------+

    As the reinstall will cause data and application loss, it is not necessary and not recommended to reinstall a healthy subcloud. The dcmanager rejects the reinstallation of a managed or online subcloud.

  1. Execute the reinstall using the CLI. For example,

    ~(keystone_admin)]$ dcmanager subcloud reinstall subcloud1
  2. Confirm the reinstall of the subcloud.

    You are prompted to enter reinstall to confirm the reinstallation.

    Warning

    This will reinstall the subcloud. All applications and data on the subcloud will be lost.

    Please type reinstall to confirm: reinstall

    Any other input will abort the reinstallation.

  3. At the Central Cloud, monitor the progress of the subcloud installation and bootstrapping by using the deploy status field of the dcmanager subcloud list command, for example,

    ~(keystone_admin)]$ dcmanager subcloud list
    
     +----+-----------+------------+--------------+---------------+---------+
     | id | name      | management | availability | deploy status | sync    |
     +----+-----------+------------+--------------+---------------+---------+
     | 1  | subcloud1 | unmanaged  | offline      | installing    | unknown |
     +----+-----------+------------+--------------+---------------+---------+

    For more information on the deploy status filed, see Installing a Subcloud Using Redfish Platform Management Service <installing-a-subcloud-using-redfish-platform-management-service>.

    You can also monitor detailed logging of the subcloud installation, bootstrapping by monitoring the following log files on the active controller in the Central Cloud.

    • /var/log/dcmanager/subcloud_name_install_date_stamp.log
    • /var/log/dcmanager/subcloud_name_bootstrap_date_stamp.log
  4. After the subcloud is successfully reinstalled and bootstrapped, use the following command to reconfigure the subcloud, subcloud reconfig. For more information, see Managing Subclouds Using the CLI <managing-subclouds-using-the-cli>.