Improve tempest plugins installation
Instead of ignoring installation failure, new code would fail if tempest plugins cannot be installed and also work if there are no plugins specified. Change-Id: Ic5ea1bf75cd30f8af6d9a3586a0073ff5c54cb27 Related-Bug: #1787912
This commit is contained in:
parent
8b6c6c5246
commit
b8c93b903e
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue