Skip to content

Commit 19e8efb

Browse files
committed
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 (cherry picked from commit 48b81b8)
1 parent bebad04 commit 19e8efb

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

docker/rally/Dockerfile.j2

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1414
{% if base_package_type == 'rpm' %}
1515
{% set rally_packages = [
1616
'openstack-rally',
17+
'openstack-rally-plugins',
1718
'python3-os-testr'
1819
] %}
1920
{% elif base_package_type == 'deb' %}
@@ -26,16 +27,24 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
2627
{% elif install_type == 'source' %}
2728

2829
ADD rally-archive /rally-source
30+
ADD plugins-archive /
2931

3032
{% set rally_pip_packages = [
3133
'/rally',
3234
'os-testr'
3335
] %}
3436

37+
{% set rally_plugins_pip_packages = [
38+
'/plugins/*'
39+
] %}
40+
3541
RUN ln -s rally-source/* rally \
3642
&& {{ macros.install_pip(rally_pip_packages | customizable("pip_packages")) }} \
3743
&& mkdir -p /etc/rally \
38-
&& chown -R rally: /etc/rally
44+
&& chown -R rally: /etc/rally \
45+
&& if [ "$(ls /plugins)" ]; then \
46+
{{ macros.install_pip(rally_plugins_pip_packages) }}; \
47+
fi
3948
{% endif %}
4049

4150
COPY extend_start.sh /usr/local/bin/kolla_extend_start

kolla/common/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,10 @@
748748
'type': 'url',
749749
'location': ('$tarballs_base/openstack/rally/'
750750
'rally-3.1.0.tar.gz')},
751+
'rally-plugin-openstack': {
752+
'type': 'url',
753+
'location': ('$tarballs_base/openstack/rally-openstack/'
754+
'rally-openstack-2.0.0.tar.gz')},
751755
'sahara-base': {
752756
'type': 'url',
753757
'location': ('$tarballs_base/openstack/sahara/'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
fixes:
3+
- |
4+
Added rally-openstack as plugin to rally source image

0 commit comments

Comments
 (0)