1 heat_template_version: pike
4 OpenStack containerized Nova Compute service
9 default: 'tripleoupstream'
11 DockerNovaComputeImage:
13 default: 'centos-binary-nova-compute:latest'
15 DockerNovaLibvirtConfigImage:
16 description: The container image to use for the nova_libvirt config_volume
17 default: 'centos-binary-nova-compute:latest'
21 description: Dictionary packing service data
25 description: Mapping of service_name -> network name. Typically set
26 via parameter_defaults in the resource registry. This
27 mapping overrides those in ServiceNetMapDefaults.
34 description: Role name on which the service is applied
38 description: Parameters specific to the role
42 description: Mapping of service endpoint -> protocol. Typically set
43 via parameter_defaults in the resource registry.
49 type: ./containers-common.yaml
52 type: ../../puppet/services/nova-compute.yaml
54 EndpointMap: {get_param: EndpointMap}
55 ServiceData: {get_param: ServiceData}
56 ServiceNetMap: {get_param: ServiceNetMap}
57 DefaultPasswords: {get_param: DefaultPasswords}
58 RoleName: {get_param: RoleName}
59 RoleParameters: {get_param: RoleParameters}
63 description: Role data for the Nova Compute service.
65 service_name: {get_attr: [NovaComputeBase, role_data, service_name]}
68 - get_attr: [NovaComputeBase, role_data, config_settings]
69 # FIXME: we need to disable migration for now as the
70 # hieradata is common for all services, and this means nova
71 # and nova_placement puppet runs also try to configure
72 # libvirt, and they fail. We can remove this override when
73 # we have hieradata separation between containers.
74 - tripleo::profile::base::nova::manage_migration: false
75 step_config: &step_config
76 get_attr: [NovaComputeBase, role_data, step_config]
78 config_volume: nova_libvirt
79 puppet_tags: nova_config,nova_paste_api_ini
80 step_config: *step_config
84 - [ {get_param: DockerNamespace}, {get_param: DockerNovaLibvirtConfigImage} ]
86 /var/lib/kolla/config_files/nova_compute.json:
87 command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
89 - source: "/var/lib/kolla/config_files/src/*"
92 preserve_properties: true
101 # FIXME: run discover hosts here
104 image: &nova_compute_image
107 - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
114 - {get_attr: [ContainersCommon, volumes]}
116 - /var/lib/kolla/config_files/nova_compute.json:/var/lib/kolla/config_files/config.json:ro
117 - /var/lib/config-data/puppet-generated/nova_libvirt/:/var/lib/kolla/config_files/src:ro
119 - /etc/iscsi:/etc/iscsi
120 - /lib/modules:/lib/modules:ro
122 - /var/lib/nova:/var/lib/nova
123 - /var/lib/libvirt:/var/lib/libvirt
124 - /var/log/containers/nova:/var/log/nova
126 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
128 - name: create persistent directories
133 - /var/log/containers/nova
137 - name: Stop and disable nova-compute service
139 service: name=openstack-nova-compute state=stopped enabled=no