Skip to content

Commit ea76f31

Browse files
Chuck CarmackMatt Riedemann
authored andcommitted
Use LVM_VOLUME_CLEAR if set
There are a few CI efforts going on related to jobs that use the lvm image backend for the libvirt driver in Nova. We don't want to waste time zero'ing out volumes during CI runs, so we need a way to configure nova to not clear the volumes in these jobs. This change adds a variable used to set the CONF.libvirt.volume_clear value in nova.conf. If the variable isn't set, Nova just uses the default. This will be set to 'none' in the jobs that are going to use LVM. Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com> Change-Id: I1e97ba6ab4772a87192ae2689a25050d432358ab
1 parent ceb6320 commit ea76f31

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/nova

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,9 @@ function create_nova_conf {
604604
if [[ "$NOVA_BACKEND" == "LVM" ]]; then
605605
iniset $NOVA_CONF libvirt images_type "lvm"
606606
iniset $NOVA_CONF libvirt images_volume_group $DEFAULT_VOLUME_GROUP_NAME
607+
if isset LVM_VOLUME_CLEAR; then
608+
iniset $NOVA_CONF libvirt volume_clear "$LVM_VOLUME_CLEAR"
609+
fi
607610
fi
608611

609612
if is_ssl_enabled_service glance || is_service_enabled tls-proxy; then

0 commit comments

Comments
 (0)