docs/doc/source/storage/kubernetes/uninstall-rook-ceph-cbb046746782.rst
Elisamara Aoki Goncalves 35370299e6 New Platform App - app-rook-ceph
Create documentation for rook-ceph install, removal and deployment models.

Story: 2011066
Task: 50934

Change-Id: I137d3251078d5868cd2515a617afc5859858b4ac
Signed-off-by: Elisamara Aoki Goncalves <elisamaraaoki.goncalves@windriver.com>
2024-10-31 13:06:29 +00:00

3.3 KiB

Uninstall Rook Ceph

To completely remove Rook Ceph you must remove the app and clear all the environment configurations to prevent an automatic reinstall.

  1. Remove the application by running the script:

    source /etc/platform/openrc
    system application-remove rook-ceph --force
    retry_count=1
    retries=200
    while [ $retry_count -le $retries ]; do
        rookstatus=$(system application-list | grep rook-ceph | awk '{print $10}')
        echo $rookstatus
        if [[ "$rookstatus" == "uploaded" ]]; then
            system application-delete rook-ceph --force
            break
        fi
        echo "Retry #" $retry_count
        let retry_count++
    done
  2. Remove the environment configurations completely.

    1. Remove .

      1. Lock the host.

        ~(keystone_admin)$ system host-lock <hostname>
      2. List all to get the uuid of each .

        ~(keystone_admin)$ system host-stor-list <hostname>
      3. Remove each using the uuid of all .

        ~(keystone_admin)$ system host-stor-delete <uuid>
    2. Remove the storage backend ceph-rook.

      ~(keystone_admin)$ system storage-backend-delete ceph-rook-store --force
    3. Remove host-fs.

      1. Check host-fs status.

        ~(keystone_admin)$ system host-fs-list <hostname>
      2. To remove a host-fs, the filesystem needs to be in Ready state. To release an In-Use host-fs, remove all functions from it and reapply the application:

        ~(keystone_admin)$ system host-fs-modify <hostname> ceph --functions=
        ~(keystone_admin)$ system appliction-apply rook-ceph
      3. When the host-fs is in Ready state, remove the host-fs:

        ~(keystone_admin)$ system host-fs-delete <hostname> ceph
    4. ( Only) Remove controller-fs.

      1. Check controller-fs status.

        ~(keystone_admin)$ system controller-fs-list
      2. To remove a controller-fs, the standby controller must be locked and the controller-fs needs to be in Ready state.

        ~(keystone_admin)$ system host-lock <hostname>
      3. To release an In-Use controller-fs, remove all functions from it and reapply the application.

        ~(keystone_admin)$ system controllerfs-modify ceph-float --functions=
        ~(keystone_admin)$ system appliction-apply rook-ceph
      4. When the controller-fs is in Ready state, remove the host-fs.

        ~(keystone_admin)$ system controller-fs-delete ceph-float