From fb3aba94cdae6e41a02eb409037466741b74905a Mon Sep 17 00:00:00 2001 From: Abhishek Kekane Date: Wed, 23 Aug 2023 06:53:31 +0000 Subject: [PATCH] Fix post failures causing by image conversion failure CI jobs tempest-integrated-storage-import-standalone, tempest-integrated-storage-import and glance-multistore-cinder-import were failing while converting image from qcow2 to raw. The failures were caused by changing default behavior of Devstack and installing everything in global virtualenv patch [1]. This fixes import conversion in the affected jobs properly by setting the python interpreter to the one in the venv. When we spawn external commands they actually spawn a python interpreter to use an oslo module to do the exec, and we need to do that with our venv's python. Finally, this bumps the swap size for the storage-import jobs to 8G to help account for the additional overhead of running another glance worker, which is required for that configuration. This matches other jobs with additional overhead (i.e. the ceph ones). [1] https://review.opendev.org/c/openstack/devstack/+/891248 Co-Authored-By: Dan Smith Depends-On: https://review.opendev.org/c/openstack/devstack/+/892571 Change-Id: I073216d1bbddbd3bdecd2b135e4c291f7a4d9abe --- .zuul.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index b184e0cca0..5da0858270 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -206,6 +206,7 @@ The regular tempest-integrated-storage job but with glance metadata injection post-run: playbooks/post-check-metadata-injection.yaml vars: + configure_swap_size: 8192 zuul_copy_output: /etc/glance-remote: logs devstack_localrc: @@ -219,7 +220,7 @@ DEFAULT: enabled_import_methods: "[\"copy-image\", \"glance-direct\"]" wsgi: - python_interpreter: /usr/bin/python3 + python_interpreter: /opt/stack/data/venv/bin/python $GLANCE_IMAGE_IMPORT_CONF: image_import_opts: image_import_plugins: "['inject_image_metadata', 'image_conversion']"