1 heat_template_version: pike
4 OpenStack containerized OVN DBs service managed by pacemaker
10 DockerOvnDbsConfigImage:
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
39 OVNNorthboundServerPort:
40 description: Port of the OVN Northbound DB server
43 OVNSouthboundServerPort:
44 description: Port of the OVN Southbound DB server
51 type: ./../containers-common.yaml
54 type: ../../../puppet/services/pacemaker/ovn-dbs.yaml
56 EndpointMap: {get_param: EndpointMap}
57 ServiceData: {get_param: ServiceData}
58 ServiceNetMap: {get_param: ServiceNetMap}
59 DefaultPasswords: {get_param: DefaultPasswords}
60 RoleName: {get_param: RoleName}
61 RoleParameters: {get_param: RoleParameters}
62 OVNNorthboundServerPort: {get_param: OVNNorthboundServerPort}
63 OVNSouthboundServerPort: {get_param: OVNSouthboundServerPort}
67 description: Role data for the OVN Dbs HA role.
69 service_name: {get_attr: [OVNDbsBase, role_data, service_name]}
72 - get_attr: [OVNDbsBase, role_data, config_settings]
73 - tripleo::profile::pacemaker::ovn_dbs_bundle::ovn_dbs_docker_image: {get_param: DockerOvnDbsImage}
74 - tripleo::profile::pacemaker::ovn_dbs_bundle::nb_db_port: {get_param: OVNNorthboundServerPort}
75 - tripleo::profile::pacemaker::ovn_dbs_bundle::sb_db_port: {get_param: OVNSouthboundServerPort}
76 logging_source: {get_attr: [OVNDbsBase, role_data, logging_source]}
77 logging_groups: {get_attr: [OVNDbsBase, role_data, logging_groups]}
79 service_config_settings: {get_attr: [OVNDbsBase, role_data, service_config_settings]}
80 # BEGIN DOCKER SETTINGS
82 config_volume: 'ovn_dbs'
85 config_image: &ovn_dbs_config_image {get_param: DockerOvnDbsConfigImage}
87 /var/lib/kolla/config_files/ovn_dbs.json:
88 command: /usr/sbin/pacemaker_remoted
90 - dest: /etc/libqb/force-filesystem-sockets
94 - source: "/var/lib/kolla/config_files/src/*"
97 preserve_properties: true
106 config_volume: 'ovn_dbs_init_bundle'
114 - - "cp -a /tmp/puppet-etc/* /etc/puppet; echo '{\"step\": 3}' > /etc/puppet/hieradata/docker.json"
115 - "FACTER_uuid=docker puppet apply --tags file,file_line,concat,augeas,TAGS -v -e 'CONFIG'"
117 TAGS: 'pacemaker::resource::bundle,pacemaker::property,pacemaker::resource::ip,pacemaker::resource::ocf,pacemaker::constraint::order,pacemaker::constraint::colocation'
121 - - 'include ::tripleo::profile::base::pacemaker'
122 - 'include ::tripleo::profile::pacemaker::ovn_dbs_bundle'
123 image: *ovn_dbs_config_image
125 - /etc/hosts:/etc/hosts:ro
126 - /etc/localtime:/etc/localtime:ro
127 - /etc/puppet:/tmp/puppet-etc:ro
128 - /usr/share/openstack-puppet/modules:/usr/share/openstack-puppet/modules:ro
129 - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
130 - /dev/shm:/dev/shm:rw
132 - name: create persistent directories
137 - /var/log/containers/openvswitch
138 - /var/lib/openvswitch/ovn
140 - name: Stop and disable ovn-northd service
142 service: name=ovn-northd state=stopped enabled=no