Files
docs/doc/source/storage/kubernetes/uninstall-rook-ceph-cbb046746782.rst
Ngairangbam Mili 49f242107e the rook-ceph uninstall procedure doesn't seem correct (dsr10)
Change-Id: I6dc8e987101b402dea7502e3ef0221092efc76cf
Signed-off-by: Ngairangbam Mili <ngairangbam.mili@windriver.com>
2025-01-20 04:28:16 +00:00

2.5 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
            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>
      4. Unlock the host.

        ~(keystone_admin)$ system host-unlock <hostname>
    2. ( Only) Remove controllerfs.

      1. To remove a controllerfs, the standby controller must be locked and the controllerfs needs to be in Ready state.

        ~(keystone_admin)$ system host-lock <hostname>
      2. Remove the controllerfs.

        ~(keystone_admin)$ system controllerfs-delete ceph-float
      3. Unlock the standby controller.

        ~(keystone_admin)$ system host-unlock <hostname>
    3. Remove the host-fs.

      ~(keystone_admin)$ system host-fs-delete <hostname> ceph
    4. Remove the storage backend ceph-rook.

      ~(keystone_admin)$ system storage-backend-delete ceph-rook-store --force