87bc72a37c
It seems we're using the default docker0(docker)/cni0(podman) bridges for these containers. It would be good to remove dependencies on these default bridges. Some other containers changed that have the same issue: - ironic_inspector_init_dnsmasq_dhcp_hostsdir - nova_statedir_owner - swift_setup_srv - swift_copy_rings - horizon_fix_perms Change-Id: Id3e60de7bb5a13e32544bed76e4970d53a9257d4
82 lines
2.6 KiB
YAML
82 lines
2.6 KiB
YAML
heat_template_version: rocky
|
|
|
|
description: >
|
|
OpenStack containerized Tempest
|
|
|
|
parameters:
|
|
DockerTempestImage:
|
|
description: image
|
|
type: string
|
|
EndpointMap:
|
|
default: {}
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
via parameter_defaults in the resource registry.
|
|
type: json
|
|
ServiceData:
|
|
default: {}
|
|
description: Dictionary packing service data
|
|
type: json
|
|
ServiceNetMap:
|
|
default: {}
|
|
description: Mapping of service_name -> network name. Typically set
|
|
via parameter_defaults in the resource registry. This
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
type: json
|
|
DefaultPasswords:
|
|
default: {}
|
|
type: json
|
|
RoleName:
|
|
default: ''
|
|
description: Role name on which the service is applied
|
|
type: string
|
|
RoleParameters:
|
|
default: {}
|
|
description: Parameters specific to the role
|
|
type: json
|
|
UpgradeRemoveUnusedPackages:
|
|
default: false
|
|
description: Remove package if the service is being disabled during upgrade
|
|
type: boolean
|
|
|
|
outputs:
|
|
role_data:
|
|
description: Role data for the tempest service
|
|
value:
|
|
# It just adds a fake tempest service so that it will be
|
|
# available on undercloud.
|
|
service_name: tempest
|
|
docker_config:
|
|
step_2:
|
|
tempest_init_logs:
|
|
image: &tempest_image {get_param: DockerTempestImage}
|
|
net: none
|
|
privileged: false
|
|
user: root
|
|
volumes:
|
|
- /var/log/containers/tempest:/var/log/tempest:z
|
|
- /var/lib/tempestdata:/var/lib/tempest:z
|
|
command: ['/bin/bash', '-c', 'chown -R tempest:tempest /var/log/tempest /var/lib/tempest']
|
|
host_prep_tasks:
|
|
- name: create persistent directories
|
|
file:
|
|
path: "{{ item.path }}"
|
|
state: directory
|
|
setype: "{{ item.setype }}"
|
|
with_items:
|
|
- { 'path': /var/log/containers/tempest, 'setype': svirt_sandbox_file_t }
|
|
- { 'path': /var/log/tempest, 'setype': svirt_sandbox_file_t }
|
|
- { 'path': /var/lib/tempestdata, 'setype': svirt_sandbox_file_t }
|
|
- { 'path': /var/lib/tempest, 'setype': svirt_sandbox_file_t }
|
|
- name: Tempest logs readme
|
|
copy:
|
|
dest: /var/log/tempest/readme.txt
|
|
content: |
|
|
Log files from tempest containers can be found under
|
|
/var/log/containers/tempest.
|
|
ignore_errors: true
|
|
puppet_config:
|
|
config_volume: ''
|
|
step_config: ''
|
|
config_image: {get_param: DockerTempestImage}
|
|
config_settings: {}
|