Merge "Improve tempest plugins installation"

This commit is contained in:
Zuul 2019-04-03 13:01:09 +00:00 committed by Gerrit Code Review
commit 75c1ec79d6
1 changed files with 4 additions and 6 deletions

View File

@ -22,12 +22,10 @@ fi
{{ ansible_pkg_mgr }} remove -y {{ convert_image_remove_pkgs|join(" ") }}
{{ ansible_pkg_mgr }} install -y {{ convert_image_install_pkgs|join(" ") }}
# NOTE(trown) Install tempest and test packages in a seperate yum transaction
# so that we do not fail the conversion if this install fails. There is a period
# after TripleO uploads a new image, but before the buildlogs repo gets synced,
# where this will fail because we try to install older test packages than the
# service packages already installed in the image.
{{ansible_pkg_mgr }} install -y {{ convert_image_tempest_plugins|join(" ") }} || /bin/true
{% if convert_image_tempest_plugins is defined and convert_image_tempest_plugins|length %}
{# keep plugins install isolated from previous yum install to ease debugging #}
{{ ansible_pkg_mgr }} install -y {{ convert_image_tempest_plugins|join(" ") }}
{% endif %}
{% endif %}