From 1c027c840c57c425519542218898fd2d33fda064 Mon Sep 17 00:00:00 2001
From: Michael Johnson <johnsomor@gmail.com>
Date: Tue, 9 Jul 2024 20:16:10 +0000
Subject: [PATCH] Do not install qemu in the Octavia devstack plugin

This patch removes the installation of qemu from the Octavia devstack
plugin. It was installed to make sure the required tools were available
for diskimage-builder. However, these tools should be installed via the
diskimage-builder bindep.txt, which is also run from the Octavia
devstack plugin.

Closes-Bug: #2072590
Change-Id: I76645da7504d8e6e8120c305c73ae16adabc17c4
---
 devstack/plugin.sh | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index ac1998d1fc..7406bba1ce 100644
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -14,19 +14,6 @@ function octavia_install {
     else
         setup_develop $OCTAVIA_DIR
     fi
-    if [ $OCTAVIA_NODE == 'main' ] || [ $OCTAVIA_NODE == 'standalone' ] ; then
-        if ! [ "$DISABLE_AMP_IMAGE_BUILD" == 'True' ]; then
-            if [[ ${DISTRO} =~ (rhel|centos) ]]; then
-                install_package qemu-kvm
-                if [[ "$OCTAVIA_AMP_BASE_OS" == "rocky" ]]; then
-                    # DIB requires podman for building rockylinux images.
-                    install_package podman
-                fi
-            else
-                install_package qemu
-            fi
-        fi
-    fi
 }
 
 function octaviaclient_install {