File tree Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ rally ALL=(ALL) NOPASSWD: ALL
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments