35-Hot plug and unplug volumes in RKE2 cluster

  • Related task: #1396 Integration Cloud Provider for RKE1 with Rancher

Environment Setup

  1. Docker install rancher v2.6.3
  2. Create one node harvester with enough resource

Verify Steps

  1. Environment preparation as above steps

  2. Import harvester to rancher from harvester settings

  3. Create cloud credential

  4. Create RKE2 cluster as test case #34

  5. Access RKE2 cluster

  6. Open charts in Apps & Market page

  7. Install harvester cloud provider and CSI driver

  8. Make sure cloud provider installed complete

  9. Switch to All-namespace and check installed apps page

  10. Create a new repo and set url to https://charts.bitnami.com/bitnami image

  11. Find and deploy wordpress in chart image

  12. Open Global settings in Rancher dashboard

  13. Change the UI-offline preferred to Remote image

  14. Click ctrl+R to refresh page

  15. Access RKE2 cluster

  16. Open Services in service discovery

  17. Edit the config of wordpress load balancer service

  18. Open the Add-on config in load balancer page and save image

  19. Check wordpress deployment

  20. Check Storage Class page

  21. Check Persistent Volume in storage

  22. Open Storage -> PersistentVolumeClaims

  23. Open Storage -> PersistentVolume

  24. Remove wordpress in InstalledApps

Expected Results

  1. Check harvester storageClassess exists image
  2. Check wordpress related persistent volume claims bounded image
  3. Check wordpress related persistent volume bounded image
  4. Check related persistentvolumeclaims and persistent volume can be deleted accordingly