1 heat_template_version: pike
4 OpenStack containerized Nova Conductor service
7 DockerNovaConductorImage:
10 DockerNovaConfigImage:
11 description: The container image to use for the nova config_volume
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 UpgradeLevelNovaCompute:
41 description: Nova Compute upgrade level
47 type: ./containers-common.yaml
50 type: ../../puppet/services/database/mysql-client.yaml
53 type: ../../puppet/services/nova-conductor.yaml
55 EndpointMap: {get_param: EndpointMap}
56 ServiceData: {get_param: ServiceData}
57 ServiceNetMap: {get_param: ServiceNetMap}
58 DefaultPasswords: {get_param: DefaultPasswords}
59 RoleName: {get_param: RoleName}
60 RoleParameters: {get_param: RoleParameters}
64 description: Role data for the Nova Conductor service.
66 service_name: {get_attr: [NovaConductorBase, role_data, service_name]}
67 config_settings: {get_attr: [NovaConductorBase, role_data, config_settings]}
68 step_config: &step_config
71 - - {get_attr: [NovaConductorBase, role_data, step_config]}
72 - {get_attr: [MySQLClient, role_data, step_config]}
73 service_config_settings: {get_attr: [NovaConductorBase, role_data, service_config_settings]}
74 # BEGIN DOCKER SETTINGS
77 puppet_tags: nova_config
78 step_config: *step_config
79 config_image: {get_param: DockerNovaConfigImage}
81 /var/lib/kolla/config_files/nova_conductor.json:
82 command: /usr/bin/nova-conductor
84 - source: "/var/lib/kolla/config_files/src/*"
87 preserve_properties: true
95 image: {get_param: DockerNovaConductorImage}
101 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/nova_conductor.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/puppet-generated/nova/:/var/lib/kolla/config_files/src:ro
105 - /var/log/containers/nova:/var/log/nova
107 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
109 - name: create persistent logs directory
111 path: /var/log/containers/nova
114 - name: Set compute upgrade level to auto
118 template: "dest=/etc/nova/nova.conf section=upgrade_levels option=compute value=LEVEL"
120 LEVEL: {get_param: UpgradeLevelNovaCompute}
121 - name: Stop and disable nova_conductor service
123 service: name=openstack-nova-conductor state=stopped enabled=no