Skip to content

Commit

Permalink
Add a way to enable file injection for nova/tempest
Browse files Browse the repository at this point in the history
File injection is disabled by default for the libvirt
driver in nova. This adds a variable to enable file
injection for the libvirt driver and is also used
to configure tempest.conf for running personality
tests.

Change-Id: I34790fadeffd6e3fdc65bd9feed3d6e62316896c
Related-Bug: #1598581
  • Loading branch information
Matt Riedemann committed Jul 3, 2016
1 parent 9079a40 commit 6d3670a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/nova_plugins/hypervisor-libvirt
Expand Up @@ -57,6 +57,14 @@ function configure_nova_hypervisor {
iniset $NOVA_CONF vnc enabled "false"
fi

if isset ENABLE_FILE_INJECTION; then
if [ "$ENABLE_FILE_INJECTION" == "True" ]; then
# -1 means use libguestfs to inspect the guest OS image for the
# root partition to use for file injection.
iniset $NOVA_CONF libvirt inject_partition '-1'
fi
fi

if [[ "$LIBVIRT_TYPE" = "parallels" ]]; then
iniset $NOVA_CONF libvirt connection_uri "parallels+unix:///system"
iniset $NOVA_CONF libvirt images_type "ploop"
Expand Down
1 change: 1 addition & 0 deletions lib/tempest
Expand Up @@ -348,6 +348,7 @@ function configure_tempest {
iniset $TEMPEST_CONFIG compute max_microversion $tempest_compute_max_microversion
fi

iniset $TEMPEST_CONFIG compute-feature-enabled personality ${ENABLE_FILE_INJECTION:-False}
iniset $TEMPEST_CONFIG compute-feature-enabled resize True
iniset $TEMPEST_CONFIG compute-feature-enabled live_migration ${LIVE_MIGRATION_AVAILABLE:-False}
iniset $TEMPEST_CONFIG compute-feature-enabled change_password False
Expand Down

0 comments on commit 6d3670a

Please sign in to comment.