diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 6619471..dd476d1 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -7,7 +7,7 @@ customize_advanced_image(){ # This code modifies the downloaded image by adding packages required by this # plugin, uploads the image to glance and if all passed successfully it updates # tempest.conf with the new image reference instead of the original one. - sudo dnf install guestfs-tools -y + install_package guestfs-tools for image_url in ${IMAGE_URLS//,/ }; do if [[ $image_url =~ $ADVANCED_IMAGE_NAME ]]; then image_file=$(basename $image_url) @@ -17,7 +17,7 @@ customize_advanced_image(){ if [ -n "$image_file" ] && [ -s "$TOP_DIR/files/$image_file" ]; then cp -f $TOP_DIR/files/$image_file /tmp image_file_custom=/tmp/$image_file - timeout 150 virt-customize -a $image_file_custom --install nmap,python3,keepalived,iperf3 --selinux-relabel + timeout 150 sudo virt-customize -a $image_file_custom --install nmap,python3,keepalived,iperf3 --selinux-relabel if [ "$?" == "0" ]; then source $TOP_DIR/openrc admin old_image_id=$(openstack image show $ADVANCED_IMAGE_NAME -c id -f value)