harvester / tests

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

[TEST] Validate Harvester csi-driver chart 0.1.18 on Rancher v2.9.1 and v2.8.7 #1452

Closed TachunLin closed 2 months ago

TachunLin commented 2 months ago

What's the test to develop? Please describe

Validate the Harvester csi-driver chart 0.1.18 can function well on Rancher v2.9.1 and v2.8.7

Test Environment

Test Scope

RKE1:

RKE2:

TachunLin commented 2 months ago

RKE1 test result of csi-driver 0.1.18

Verifying on Rancher v2.8.7-rc4 and Rancher v2.9.1-rc1 with Harvester v1.3.1.

Rancher v2.8.7-rc4 Result

$\color{green}{\textsf{PASS}}$ Can deploy Harvester csi-driver 103.0.2+up0.1.18 on RKE1 v1.28.12 cluster $~~$ 1. The csi-driver can be well deployed and running ![image](https://github.com/user-attachments/assets/8b402677-32e4-4e3e-85e3-48cc443d6fd7)
$\color{green}{\textsf{PASS}}$ Check the csi-driver basic functionalities $~~$ 1. Harvester set as the default storage class ![image](https://github.com/user-attachments/assets/7240857e-ac2c-479f-b77a-559319e8ff55) 2. Can create the nginx deployment and create the Harvester PVC and PV ![image](https://github.com/user-attachments/assets/68bcb7c0-33ef-4b81-9fd9-a6c2856f0614) ![image](https://github.com/user-attachments/assets/c143fe2f-12ec-4145-902b-f567b5201539) ![image](https://github.com/user-attachments/assets/5d7280d7-84de-43b6-8a38-90a9d68d63a0) ![image](https://github.com/user-attachments/assets/d8933777-aaf1-4ada-bdfe-3abd881da3a3) 3. Can create the standalone PVC ![image](https://github.com/user-attachments/assets/0b1ca004-9242-4929-bf17-30930e517a34) ![image](https://github.com/user-attachments/assets/51ed90ee-0da3-4217-8c0c-52ae83ab4262) ![image](https://github.com/user-attachments/assets/0d6c68d7-b03b-492b-ad2c-646439996640) 4. Can delete the standalone PVC ![image](https://github.com/user-attachments/assets/72e14975-7c0d-4d9b-90ed-8fab529176c8) ![image](https://github.com/user-attachments/assets/6f49fe99-3faa-44da-b6cd-3a9b304a2ebf)
$\color{green}{\textsf{PASS}}$ Can uninstall Harvester csi-driver 103.0.2+up0.1.18 on RKE1 v1.28.12 cluster $~~$ 1. The csi-driver can be successfully uninstalled ![image](https://github.com/user-attachments/assets/27e06fbc-1635-4bf1-8fb2-bbc0eca74cac)
$\color{green}{\textsf{PASS}}$ Deploy csi-driver 0.1.17, create PVC and upgrade to 0.1.18, create another PVC cluster $~~$ 1. Can deploy csi-driver 0.1.17 and running correctly ![image](https://github.com/user-attachments/assets/616485e9-5f4e-40f3-8207-23cd4d48f612) ![image](https://github.com/user-attachments/assets/1b6b0f8d-824a-4703-b56a-df2a426fa058) ![image](https://github.com/user-attachments/assets/f41b6356-3ba2-41f9-bcf7-30a07423ef71) 2. Can create a standalone pvc on csi-driver 0.1.17 ![image](https://github.com/user-attachments/assets/e7032bbd-a7b8-42c3-bd73-e70618ebd681) ![image](https://github.com/user-attachments/assets/0d9ad831-df74-4cb4-a68b-e6e3cbd99c40) 3. Can upgrade csi-driver to 0.1.18 ![image](https://github.com/user-attachments/assets/70d88721-0366-40df-90d7-06df92eac735) ![image](https://github.com/user-attachments/assets/5a54ad5b-b1aa-4100-80a9-e192ef941604) 4. Can create another pvc on csi-driver 0.1.18 ![image](https://github.com/user-attachments/assets/8a893a0e-5281-4d68-b03d-2d24fa7bb735) ![image](https://github.com/user-attachments/assets/64ba24b5-ca61-400f-8e3a-51c442a69147)

Rancher v2.9.1-rc1 Result

$\color{green}{\textsf{PASS}}$ Can deploy Harvester csi-driver 103.0.2+up0.1.18 on RKE1 v1.30.3 cluster $~~$ 1. The csi-driver can be well deployed and running ![image](https://github.com/user-attachments/assets/91051553-1f40-42d6-bf68-e5d74a9d914e)
$\color{green}{\textsf{PASS}}$ Check the csi-driver basic functionalities $~~$ 1. Harvester set as the default storage class ![image](https://github.com/user-attachments/assets/4f98c4b1-b9e8-44e2-a1ae-a5c4df117736) 2. Can create the nginx deployment and create the Harvester PVC and PV ![image](https://github.com/user-attachments/assets/a87d337e-aa7f-436b-83a2-eb650f70f6e5) ![image](https://github.com/user-attachments/assets/1823f45a-c463-4c67-bad6-eddef6a72db7) ![image](https://github.com/user-attachments/assets/65fb5be5-e1d4-4a0e-a16d-999b2e1ce140) ![image](https://github.com/user-attachments/assets/2d9c2527-3e60-4d01-a20c-f5bc265064ff) 3. Can create the standalone PVC ![image](https://github.com/user-attachments/assets/53216cac-e836-492d-a17c-e1758be96f6d) ![image](https://github.com/user-attachments/assets/9de3505d-76fe-4816-a0bc-5faac3e6510e) ![image](https://github.com/user-attachments/assets/a8c9de7e-5fcf-4611-ac62-61c4b9727101) 4. Can delete the standalone PVC ![image](https://github.com/user-attachments/assets/3d7f3917-85b2-4ac4-b179-ffc99be0e5e3) ![image](https://github.com/user-attachments/assets/baff30c8-b9e2-40ad-995f-1b65b5361337) ![image](https://github.com/user-attachments/assets/50ecad8f-636d-4950-9210-02d70307508e)
$\color{green}{\textsf{PASS}}$ Can uninstall Harvester csi-driver 103.0.2+up0.1.18 on RKE1 v1.30.3 cluster $~~$ 1. The csi-driver can be successfully uninstalled ![image](https://github.com/user-attachments/assets/83b53e28-fd89-45ad-a465-adb786a519c5)
$\color{green}{\textsf{PASS}}$ Deploy csi-driver 0.1.17, create PVC and upgrade to 0.1.18, create another PVC cluster $~~$ 1. Can deploy csi-driver 0.1.17 and running correctly ![image](https://github.com/user-attachments/assets/23ce0004-037c-43ab-967c-fd52fe757693) 2. Can create a standalone pvc on csi-driver 0.1.17 ![image](https://github.com/user-attachments/assets/d087b568-a734-4c45-ab4f-12f2381bab0e) ![image](https://github.com/user-attachments/assets/ace8a0ef-0fc7-453c-b6f7-1e4f818c8f68) 3. Can upgrade csi-driver to 0.1.18 ![image](https://github.com/user-attachments/assets/1c9e0913-8a2c-4fd0-aad4-f28ef83b8644) ![image](https://github.com/user-attachments/assets/83c6d90c-d15a-4538-ad15-c4e31e625abd) 4. Can create another pvc on csi-driver 0.1.18 ![image](https://github.com/user-attachments/assets/77313795-d6ac-46f6-86e2-ae271fc9f18a) ![image](https://github.com/user-attachments/assets/1d5193b1-666c-4039-a8a3-6a074aeaecc9)

Test Information

Verify Steps

Deploy csi-driver 0.1.18 on RKE1 cluster on Rancher v2.8.7-rc4 1. Use ipxe-example with docker command to provision Harvester and Rancher 4. Create the RKE1 node template 5. Provision the RKE1 guest cluster, set Harvester as the cloud provider 6. After RKE1 cluster up and running 7. Open the chart in Apps 8. Install Harvester cloud provider 0.2.4 from the list 9. Then install Harvester csi-driver 0.1.18 from the list ![image](https://github.com/user-attachments/assets/e219a331-708a-4b7a-891f-c674395082fa)
Deploy csi-driver 0.1.18 on RKE1 cluster on Rancher v2.9.1-rc1 1. Use ipxe-example with docker command to provision Harvester and Rancher 3. Create the RKE1 node template 4. Provision the RKE1 guest cluster, set Harvester as the cloud provider 5. After RKE1 cluster up and running 6. Open the chart in Apps 7. Install Harvester cloud provider 0.2.4 from the list 8. Add a repository in the Apps 10. Select Git repository 11. Provide the Git Repo URL and Git branch 12. Save and check the new repository is working ![image](https://github.com/user-attachments/assets/7c3f71f8-5818-49a2-b68e-79f799372473) 13. Open Apps and install csi-driver from the new repo 14. Then install Harvester csi-driver 0.1.18 from the new repo ![image](https://github.com/user-attachments/assets/ab98003c-454e-4900-b1a7-ce9bacd7a63a)
TachunLin commented 2 months ago

RKE2 test result of csi-driver 0.1.18

Verifying on Rancher v2.8.7-rc4 and Rancher v2.9.1-rc1 with Harvester v1.3.1.

Rancher v2.8.7-rc4 Result

$\color{green}{\textsf{PASS}}$ Can manually deploy Harvester csi-driver 103.0.2+up0.1.18 on RKE2 v1.28.11 cluster $~~$ 1. The csi-driver can be well deployed and running ![image](https://github.com/user-attachments/assets/3cc933fc-2c7a-48a9-bf8a-70376e74daa3) ![image](https://github.com/user-attachments/assets/9b85f165-c617-49b1-b13d-dc1574e94331)
$\color{green}{\textsf{PASS}}$ Check the csi-driver basic functionalities $~~$ 1. Harvester set as the default storage class ![image](https://github.com/user-attachments/assets/2a2c92eb-ae97-4ca6-a792-b2b52923f5d5) 2. Can create the nginx deployment and create the Harvester PVC and PV ![image](https://github.com/user-attachments/assets/cf4a3e51-079d-486b-bd09-9a92b4025ccf) ![image](https://github.com/user-attachments/assets/c43acb27-b70c-4cb5-808a-1ede8b466dac) ![image](https://github.com/user-attachments/assets/f6369fe5-8e97-4c3f-b117-17ade24ec8eb) ![image](https://github.com/user-attachments/assets/99aea6d2-d219-4df3-bd65-f1148f67386a) 3. Can create the standalone PVC ![image](https://github.com/user-attachments/assets/cc5acc1e-730f-487d-9e8d-5fc27228c282) ![image](https://github.com/user-attachments/assets/a0e6db0c-e600-420e-a96a-30cb08aaddde) ![image](https://github.com/user-attachments/assets/038b15fc-e68f-4842-96b9-44f21523c71f) 4. Can delete the standalone PVC ![image](https://github.com/user-attachments/assets/7d9ebc3b-2321-41a7-8060-95eeb13f639a) ![image](https://github.com/user-attachments/assets/6fa1ad01-8c64-4b6c-9f03-87f897d5fe88) ![image](https://github.com/user-attachments/assets/eec79b14-5806-4f4d-b380-dadd154953b4)

Rancher v2.9.1-rc1 Result

$\color{green}{\textsf{PASS}}$ Can manually deploy Harvester csi-driver 103.0.2+up0.1.18 on RKE2 v1.30.2 cluster $~~$ 1. The csi-driver can be well deployed and running ![image](https://github.com/user-attachments/assets/5eee5f14-8cb2-472b-8ccd-de5fbdf7eaa6) ![image](https://github.com/user-attachments/assets/099cfdb4-9b18-41ea-a3e5-59da89f1fd8c)
$\color{green}{\textsf{PASS}}$ Check the csi-driver basic functionalities $~~$ 1. Harvester set as the default storage class ![image](https://github.com/user-attachments/assets/602ddd16-aa42-49fd-b088-670e59575db0) 2. Can create the nginx deployment and create the Harvester PVC and PV ![image](https://github.com/user-attachments/assets/b030aa81-80af-4bb5-bf55-7b0f449e7953) ![image](https://github.com/user-attachments/assets/8cb57204-7b37-4470-81e5-4a31a3b5179f) ![image](https://github.com/user-attachments/assets/df810286-974b-4945-a7c4-d1680ecd34c9) ![image](https://github.com/user-attachments/assets/2ec4f03b-a691-4a0c-884e-6fb825f0c585) 3. Can create the standalone PVC ![image](https://github.com/user-attachments/assets/01714094-bb36-45c9-83b5-791ee1d0a718) ![image](https://github.com/user-attachments/assets/4bce844b-5278-44e9-a722-7d6bffea741b) 4. Can delete the standalone PVC ![image](https://github.com/user-attachments/assets/ad97fd46-4f88-4223-b37b-fd6a6d8066c6) ![image](https://github.com/user-attachments/assets/56d7a101-c861-4a92-9a8e-3042629052c8) ![image](https://github.com/user-attachments/assets/5bdc3426-6621-4325-aa05-526780f76f52) ![image](https://github.com/user-attachments/assets/f77d1e73-5ebd-4c49-abba-93cbfb79e3ad)

Test Information

Verify Steps

Deploy csi-driver 0.1.18 on RKE2 cluster on Rancher https://docs.harvesterhci.io/v1.4/rancher/csi-driver/#install-csi-driver-manually-in-the-rke2-cluster 1. Download the kubeconfig of the Harvester cluster 2. Create a new file under ~/.kube/config/rke2.yaml 3. Add the content of the kubeconfig file of Harvester 4. Export the kubeconfig ``` export KUBECONFIG=~/.kube/rke2.yaml ``` 5. Get the [generate_addon_csi.sh](https://raw.githubusercontent.com/harvester/harvester-csi-driver/master/deploy/generate_addon_csi.sh) script 6. Execute the command ``` ./generate_addon_csi.sh RKE2 ``` 7. Copy the content start with `write_files:` 8. Create a RKE2 cluster 9. Add the content of the generate write file to Machine pools -> Show advanced -> User data ![image](https://github.com/user-attachments/assets/e23d6768-74fc-4d58-a637-14527f319967) 10. Set the cloud provider to `Default - RKE2 Embedded` 11. Provision the RKE2 cluster and wait until it up to running 12. Open Apps -> Repositories 13. Create a new repository with the following Git URL and Branch ``` repo: https://github.com/Vicente-Cheng/rancher-charts.git branch: bump-harvester-csi-driver-v0.1.18-v2.9 ``` 14. Install the latest csi-driver 0.1.18 from the new repository.
TachunLin commented 2 months ago

Close this test issue since already complete all the task items.