Open harvesterhci-io-github-bot opened 2 years ago
longhorn/longhorn-loop-device-cleaner
test.txt
123
instance-manager-e-xxxx
As the longhorn-loop-device-cleaner is a workaround for the bug, we don't need to test Case 2 in the future where the workaround still exist.
longhorn-loop-device-cleaner
Case 2: longhorn-loop-device-cleaner will be deleted after upgrade Clone https://github.com/harvester/harvester Remove longhorn-device-cleaner.yaml file under deploy/charts/harvester/template folder. Build ISO. cp -r ~/.docker . export REPO=<dockerhub-username> export PUSH=true make make build-iso Apply a new Version like: apiVersion: harvesterhci.io/v1beta1 kind: Version metadata: name: new-master-head namespace: harvester-system spec: isoChecksum: <xxxx> isoURL: <localhost:port/harvester-master-amd64.iso> minUpgradableVersion: master-head releaseDate: "20220415" tags: - dev - test Click the upgrade button on the dashboard. After upgrade, longhorn/longhorn-loop-device-cleaner DaemonSet will be removed.
longhorn-device-cleaner.yaml
deploy/charts/harvester/template
cp -r ~/.docker . export REPO=<dockerhub-username> export PUSH=true make make build-iso
apiVersion: harvesterhci.io/v1beta1 kind: Version metadata: name: new-master-head namespace: harvester-system spec: isoChecksum: <xxxx> isoURL: <localhost:port/harvester-master-amd64.iso> minUpgradableVersion: master-head releaseDate: "20220415" tags: - dev - test
related issue: harvester/harvester#2137
This is a workaround solution, so it would be priority/3 to implement automation. (Or we will not need to implement it when the workaround is not needed.)
priority/3
What's the test to develop? Please describe
Case 1: VM is not stuck in terminating
longhorn/longhorn-loop-device-cleaner
is existent.test.txt
with content123
in the VM.instance-manager-e-xxxx
on that node.test.txt
is123
in the VM.As the
longhorn-loop-device-cleaner
is a workaround for the bug, we don't need to test Case 2 in the future where the workaround still exist.related issue: harvester/harvester#2137