Skip to content

Commit bab2636

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Enable nbd if you're running an lxc virt_type without an lvm backend"
2 parents 2363566 + dca06dc commit bab2636

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/nova

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,12 @@ function configure_nova {
354354
sudo mount /cgroup
355355
fi
356356
fi
357+
358+
# enable nbd for lxc unless you're using an lvm backend
359+
# otherwise you can't boot instances
360+
if [[ "$NOVA_BACKEND" != "LVM" ]]; then
361+
sudo modprobe nbd
362+
fi
357363
fi
358364
fi
359365
fi

0 commit comments

Comments
 (0)