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

modprobe rbd if needed #5377

Merged
merged 3 commits into from
Aug 29, 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
9 changes: 9 additions & 0 deletions addons/rook/1.12.8/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ function rook_pre_init() {
rook_prompt_migrate_from_longhorn

rook_lvm2

rook_modprobe_rbd
}

function rook_post_init() {
Expand Down Expand Up @@ -1146,3 +1148,10 @@ function rook_render_cluster_nodes_tmpl_yaml() {
function rook_patch_cephcluster_nodes() {
kubectl -n rook-ceph patch cephcluster/rook-ceph --type=merge --patch-file="$dst/patches/cluster-nodes.yaml"
}

function rook_modprobe_rbd() {
if ! lsmod | grep rbd; then
modprobe rbd
echo 'rbd' > /etc/modules-load.d/kurl-rook-rbd.conf
fi
}
9 changes: 9 additions & 0 deletions addons/rook/template/base/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ function rook_pre_init() {
rook_prompt_migrate_from_longhorn

rook_lvm2

rook_modprobe_rbd
}

function rook_post_init() {
Expand Down Expand Up @@ -1146,3 +1148,10 @@ function rook_render_cluster_nodes_tmpl_yaml() {
function rook_patch_cephcluster_nodes() {
kubectl -n rook-ceph patch cephcluster/rook-ceph --type=merge --patch-file="$dst/patches/cluster-nodes.yaml"
}

function rook_modprobe_rbd() {
if ! lsmod | grep rbd; then
modprobe rbd
echo 'rbd' > /etc/modules-load.d/kurl-rook-rbd.conf
fi
}
Loading