Skip to content

Commit 68015b5

Browse files
Merge pull request #177 from kopecmartin/rally
Init openstack-rally image
2 parents 26ea7ba + f5031d7 commit 68015b5

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

container-images/kolla/base/uid_gid_manage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ _SUPPORTED_USERS['ovn-bgp']='ovn-bgp 42486 42486 /var/lib/ovn-bgp kolla'
6565
_SUPPORTED_USERS['placement']='placement 42482 42482 /var/lib/placement kolla'
6666
_SUPPORTED_USERS['qemu']='qemu 107 107'
6767
_SUPPORTED_USERS['rabbitmq']='rabbitmq 42439 42439 /var/lib/rabbitmq kolla'
68+
_SUPPORTED_USERS['rally']='rally 42440 42440 /var/lib/rally kolla'
6869
_SUPPORTED_USERS['swift']='swift 42445 42445 /var/lib/swift kolla'
6970
_SUPPORTED_USERS['tempest']='tempest 42480 42480 /var/lib/tempest kolla'
7071
_SUPPORTED_USERS['tobiko']='tobiko 42495 42495 /var/lib/tobiko kolla'
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
tcib_envs:
2+
USE_EXTERNAL_FILES: true
3+
tcib_actions:
4+
- run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }}
5+
- run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf
6+
- run: cp /usr/share/tcib/container-images/tcib/base/os/rally/rally_sudoers /etc/sudoers.d/rally_sudoers
7+
- run: chmod 440 /etc/sudoers.d/rally_sudoers
8+
- run: mkdir -p /var/lib/rally/external_files
9+
- run: mkdir -p /var/lib/kolla/config_files
10+
- run: chown -R rally.rally /var/lib/rally
11+
- run: touch /var/lib/kolla/config_files/config.json
12+
- run: cp /usr/share/tcib/container-images/tcib/base/os/rally/run_rally.sh /var/lib/rally/run_rally.sh
13+
- run: chmod +x /var/lib/rally/run_rally.sh
14+
15+
tcib_entrypoint: /var/lib/rally/run_rally.sh
16+
17+
tcib_packages:
18+
common:
19+
- openstack-rally
20+
21+
tcib_user: rally
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rally ALL=(ALL) NOPASSWD: ALL
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh
2+
# run_rally.sh
3+
# ==============
4+
#
5+
# This script is executed inside the rally containers defined in the tcib
6+
# repository. The main purpose of this script is executing the rally command
7+
# with correct arguments. The execution of the script can be influenced by
8+
# setting values for environment variables which match the RALLY_* regex.
9+
#
10+
#
11+
# RALLY_* environment variables
12+
# -----------------------------
13+
14+
set -x
15+
16+
HOMEDIR=/var/lib/rally
17+
RALLY_PATH=$HOMEDIR/
18+
RALLY_DIR=$HOMEDIR/openshift
19+
20+
21+
export OS_CLOUD=default
22+
23+
if [ -e ${RALLY_PATH}clouds.yaml ]; then
24+
mkdir -p $HOME/.config/openstack
25+
cp ${RALLY_PATH}clouds.yaml $HOME/.config/openstack/clouds.yaml
26+
fi
27+
28+
# at this point, we have everything ready in the container for users to make it
29+
# a sleepy container and jump to it so that they can run their rally commands
30+
31+
# rally deployment check

0 commit comments

Comments
 (0)