I try run Longhorn on RancherOS node, install open-iscsi after show error:
time="2019-10-23T13:36:56Z" level=info msg="Start overwriting built-in settings with customized values"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn replica controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn engine controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn websocket controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn Engine Image controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn node controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn Setting controller"
time="2019-10-23T13:36:56Z" level=info msg="Start kubernetes controller"
time="2019-10-23T13:36:56Z" level=info msg="Starting Longhorn instance manager controller"
time="2019-10-23T13:36:56Z" level=info msg="Start Longhorn volume controller"
time="2019-10-23T13:36:56Z" level=fatal msg="Error starting manager: cannot get disk info of directory /var/lib/rancher/longhorn/: Failed to execute: nsenter [--mount=/host/proc/5423/ns//mnt stat -fc {\"path\":\"%n\",\"fsid\":\"%i\",\"type\":\"%T\",\"freeBlock\":%f,\"totalBlock\":%b,\"blockSize\":%S} /var/lib/rancher/longhorn/], output , stderr, nsenter: failed to execute stat: No such file or directory\n, error exit status 1"
Also getting this error, Brand new cluster and node setup on RancherOS.
Changing to Ubuntu and ditching RancherOS fixed this. Must be some incompatibility with the latest RancherOS?
Same issue.
RancherOS 1.5.4, Rancher 2.3, Longhorn 0.70. Fresh installed cluster,
Same issue.
RancherOS 1.5.4, Rancher 2.3.3, Longhorn 0.70. Fresh installed cluster,
@Rancheroo @greyman-hh Can you raise an issue in RancherOS and link here? Seems something was missing in the RancherOS.
New issue created
Same issue.
RancherOS 1.5.5, Rancher 2.3.3, Longhorn 0.8.0. Fresh installed cluster,
Same issue as well.
RancherOS 1.5.5, Rancher 2.3.3, Longhorn 0.8.0. Fresh installed cluster,
Looks like RancherOS doesn't include the stat tool.
I was able to get Longhorn working on RancherOS by running the following set of commands:
sudo wget https://busybox.net/downloads/binaries/1.31.0-i686-uclibc/busybox_STAT -O /bin/stat
sudo wget https://busybox.net/downloads/binaries/1.31.0-i686-uclibc/busybox_FLOCK -O /bin/flock
sudo chmod +x /bin/stat
sudo chmod +x /bin/flock
sudo ros s enable open-iscsi
sudo ros s up open-iscsi
This basically just downloads the missing utilities (stat, flock) from busybox and enables open-iscsi.
The issue is that the /bin folder doesn't persist between reboots, so this isn't a real solution. Seems like stat and flock would just need to be included in RancherOS and Longhorn would work fine.
thx, works fine, I hope we see this soon in the next release.
I was able to get Longhorn working on RancherOS by running the following set of commands:
sudo wget https://busybox.net/downloads/binaries/1.31.0-i686-uclibc/busybox_STAT -O /bin/stat sudo wget https://busybox.net/downloads/binaries/1.31.0-i686-uclibc/busybox_FLOCK -O /bin/flock sudo chmod +x /bin/stat sudo chmod +x /bin/flock sudo ros s enable open-iscsi sudo ros s up open-iscsiThis basically just downloads the missing utilities (stat, flock) from busybox and enables open-iscsi.
The issue is that the
/binfolder doesn't persist between reboots, so this isn't a real solution. Seems likestatandflockwould just need to be included in RancherOS and Longhorn would work fine.
I asked in the last k3s meetup about this Issue, I got following response: "this is off topic from the meetup, but ill get it to the devs. you should know that we are no longer focusing heavily on rancher os."
Looks like its time to ditch RancherOS for me.
That was me. I don't know all the technical details of this issue. I also don't know if this bug applies specifically to _just_ rancher os or some other subset of linux OSes. Just wanted to give the full picture.
@normanschlatter That worked for me
Please @yasker and @superseb, promote this changes on RancherOS in order to support Longhorn natively:
For all on this thread that want to implement the change - Explained:
from:
# CONFIG_FLOCK is not set
to:
CONFIG_FLOCK=y
CONFIG_STAT=y
CONFIG_FEATURE_STAT_FORMAT=y
CONFIG_FEATURE_STAT_FILESYSTEM=y
usr/bin/flock \
usr/bin/stat \
https://github.com/rancher/os-base/blob/master/README.mdARG OS_BASE_URL_amd64=http://192.168.1.15:8080/os-base_amd64.tar.xzThe new ISO will have flock and stat necessaries by longhorn installed by default at the distribution.
Just installed longhorn 1.0.1 and, although this article helped (adding stat and flock), I found I was also missing lsblk, which I "stole" from an overlay file system:
cp /var/lib/docker/overlay2/84b6637f5e5e0d1a160300637d3a183f0d1cf0cb3c483545fb9e4ad72cf9a1c3/merged/bin/lsblk /bin/
(your long hex string WILL be different, I used "find / -type f -name lsblk -print" to find one. Make sure you get one from the "merged" path).
I will update here if I ever figure out how to make these three executables "permanent" after boot.
@uhcl-lund I modified RancherOS to include stat and flock. I'll also include lsblk. I was wondering if you can test it ? Thanks.
I’d be happy to. I am new to GitHub, but not to git in general. Do you have a document to help me set up my workstation to do the pull/build? Sorry if it is obvious, but I didn’t poke around much, just submitted the comment.
Thanks to Longhorn, I now have my own docker-registry, so…
Kurt
From: Gabriel Knepper Mendes notifications@github.com
Sent: Tuesday, August 4, 2020 10:35 PM
To: longhorn/longhorn longhorn@noreply.github.com
Cc: Lund, Kurt lund@uhcl.edu; Mention mention@noreply.github.com
Subject: Re: [longhorn/longhorn] Longhorn manager not run on RancherOS (#828)
@uhcl-lundhttps://urldefense.com/v3/__https:/github.com/uhcl-lund__;!!BCR0FSePrR4x!UZQmQlYf4qtTHW30IGwk_ONeUMPr6HNBqy8rrOdONQ6KWRdWCnwR0HgbkBeV$ I modified RancherOS to include stat and flock. I'll also include lsblk. I was wondering if you can test it ? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/longhorn/longhorn/issues/828*issuecomment-668960111__;Iw!!BCR0FSePrR4x!UZQmQlYf4qtTHW30IGwk_ONeUMPr6HNBqy8rrOdONQ6KWRdWCnwR0OulZNiq$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AQQFXDQNEUD2BFW7565WX6DR7DHM3ANCNFSM4JEBQF6Q__;!!BCR0FSePrR4x!UZQmQlYf4qtTHW30IGwk_ONeUMPr6HNBqy8rrOdONQ6KWRdWCnwR0NBglMmf$.
Most helpful comment
I was able to get Longhorn working on RancherOS by running the following set of commands:
This basically just downloads the missing utilities (stat, flock) from busybox and enables open-iscsi.
The issue is that the
/binfolder doesn't persist between reboots, so this isn't a real solution. Seems likestatandflockwould just need to be included in RancherOS and Longhorn would work fine.