Skip to content

Commit

Permalink
Merge pull request replicatedhq#4 from croomes/preflight-modules
Browse files Browse the repository at this point in the history
Add preflight for kernel modules
  • Loading branch information
croomes authored Jul 8, 2021
2 parents d730e6c + e25b5e0 commit f70a55b
Show file tree
Hide file tree
Showing 48 changed files with 5,185 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/preflight/host/kernel-modules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: troubleshoot.sh/v1beta2
kind: HostPreflight
metadata:
name: modules
spec:
collectors:
- kernelModules: {}
analyzers:
- kernelModules:
outcomes:
- fail:
when: "target_core_mod != loaded,loadable"
message: The 'target_core_mod' kernel module is not loaded or loadable
- fail:
when: "target_core_file != loaded,loadable"
message: The 'target_core_file' kernel module is not loaded or loadable
- fail:
when: "tcm_loop != loaded,loadable"
message: The 'tcm_loop' kernel module is not loaded or loadable
- warn:
when: "nvme != loaded"
message: The system is not using NVME storage, which will provide better performance
- pass:
when: "target_core_mod,target_core_file,tcm_loop == loaded,loadable"
message: The 'target_core_mod', target_core_file', and 'tcm_loop' kernel modules are loaded or loadable

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f70a55b

Please sign in to comment.