JamesTurland / JimsGarage

Homelab Goodies
2.18k stars 485 forks source link

Longhorn Debian 12 Fails #16

Closed SamB-GB closed 1 year ago

SamB-GB commented 1 year ago

Running the longhorn script on all Debian 12 nodes results in the following continuous loop:

longhorn-driver-deployer-6db5964bd7-dsfpt   0/1     Init:0/1           0             3m12s
longhorn-manager-54b9r                      0/1     CrashLoopBackOff   4 (81s ago)   3m12s
longhorn-manager-n482r                      0/1     CrashLoopBackOff   4 (73s ago)   3m12s
longhorn-manager-wx77w                      0/1     CrashLoopBackOff   5 (4s ago)    3m12s
longhorn-ui-686ddb449f-29bgg                1/1     Running            0             3m11s
longhorn-ui-686ddb449f-lfmmw                1/1     Running            0             3m12s
longhorn-manager-54b9r                      0/1     Running            5 (87s ago)   3m18s
longhorn-manager-54b9r                      0/1     Error              5 (88s ago)   3m19s
longhorn-manager-54b9r                      0/1     CrashLoopBackOff   5 (2s ago)    3m20s
longhorn-manager-n482r                      0/1     Running            5 (91s ago)   3m30s
longhorn-manager-n482r                      0/1     Error              5 (92s ago)   3m31s
longhorn-manager-n482r                      0/1     CrashLoopBackOff   5 (2s ago)    3m32s
dlonghorn-manager-wx77w                      0/1     Error              6 (2m51s ago)   5m59s
longhorn-manager-54b9r                      0/1     Error              6 (2m41s ago)   5m59s
longhorn-manager-54b9r                      0/1     CrashLoopBackOff   6 (2s ago)      6m1s
longhorn-manager-wx77w                      0/1     CrashLoopBackOff   6 (4s ago)      6m3s
longhorn-manager-n482r                      0/1     Error              6 (2m55s ago)   6m25s
longhorn-manager-n482r                      0/1     CrashLoopBackOff   6 (6s ago)      6m31s

I see the following: invalid capacity 0 on image filesystem

SamB-GB commented 1 year ago

I found the problem:

time="2023-10-31T01:41:22Z" level=fatal msg="Error starting manager: Failed environment check, please make sure you have iscsiadm/open-iscsi installed on the host: failed to execute: nsenter [--mount=/host/proc/1230/ns/mnt --net=/host/proc/1230/ns/net iscsiadm --version], output , stderr nsenter: failed to execute iscsiadm: No such file or directory\n: exit status 127"

Fixed the issue

sudo apt-get install open-iscsi
JamesTurland commented 1 year ago

Interesting, thanks for figuring it out.