aws-samples / rancher-on-aws-workshop

Learn how to easily deploy and manage Kubernetes with Rancher on AWS Cloud
https://catalog.workshops.aws/rancher
MIT License
12 stars 5 forks source link

longhorn fails to start #23

Closed evdevr closed 1 year ago

evdevr commented 1 year ago

Pod Error:

time="2023-06-09T09:19:33Z" level=error msg="Failed environment check, please make sure you have iscsiadm/open-iscsi installed on the host"
2023-06-09T09:19:33.750772315Z time="2023-06-09T09:19:33Z" level=fatal msg="Error starting manager: environment check failed: failed to execute: nsenter [--mount=/host/proc/19371/ns/mnt --net=/host/proc/19371/ns/net iscsiadm --version], output , stderr nsenter: failed to execute iscsiadm: No such file or directory\n: exit status 127"

Looks like AMI doesn't have this prereq for Longhorn installed- may need to add to userdata or update AMI build.

evdevr commented 1 year ago

when following instructions at https://github.com/aws-samples/rancher-on-aws-workshop/blob/main/content/20-exploring-the-cluster/22-rancher-applications/index.en.md

zackbradys commented 1 year ago

thank you for catching this. added pull request to fix.