-
Related issues: #1455 Node driver provisioning fails when resource quota configured in project
-
Related issues: #1449 Incorrect naming of project resource configuration
Category:
- Rancher Integration
Environment setup
- Install the latest rancher from docker command
$ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged rancher/rancher:v2.6.3
Test Scenarios
-
Scenario 1:
- Project with resource quota:
- CPU Limit / CPU Reservation: 6000 / 6144
- Memory Limit / Memory Reservation: 6000 / 6144
- Project with resource quota:
-
Scenario 2:
-
Project resource quota:
- CPU Limit / CPU Reservation: 6 core / 6GB
- Memory Limit / Memory Reservation: 6 core / 6GB
-
Container resource limit:
- CPU limit/reservation: 2000/1000
- Memory limit/reservation: 500/256
-
Verification Steps
- Import harvester from rancher
- Open Cluster management -> Driver
- Create cloud credential
- Access harvester from virtualization management page
- Create a new project
test-1561-proj
and assign the following resource quota value
-
Project resource quota:
- CPU Limit / CPU Reservation: 6000 / 6144
- Memory Limit / Memory Reservation: 6000 / 6144
-
Namespace resource quota: None (default)
- Create a namespace
test-1561-ns
under thetest-1561-proj
- Provision a rke2 cluster with 2 CPU and 4GB memory and set namespace to
test-1561-ns
- Create a new project
test-project2
and and assign the following resource quota value
-
Project resource quota:
- CPU Limit / CPU Reservation: 6 core / 6GB
- Memory Limit / Memory Reservation: 6 core / 6GB
-
Namespace resource quota: None (default)
-
Container resource limit:
- CPU limit/reservation: 2000/1000
- Memory limit/reservation: 500/256
- Provision a rke2 cluster with
1
CPU and1GB
memory and set namespace totest-namespace2
Expected Results
-
The
1st scenario
can provision RKE2 cluster with VM successfully created and running with resource quota configured on project and default setting on namespace. -
The
2nd scenario
can provision RKE2 cluster with VM successfully created and running with resource quota configured on project, default setting on namespace, and container resource quota configured