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

fix: check kernel module dm_crypt on host machines #96

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions pkg/local/preflight/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ func (local *Checker) Init() error {
local.packages = []string{
"nfs-common", "open-iscsi", "cryptsetup",
}
local.modules = []string{}
local.modules = []string{
"dm_crypt",
}
local.services = []string{
"multipathd.service",
}
Expand All @@ -117,7 +119,9 @@ func (local *Checker) Init() error {
local.packages = []string{
"nfs-utils", "iscsi-initiator-utils", "cryptsetup",
}
local.modules = []string{}
local.modules = []string{
"dm_crypt",
}
local.services = []string{
"multipathd.service",
}
Expand All @@ -133,7 +137,9 @@ func (local *Checker) Init() error {
local.packages = []string{
"nfs-client", "open-iscsi", "cryptsetup",
}
local.modules = []string{}
local.modules = []string{
"dm_crypt",
}
local.services = []string{
"multipathd.service",
}
Expand All @@ -149,7 +155,9 @@ func (local *Checker) Init() error {
local.packages = []string{
"nfs-utils", "open-iscsi", "cryptsetup",
}
local.modules = []string{}
local.modules = []string{
"dm_crypt",
}
local.services = []string{
"multipathd.service",
}
Expand Down Expand Up @@ -192,6 +200,10 @@ func (local *Checker) Run() error {
return err
}

if err := local.checkModulesLoaded(false); err != nil {
return err
}

if local.EnableSpdk {
instructionSets := map[string][]string{
"amd64": {"sse4_2"},
Expand Down
8 changes: 4 additions & 4 deletions pkg/local/preflight/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (local *Installer) Init() error {
"nfs-common", "open-iscsi", "cryptsetup",
}
local.modules = []string{
"nfs",
"nfs", "dm_crypt",
}
local.services = []string{
"iscsid",
Expand All @@ -98,7 +98,7 @@ func (local *Installer) Init() error {
"nfs-utils", "iscsi-initiator-utils", "cryptsetup",
}
local.modules = []string{
"nfs", "iscsi_tcp",
"nfs", "iscsi_tcp", "dm_crypt",
}
local.services = []string{
"iscsid",
Expand All @@ -117,7 +117,7 @@ func (local *Installer) Init() error {
"nfs-client", "open-iscsi", "cryptsetup",
}
local.modules = []string{
"nfs", "iscsi_tcp",
"nfs", "iscsi_tcp", "dm_crypt",
}
local.services = []string{
"iscsid",
Expand All @@ -136,7 +136,7 @@ func (local *Installer) Init() error {
"nfs-utils", "open-iscsi", "cryptsetup",
}
local.modules = []string{
"nfs", "iscsi_tcp",
"nfs", "iscsi_tcp", "dm_crypt",
}
local.services = []string{
"iscsid",
Expand Down