Skip to content

Commit

Permalink
Add preflight for kernel modules
Browse files Browse the repository at this point in the history
  • Loading branch information
croomes committed Jul 6, 2021
1 parent 972fe2c commit e25b5e0
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 e25b5e0

Please sign in to comment.