Commit Graph

16 Commits

Author SHA1 Message Date
Phan Le
1410adf090 Fix bug: check script fails to perform all checks
When piping the script to bash (cat ./environment_check.sh | bash), the
part after `kubectl exec -i` will be interpreted as the input for the
command inside kubectl exec command. As the result, the env check script
doesn't perform the steps after that kubectl exec command. Removing the
`-i` flag fixed the issue.

Also, replacing `kubectl exec -t` by `kubectl exec` because the input of
kubectl exec command is not a terminal device

longhorn-5653

Signed-off-by: Phan Le <phan.le@suse.com>
2023-10-19 21:42:59 +08:00
Phan Le
bda6c52a40 Add kernel release check to environment_check.sh
longhorn-6854

Signed-off-by: Phan Le <phan.le@suse.com>
(cherry picked from commit d30a970ea8)
2023-10-11 17:12:42 -07:00
achims311
837778f389 Fix for bug #5304 (second version including POSIX way to call subroutine) (#5314)
* Fix for bug #5304.

It uses the same technologie to get the kernel release as it was used
before to get the os of the node

Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>

* used a lower case variable name as suggested by innobead

Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>

---------

Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>
Co-authored-by: David Ko <dko@suse.com>
(cherry picked from commit 94a23e5b05)
2023-02-07 15:00:33 +08:00
Haribo112
446fb68bbe Made environment_check.sh POSIX compliant (#5310)
Made environment_check.sh POSIX compliant

Signed-off-by: Harold Holsappel <h.holsappel@iwink.nl>
Co-authored-by: Harold Holsappel <h.holsappel@iwink.nl>
(cherry picked from commit 5a071e502c)
2023-02-06 18:06:21 +08:00
Derek Su
c32192c4d2 environment check: precisely check kernel option
Longhorn 3157

Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit 62998adab2)
2022-12-26 20:24:19 +08:00
Derek Su
4fd6aac2ac environment_check.sh: add nfs client kernel support
Longhorn 3157

Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit c83497b685)
2022-12-26 16:12:06 +08:00
Derek Su
939ac11774 environment_check.sh: check the hostname uniqueness
Longhorn 5012

Signed-off-by: Derek Su <derek.su@suse.com>
2022-12-08 21:41:46 +08:00
Serge Tkatchouk
c1b93f5531 Add Gentoo support to environment_check.sh
This addition will allow Gentoo users to run this script and get sensible error messages in case they forgot to install required packages.

Signed-off-by: Serge Tkatchouk <sp1j3t@gmail.com>
2022-07-29 12:56:10 +08:00
Dante Foulke
edc1b83c5f bugfix for issue #4216
Signed-off-by: Dante Foulke <flkdnt@gmail.com>
2022-07-13 16:28:16 +08:00
Max Hooton
b4fd827436 added arch support
Signed-off-by: Keloran <keloran@chewedfeed.com>
2022-05-08 12:07:19 +08:00
David Ko
f29d1da373 Release 1.3.0-preview1
Signed-off-by: David Ko <dko@suse.com>
2022-05-06 21:21:11 +08:00
Andrew Lavery
ae45a58c3d environment check script should check all pods
instead of just the first pod that it finds

Signed-off-by: Andrew Lavery <laverya@umich.edu>
2021-06-04 14:41:34 +08:00
James Oliver
581b54651a Update docs relevant to FlexVolume dirpath setting 2018-09-12 18:03:39 -07:00
Sheng Yang
d4d94cb82a Sync with Longhorn manager
commit ad90204cc69512b1ed3c0b544d088fa22ebbb5ce
Author: Sheng Yang <sheng@yasker.org>
Date:   Thu Aug 23 14:12:21 2018 -0700

    Update image to rancher/longhorn-manager:v0.3.0

    Engine image: rancher/longhorn-engine:v0.3.0

    UI Image: rancher/longhorn-ui:v0.3.0
2018-08-23 14:24:05 -07:00
Sheng Yang
9098172019 Sync with Longhorn Manager
commit 7344e505df6d3b779d46c4fb153c3169316fe753
Author: James Oliver <joliver@rancher.com>
Date:   Tue Aug 21 18:51:13 2018 -0700

    Detect flexvolume path by inspecting host pid namespace
2018-08-21 20:11:33 -07:00
Sheng Yang
bb1ac25afd Sync with Longhorn Manager
Manager commit:

commit 266f566783e47ce5e351f98491ea5b7b86a875d2
Author: Sheng Yang <sheng@yasker.org>
Date:   Tue Aug 21 11:48:22 2018 -0700

    Update images

    Manager: rancher/longhorn-manager:2c17d9e
    UI: rancher/longhorn-ui:72303d9
2018-08-21 16:10:53 -07:00