From ff5ac3e718bb8e5478110ceb037a4c049a418d70 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Wed, 12 May 2021 09:57:53 +0200 Subject: [PATCH] Use virt-customize as regular user This fixed following error running virt-customize as superuser: libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory Depends-On: https://review.opendev.org/c/x/devstack-plugin-tobiko/+/791698 Change-Id: I311a232806112196f5e37bed42fa762af9e4f31c --- tobiko/openstack/glance/_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tobiko/openstack/glance/_image.py b/tobiko/openstack/glance/_image.py index 23e0052a7..32af3062f 100644 --- a/tobiko/openstack/glance/_image.py +++ b/tobiko/openstack/glance/_image.py @@ -429,7 +429,7 @@ class CustomizedGlanceImageFixture(URLGlanceImageFixture): execute = True command += ['--install', package] if execute: - sh.execute(command, sudo=True) + sh.execute(command) sh.get_file(work_file, customized_file) return customized_file