rally: add rally-openstack in source - follow up

Follow up to change [0]
rally-openstack added as plugin to rally source image.
Changed rally tarball to latest available version,
as rally does not build tarbals from master branch anymore.

[0]: https://review.opendev.org/#/c/757542/
Closes-Bug: #1803968

Change-Id: I26dd3a02e5e0131f52eac1380562b610eea3a36f
This commit is contained in:
Bartosz Bezak 2020-10-16 11:16:14 +02:00
parent c26086b1be
commit 48b81b8693
3 changed files with 15 additions and 3 deletions

View File

@ -27,16 +27,24 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% elif install_type == 'source' %}
ADD rally-archive /rally-source
ADD plugins-archive /
{% set rally_pip_packages = [
'/rally',
'os-testr'
] %}
{% set rally_plugins_pip_packages = [
'/plugins/*'
] %}
RUN ln -s rally-source/* rally \
&& {{ macros.install_pip(rally_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/rally \
&& chown -R rally: /etc/rally
&& chown -R rally: /etc/rally \
&& if [ "$(ls /plugins)" ]; then \
{{ macros.install_pip(rally_plugins_pip_packages) }}; \
fi
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start

View File

@ -719,8 +719,8 @@ SOURCES = {
'rally': {
'type': 'url',
'location': ('$tarballs_base/openstack/rally/'
'rally-master.tar.gz')},
'rally-openstack': {
'rally-3.1.0.tar.gz')},
'rally-plugin-openstack': {
'type': 'url',
'location': ('$tarballs_base/openstack/rally-openstack/'
'rally-openstack-2.0.0.tar.gz')},

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Added rally-openstack as plugin to rally source image