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
136 lines
4.6 KiB
YAML
136 lines
4.6 KiB
YAML
heat_template_version: rocky
|
|
|
|
description: >
|
|
OpenStack containerized Qpid dispatch router service
|
|
|
|
parameters:
|
|
DockerQdrouterdImage:
|
|
description: image
|
|
type: string
|
|
DockerQdrouterdConfigImage:
|
|
description: The container image to use for the qdrouterd config_volume
|
|
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
|
|
|
|
resources:
|
|
|
|
ContainersCommon:
|
|
type: ./containers-common.yaml
|
|
|
|
QdrouterdBase:
|
|
type: ../../puppet/services/qdr.yaml
|
|
properties:
|
|
EndpointMap: {get_param: EndpointMap}
|
|
ServiceData: {get_param: ServiceData}
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
|
RoleName: {get_param: RoleName}
|
|
RoleParameters: {get_param: RoleParameters}
|
|
|
|
outputs:
|
|
role_data:
|
|
description: Role data for the qdrouterd service.
|
|
value:
|
|
service_name: {get_attr: [QdrouterdBase, role_data, service_name]}
|
|
global_config_settings: {get_attr: [QdrouterdBase, role_data, global_config_settings]}
|
|
config_settings: {get_attr: [QdrouterdBase, role_data, config_settings]}
|
|
service_config_settings: {get_attr: [QdrouterdBase, role_data, service_config_settings]}
|
|
# BEGIN DOCKER SETTINGS
|
|
puppet_config:
|
|
config_volume: qdrouterd
|
|
step_config:
|
|
get_attr: [QdrouterdBase, role_data, step_config]
|
|
config_image: {get_param: DockerQdrouterdConfigImage}
|
|
kolla_config:
|
|
/var/lib/kolla/config_files/qdrouterd.json:
|
|
command: /usr/sbin/qdrouterd -c /etc/qpid-dispatch/qdrouterd.conf
|
|
config_files:
|
|
- source: "/var/lib/kolla/config_files/src/*"
|
|
dest: "/"
|
|
merge: true
|
|
preserve_properties: true
|
|
permissions:
|
|
- path: /var/lib/qdrouterd
|
|
owner: qdrouterd:qdrouterd
|
|
recurse: true
|
|
docker_config:
|
|
step_1:
|
|
qdrouterd_init_logs:
|
|
start_order: 0
|
|
detach: false
|
|
image: &qdrouterd_image {get_param: DockerQdrouterdImage}
|
|
net: none
|
|
privileged: false
|
|
user: root
|
|
volumes:
|
|
- /var/log/containers/qdrouterd:/var/log/qdrouterd:z
|
|
command: ['/bin/bash', '-c', 'chown -R qdrouterd:qdrouterd /var/log/qdrouterd']
|
|
qdrouterd:
|
|
start_order: 1
|
|
image: *qdrouterd_image
|
|
net: host
|
|
user: qdrouterd
|
|
privileged: false
|
|
restart: always
|
|
volumes:
|
|
list_concat:
|
|
- {get_attr: [ContainersCommon, volumes]}
|
|
-
|
|
- /var/lib/kolla/config_files/qdrouterd.json:/var/lib/kolla/config_files/config.json:ro
|
|
- /var/lib/config-data/puppet-generated/qdrouterd/:/var/lib/kolla/config_files/src:ro
|
|
- /var/lib/qdrouterd:/var/lib/qdrouterd:z
|
|
- /var/log/containers/qdrouterd:/var/log/qdrouterd:z
|
|
environment:
|
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
|
host_prep_tasks:
|
|
- name: create persistent directories
|
|
file:
|
|
path: "{{ item.path }}"
|
|
state: directory
|
|
setype: "{{ item.setype }}"
|
|
with_items:
|
|
- { 'path': /var/log/containers/qdrouterd, 'setype': svirt_sandbox_file_t }
|
|
- { 'path': /var/lib/qdrouterd, 'setype': svirt_sandbox_file_t }
|
|
- { 'path': /var/log/qdrouterd, 'setype': svirt_sandbox_file_t }
|
|
- name: qrouterd logs readme
|
|
copy:
|
|
dest: /var/log/qrouterd/readme.txt
|
|
content: |
|
|
Log files from qrouterd containers can be found under
|
|
/var/log/containers/qrouterd.
|
|
ignore_errors: true
|
|
metadata_settings:
|
|
get_attr: [QdrouterdBase, role_data, metadata_settings]
|
|
post_upgrade_tasks:
|
|
- when: step|int == 1
|
|
import_role:
|
|
name: tripleo-docker-rm
|
|
vars:
|
|
containers_to_rm:
|
|
- qdrouterd
|