Ref: https://github.com/harvester/harvester/issues/1831
Criteria
- exceed the maximum, there should have requeue devices which equals the exceeds
- hit the maximum, there should not have requeue devices
- less than maximum, there should not have requeue devices
Verify Steps:
- Install Harvester with any node having at least 6 additional disks
- Login to console and execute command to update log level to
debug
andmax-concurrent-ops
to1
(On KVM environment, we have to set to1
to make sure the requeuing will happen.)kubectl patch ds -n harvester-system harvester-node-disk-manager --type=json -p'[{"op":"replace", "path":"/spec/template/spec/containers/0/command", "value": ["node-disk-manager", "--debug", "--max-concurrent-ops", "1"]}]'
- Watching log output by executing
kubectl get pods -A | grep node-disk | awk '{system("kubectl logs -fn "$1" "$2)}'
- Login to dashboard then navigate and edit host to add more than
1
disks - In the console log, should display
Hit maximum concurrent count. Requeue device <device id>
- In the dashboard, disks should be added successfully.
- Login to console and execute command to update log level to
debug
andmax-concurrent-ops
to2
kubectl patch ds -n harvester-system harvester-node-disk-manager --type=json -p'[{"op":"replace", "path":"/spec/template/spec/containers/0/command", "value": ["node-disk-manager", "--debug", "--max-concurrent-ops", "2"]}]'
- Watching log output by executing
kubectl get pods -A | grep node-disk | awk '{system("kubectl logs -fn "$1" "$2)}'
- Login to dashboard then navigate and edit host to add
2
disks - In the console log, there should not display
Hit maximum concurrent count. Requeue device <device id>
- In the dashboard, disks should be added successfully.
- Login to console and execute command to update log level to
debug
kubectl patch ds -n harvester-system harvester-node-disk-manager --type=json -p'[{"op":"replace", "path":"/spec/template/spec/containers/0/command", "value": ["node-disk-manager", "--debug"]}]'
- Watching log output by executing
kubectl get pods -A | grep node-disk | awk '{system("kubectl logs -fn "$1" "$2)}'
- Login to dashboard then navigate and edit host to add less than
5
disks - In the console log, there should not display
Hit maximum concurrent count. Requeue device <device id>
- In the dashboard, disks should be added successfully.