nutritious-oxygen-89191
04/18/2023, 7:08 AMError from server: error dialing backend: x509: certificate is valid for 127.0.0.1, not <http://xxx.xxx.xxx.xxx|xxx.xxx.xxx.xxx>
[ERROR] Unable to detect kernel release on node XXX.
when running the script mentioned here https://longhorn.io/docs/1.4.1/deploy/install/#installation-requirements I have followed all the instructions listed before that.billowy-painting-56466
04/19/2023, 12:36 AMnutritious-oxygen-89191
04/19/2023, 6:26 AMgrep -E "^ID_LIKE=" /etc/os-release | cut -d= -f2
on all nodes is debian
.billowy-painting-56466
04/19/2023, 6:39 AMError from server: error dialing backend: x509: certificate is valid for 127.0.0.1, not <http://xxx.xxx.xxx.xxx|xxx.xxx.xxx.xxx>
. Looks like the check script failed executing kubectl.
Are you running locally on one of the K8s nodes?nutritious-oxygen-89191
04/19/2023, 6:58 AMbillowy-painting-56466
04/19/2023, 7:02 AMnutritious-oxygen-89191
04/19/2023, 7:02 AMError from server: error dialing backend: x509: certificate is valid for 127.0.0.1, not <http://xxx.xxx.xxx.xxx|xxx.xxx.xxx.xxx>
[ERROR] Unable to detect kernel release on node geo-node1.
geo-node1
is a worker (4th node)billowy-painting-56466
04/19/2023, 7:19 AMnutritious-oxygen-89191
04/19/2023, 8:28 AMbillowy-painting-56466
04/19/2023, 8:31 AMkubectl get ns
?nutritious-oxygen-89191
04/19/2023, 8:32 AMNAME STATUS AGE
cattle-fleet-clusters-system Active 39d
cattle-fleet-local-system Active 39d
cattle-fleet-system Active 39d
cattle-global-data Active 39d
cattle-global-nt Active 39d
cattle-impersonation-system Active 39d
cattle-monitoring-system Active 28d
cattle-system Active 44h
cluster-fleet-local-local-1a3d67d0a899 Active 39d
default Active 39d
fleet-default Active 39d
fleet-local Active 39d
gi Active 39d
kube-node-lease Active 39d
kube-public Active 39d
kube-system Active 39d
local Active 39d
longhorn-system Active 13d
node-feature-discovery Active 27d
p-d92bp Active 13d
p-h6p5f Active 13d
p-lwjbx Active 13d
p-xgtff Active 13d
p-xsq75 Active 13d
user-6v7ft Active 13d
whatwhatwhy Active 33d
billowy-painting-56466
04/19/2023, 8:33 AMkubectl exec -it <any-pod> -- bash
nutritious-oxygen-89191
04/19/2023, 8:35 AMkubectl exec -it -n whatwhatwhy box1-798d6dd5d6-mjftc -- bash
billowy-painting-56466
04/19/2023, 8:36 AMnutritious-oxygen-89191
04/19/2023, 8:36 AMkubectl exec -it overlaytest-4vfff -- bash
billowy-painting-56466
04/19/2023, 8:38 AMkubectl exec -i <daemonset-pod> -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'grep -E "^ID_LIKE=" /etc/os-release | cut -d= -f2'
kubectl exec -i <daemonset-pod> -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'uname -r'
nutritious-oxygen-89191
04/19/2023, 11:19 AM$ kubectl get pods -o wide | grep longhorn-environment-check
longhorn-environment-check-6d64z 1/1 Running 0 7m7s 10.42.2.157 gi-rm1 <none> <none>
longhorn-environment-check-cwk62 1/1 Running 0 7m7s 10.42.1.252 geo-node1 <none> <none>
longhorn-environment-check-rjkhf 1/1 Running 0 7m7s 10.42.0.159 gi-rm0 <none> <none>
longhorn-environment-check-xmtqs 1/1 Running 0 7m7s 10.42.3.21 gi-rm2 <none> <none>
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'grep -E "^ID_LIKE=" /etc/os-release | cut -d= -f2'
debian
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'uname -r'
5.15.0-69-generic
$ DS=longhorn-environment-check-cwk62
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'grep -E "^ID_LIKE=" /etc/os-release | cut -d= -f2'
debian
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'uname -r'
5.15.0-69-generic
$ DS=longhorn-environment-check-rjkhf
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'grep -E "^ID_LIKE=" /etc/os-release | cut -d= -f2'
Error from server: error dialing backend: x509: certificate is valid for 127.0.0.1, not 82.165.18.79
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'uname -r'
Error from server: error dialing backend: x509: certificate is valid for 127.0.0.1, not 82.165.18.79
$ DS=longhorn-environment-check-xmtqs
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'grep -E "^ID_LIKE=" /etc/os-release | cut -d= -f2'
debian
$ kubectl exec -i ${DS} -- nsenter --mount=/proc/1/ns/mnt -- bash -c 'uname -r'
5.15.0-69-generic
billowy-painting-56466
04/19/2023, 12:55 PMnutritious-oxygen-89191
04/19/2023, 12:56 PMgeo-node1
billowy-painting-56466
04/20/2023, 1:04 AMnutritious-oxygen-89191
04/20/2023, 7:53 AM