1 heat_template_version: pike
4 OpenStack containerized Nova Compute service
7 DockerNovaComputeImage:
10 DockerNovaLibvirtConfigImage:
11 description: The container image to use for the nova_libvirt config_volume
15 description: Mapping of service_name -> network name. Typically set
16 via parameter_defaults in the resource registry. This
17 mapping overrides those in ServiceNetMapDefaults.
24 description: Role name on which the service is applied
28 description: Parameters specific to the role
32 description: Mapping of service endpoint -> protocol. Typically set
33 via parameter_defaults in the resource registry.
39 type: ./containers-common.yaml
42 type: ../../puppet/services/nova-compute.yaml
44 EndpointMap: {get_param: EndpointMap}
45 ServiceNetMap: {get_param: ServiceNetMap}
46 DefaultPasswords: {get_param: DefaultPasswords}
47 RoleName: {get_param: RoleName}
48 RoleParameters: {get_param: RoleParameters}
52 description: Role data for the Nova Compute service.
54 service_name: {get_attr: [NovaComputeBase, role_data, service_name]}
57 - get_attr: [NovaComputeBase, role_data, config_settings]
58 # FIXME: we need to disable migration for now as the
59 # hieradata is common for all services, and this means nova
60 # and nova_placement puppet runs also try to configure
61 # libvirt, and they fail. We can remove this override when
62 # we have hieradata separation between containers.
63 - tripleo::profile::base::nova::manage_migration: false
64 step_config: &step_config
65 get_attr: [NovaComputeBase, role_data, step_config]
67 config_volume: nova_libvirt
68 puppet_tags: nova_config,nova_paste_api_ini
69 step_config: *step_config
70 config_image: {get_param: DockerNovaLibvirtConfigImage}
72 /var/lib/kolla/config_files/nova_compute.json:
73 command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
75 - source: "/var/lib/kolla/config_files/src/*"
78 preserve_properties: true
87 # FIXME: run discover hosts here
90 image: &nova_compute_image {get_param: DockerNovaComputeImage}
97 - {get_attr: [ContainersCommon, volumes]}
99 - /var/lib/kolla/config_files/nova_compute.json:/var/lib/kolla/config_files/config.json:ro
100 - /var/lib/config-data/puppet-generated/nova_libvirt/:/var/lib/kolla/config_files/src:ro
102 - /etc/iscsi:/etc/iscsi
103 - /lib/modules:/lib/modules:ro
105 - /var/lib/nova:/var/lib/nova
106 - /var/lib/libvirt:/var/lib/libvirt
107 - /var/log/containers/nova:/var/log/nova
109 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
111 - name: create persistent directories
116 - /var/log/containers/nova
120 - name: Stop and disable nova-compute service
122 service: name=openstack-nova-compute state=stopped enabled=no