From ede41284e02d4783e580d639c0ba650b91f98eee Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Fri, 23 Jul 2021 09:57:11 +0200 Subject: [PATCH] Re-add tripleoclient and tempest container In the osp-director-operator [1] effort which uses tripleo to deploy openstack using openshift to manage the hardware/vm provisioning. To do so we rely on the tripleoclient and tempest container for deployment/testing. Lets add the containers back to be built. [1] https://github.com/openstack-k8s-operators/osp-director-operator Change-Id: Id8d99560ccd412014fe1d13faad19c2a114cd6e6 --- container-images/kolla/base/uid_gid_manage.sh | 1 + container-images/tcib/base/os/tempest/tempest.yaml | 8 ++++++++ container-images/tripleo_containers.yaml | 4 ++++ container-images/tripleo_containers.yaml.j2 | 14 ++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 container-images/tcib/base/os/tempest/tempest.yaml diff --git a/container-images/kolla/base/uid_gid_manage.sh b/container-images/kolla/base/uid_gid_manage.sh index 13ac062a0..a9733055a 100755 --- a/container-images/kolla/base/uid_gid_manage.sh +++ b/container-images/kolla/base/uid_gid_manage.sh @@ -70,6 +70,7 @@ _SUPPORTED_USERS['qemu']='qemu 107 107' _SUPPORTED_USERS['rabbitmq']='rabbitmq 42439 42439 /var/lib/rabbitmq kolla' _SUPPORTED_USERS['redis']='redis 42460 42460 /run/redis kolla' _SUPPORTED_USERS['swift']='swift 42445 42445 /var/lib/swift kolla' +_SUPPORTED_USERS['tempest']='tempest 42480 42480 /var/lib/tempest kolla' _SUPPORTED_USERS['zaqar']='zaqar 42452 42452 /var/lib/zaqar kolla' for _USER_TO_CREATE in $_USERS_TO_CREATE; do diff --git a/container-images/tcib/base/os/tempest/tempest.yaml b/container-images/tcib/base/os/tempest/tempest.yaml new file mode 100644 index 000000000..15d21ddbd --- /dev/null +++ b/container-images/tcib/base/os/tempest/tempest.yaml @@ -0,0 +1,8 @@ +tcib_actions: +- run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }} +- run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf +tcib_packages: + common: + - iputils + - openstack-tempest-all +tcib_user: tempest diff --git a/container-images/tripleo_containers.yaml b/container-images/tripleo_containers.yaml index 236caa5ac..fefb20260 100644 --- a/container-images/tripleo_containers.yaml +++ b/container-images/tripleo_containers.yaml @@ -187,3 +187,7 @@ container_images: image_source: tripleo - imagename: quay.io/tripleomaster/openstack-unbound:current-tripleo image_source: tripleo +- imagename: quay.io/tripleomaster/openstack-tempest:current-tripleo + image_source: tripleo +- imagename: quay.io/tripleomaster/openstack-tripleoclient:current-tripleo + image_source: tripleo diff --git a/container-images/tripleo_containers.yaml.j2 b/container-images/tripleo_containers.yaml.j2 index dcf9d1ca6..60c8d21eb 100644 --- a/container-images/tripleo_containers.yaml.j2 +++ b/container-images/tripleo_containers.yaml.j2 @@ -813,3 +813,17 @@ container_images_template: - ContainerUnboundConfigImage services: - OS::TripleO::Services::Unbound + +- imagename: "{{namespace}}/{{name_prefix}}tempest{{name_suffix}}:{{tag}}" + image_source: tripleo + params: + - ContainerTempestImage + services: + - OS::TripleO::Services::Tempest + +- imagename: "{{namespace}}/{{name_prefix}}tripleoclient{{name_suffix}}:{{tag}}" + image_source: tripleo + params: + - ContainerTripleoClientImage + services: + - OS::TripleO::Services::TripleoClient