1 heat_template_version: ocata
4 OpenStack containerized Nova Compute service
9 default: 'tripleoupstream'
11 DockerNovaComputeImage:
13 default: 'centos-binary-nova-compute:latest'
17 description: Mapping of service_name -> network name. Typically set
18 via parameter_defaults in the resource registry. This
19 mapping overrides those in ServiceNetMapDefaults.
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
33 type: ./containers-common.yaml
36 type: ../../puppet/services/nova-compute.yaml
38 EndpointMap: {get_param: EndpointMap}
39 ServiceNetMap: {get_param: ServiceNetMap}
40 DefaultPasswords: {get_param: DefaultPasswords}
44 description: Role data for the Nova Compute service.
46 service_name: {get_attr: [NovaComputeBase, role_data, service_name]}
49 - get_attr: [NovaComputeBase, role_data, config_settings]
50 # FIXME: we need to disable migration for now as the
51 # hieradata is common for all services, and this means nova
52 # and nova_placement puppet runs also try to configure
53 # libvirt, and they fail. We can remove this override when
54 # we have hieradata separation between containers.
55 - tripleo::profile::base::nova::manage_migration: false
56 step_config: &step_config
57 get_attr: [NovaComputeBase, role_data, step_config]
59 config_volume: nova_libvirt
60 puppet_tags: nova_config,nova_paste_api_ini
61 step_config: *step_config
62 config_image: &nova_compute_image
65 - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
67 /var/lib/kolla/config_files/nova-compute.json:
68 command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
70 # FIXME: run discover hosts here
73 image: *nova_compute_image
80 expression: $.data.common.concat($.data.service)
82 common: {get_attr: [ContainersCommon, volumes]}
84 - /var/lib/kolla/config_files/nova-compute.json:/var/lib/kolla/config_files/config.json:ro
85 - /var/lib/config-data/nova_libvirt/etc/nova/:/etc/nova/:ro
87 - /etc/iscsi:/etc/iscsi
88 - /lib/modules:/lib/modules:ro
90 - /var/lib/nova:/var/lib/nova
91 - /var/lib/libvirt:/var/lib/libvirt
93 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
95 - name: create /var/lib/libvirt
97 path: /var/lib/libvirt
100 - name: Stop and disable nova-compute service
102 service: name=openstack-nova-compute state=stopped enabled=no