harvester / tests

Harvester test cases
Apache License 2.0
11 stars 32 forks source link

[e2e] [BUG]Unable to delete RKE2 cluster from Rancher UI when the underlying Harvester cluster is inaccessible/deleted #195

Open harvesterhci-io-github-bot opened 2 years ago

harvesterhci-io-github-bot commented 2 years ago

What's the test to develop? Please describe

Can't delete cloud credential if there is an RKE2/k3s cluster rely on it

  1. Import Harvester cluster to Rancher v2.6-head.
  2. Create a cloud credential for Harvester.
  3. Create RKE2/k3s clusters on Harvester.
  4. Try to remove Harvester's cloud credential. It can't be removed.
  5. Remove RKE2/k3s clusters.
  6. Remove Harvester's cloud credential. It can be removed now.

Remove harvester cluster if there is an RKE2/k3s cluster rely on it

  1. Import Harvester cluster to Rancher v2.6-head.
  2. Create a cloud credential for Harvester.
  3. Create RKE2/k3s clusters on Harvester.
  4. Remove the Harvester cluster in Virtualization Management page. Harvester cluster can be removed.
  5. Remove RKE2/k3s clusters in Rancher. RKE2/k3s clusters can be removed, but related VMs are still running in Harvester because Rancher can't connect to the Harvester cluster.
  6. Remove related VMs in Harvester. They can be removed.
  7. Remove Harvester's cloud credential. It can be removed.
khushboo-rancher commented 1 year ago

Let's add these checks in Rancher integration test.