This message was deleted.
# longhorn-storage
a
This message was deleted.
b
Checked this but no use https://github.com/longhorn/longhorn/issues/6688 Engine is v1 and offline building is disabled Longhorn version 1.5.4
p
you can force detach
b
Can you please share command or tell steps how to do it? Or guide to docs?
p
idk mate looks pretty self explenatory
b
hmm but that option is disabled
p
Are you longhorn admin?
b
yup
p
no clue why its disabled then
b
ok
@little-kangaroo-65735 @creamy-pencil-82913 tagging you guys because you helped with a bug previously
l
@aloof-branch-69545 Could you help? Thanks
👀 1
b
Thanks @little-kangaroo-65735 The issue got resolved https://github.com/longhorn/longhorn/issues/4988#issuecomment-1345676772 It was issue with iscsi-initiator-utils and container-selinux Following this workaround with all longhorn pods restart worked https://longhorn.io/kb/troubleshooting-volume-attachment-fails-due-to-selinux-denials/ Why restart all pods: even after successfully running the daemonset pod was not detaching So decided to restart pods and monitor We scaled down all out workload and did restart
👍 2
Cluster is deployed on Redhat 8 version
Thanks @creamy-pencil-82913 @aloof-branch-69545
a
That's great! To improve the troubleshooting experience for others in the future Can you share how did you find the root cause and the Knowledge Base to try?
b
Yup sure So I started digging into the issue Google searches for "force detach volume longhorn", "longhorn volume not detaching" From this I got to a github issue where it stated it is issue in iscsi https://github.com/longhorn/longhorn/issues/4988#issuecomment-1345676772 But the workaround was for openshift clusters We have the cluster hosted on VMs So after finding more I found this https://longhorn.io/kb/troubleshooting-volume-attachment-fails-due-to-selinux-denials/ So followed these steps
Copy code
git clone <https://github.com/longhorn/longhorn.git>
cd longhorn
kubectl apply -f deploy/prerequisite/longhorn-iscsi-selinux-workaround.yaml
But still it was not detaching so restarted all pods under longhorn-system namespace Then it worked Basically the issue was with iscsi and selinux and our VMs were Redhat so I found it related
a
Thanks for the sharing!