Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Error [ERROR] [root.go:75] sealer-0.9.4-beta2: failed to run hook: preflight #224

Closed
Xiaoweidumpb opened this issue Aug 11, 2023 · 1 comment

Comments

@Xiaoweidumpb
Copy link

Detail Log:

2023-08-11 11:25:47 [INFO] Start pre-flight...
2023-08-11 11:25:47 [INFO] Start parsing and validating trident config from /root/.sealer/Clusterfile
2023-08-11 11:25:47 [INFO] failed to get kube client, think it is first time installation
2023-08-11 11:25:47 [INFO] Start parsing site info...
2023-08-11 11:25:51 [INFO] Start validating cluster...
2023-08-11 11:25:51 [INFO] Start running cluster scope validators...
2023-08-11 11:25:51 [INFO] Start running cluster validator HostNameDuplicate...
2023-08-11 11:25:51 [INFO] Start running cluster validator TimeDiff...
2023-08-11 11:25:52 [INFO] Start running agent validators...
2023-08-11 11:26:14 [WARN] [Validator:OS on host:192.168.3.121] fails: kernel version 4.19.284-0419284-generic cannot be marshal, please contact us for help, but since --ignore-errors is configured, this failure has been ignored.
2023-08-11 11:26:14 [WARN] [Validator:OS on host:192.168.3.122] fails: kernel version 4.19.284-0419284-generic cannot be marshal, please contact us for help, but since --ignore-errors is configured, this failure has been ignored.
2023-08-11 11:26:14 [WARN] [Validator:OS on host:192.168.3.123] fails: kernel version 4.19.284-0419284-generic cannot be marshal, please contact us for help, but since --ignore-errors is configured, this failure has been ignored.
2023-08-11 11:26:14 [INFO] Starting dumping validate report anyway...
Trident version 1.14.3, Build: d1412075 go1.17.2, Build time: 2023-03-31-11-37-07, EnableLicense: false, Log file: /var/lib/sealer/data/my-cluster/rootfs/trident_log_2023-08-11T11-25-47+08-00
failed to validate cluster:
[Validator:SystemTools on host:192.168.3.121] fails: missing system tools: [setenforce] on this node, please install them first, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||SystemTools"] to ignore it.
[Validator:SystemTools on host:192.168.3.122] fails: missing system tools: [setenforce] on this node, please install them first, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||SystemTools"] to ignore it.
[Validator:SystemTools on host:192.168.3.123] fails: missing system tools: [setenforce] on this node, please install them first, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||SystemTools"] to ignore it.
[Validator:TimeSyncService on host:192.168.3.121] fails: either chronyd and ntpd not set in this host, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||TimeSyncService"] to ignore it.
[Validator:TimeSyncService on host:192.168.3.122] fails: either chronyd and ntpd not set in this host, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||TimeSyncService"] to ignore it.
[Validator:TimeSyncService on host:192.168.3.123] fails: either chronyd and ntpd not set in this host, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||TimeSyncService"] to ignore it.
[Validator:KernelFlags on host:192.168.3.121] fails:
invalid kernel flag: kernel/panic_on_oops, expected value: [1], actual value: 0
, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||KernelFlags"] to ignore it.
[Validator:KernelFlags on host:192.168.3.122] fails:
invalid kernel flag: kernel/panic_on_oops, expected value: [1], actual value: 0
, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="|OS|KernelFlags"] to ignore it.
[Validator:KernelFlags on host:192.168.3.123] fails:
invalid kernel flag: kernel/panic_on_oops, expected value: [1], actual value: 0
, please check your cluster and fix this error. Or, if you know what you are doing, you can run with flag [--env IgnoreErrors="OS||KernelFlags"] to ignore it..
You can see entire survey report in /var/lib/sealer/data/my-cluster/rootfs/site-survey-report.yaml

Environment

  • ACK Distro version: sealer-0.9.4-beta2
  • OS (e.g. cat /etc/os-release):Ubuntu 18.04.6 LTS
  • Kernel (e.g. uname -a):4.19.284-0419284-generic

I isure install chronyd Or ntpd and check /var/lib/sealer/data/my-cluster/rootfs/site-survey-report.yaml

I don't know the location of the executed script,like ansible ,I know how it works。

Hope for help

@Xiaoweidumpb
Copy link
Author

apt install selinux-utils
apt install net-tools
apt install rpm
install this
excute this command: sudo sysctl kernel.panic_on_oops=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant