1 heat_template_version: pike
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: Role name on which the service is applied
30 description: Parameters specific to the role
33 description: Mapping of service endpoint -> protocol. Typically set
34 via parameter_defaults in the resource registry.
40 type: ./containers-common.yaml
43 type: ../../puppet/services/nova-compute.yaml
45 EndpointMap: {get_param: EndpointMap}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 RoleName: {get_param: RoleName}
49 RoleParameters: {get_param: RoleParameters}
53 description: Role data for the Nova Compute service.
55 service_name: {get_attr: [NovaComputeBase, role_data, service_name]}
58 - get_attr: [NovaComputeBase, role_data, config_settings]
59 # FIXME: we need to disable migration for now as the
60 # hieradata is common for all services, and this means nova
61 # and nova_placement puppet runs also try to configure
62 # libvirt, and they fail. We can remove this override when
63 # we have hieradata separation between containers.
64 - tripleo::profile::base::nova::manage_migration: false
65 step_config: &step_config
66 get_attr: [NovaComputeBase, role_data, step_config]
68 config_volume: nova_libvirt
69 puppet_tags: nova_config,nova_paste_api_ini
70 step_config: *step_config
71 config_image: &nova_compute_image
74 - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
76 /var/lib/kolla/config_files/nova-compute.json:
77 command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
86 # FIXME: run discover hosts here
89 image: *nova_compute_image
96 - {get_attr: [ContainersCommon, volumes]}
98 - /var/lib/kolla/config_files/nova-compute.json:/var/lib/kolla/config_files/config.json:ro
99 - /var/lib/config-data/nova_libvirt/etc/nova/:/etc/nova/:ro
101 - /etc/iscsi:/etc/iscsi
102 - /lib/modules:/lib/modules:ro
104 - /var/lib/nova:/var/lib/nova
105 - /var/lib/libvirt:/var/lib/libvirt
106 - /var/log/containers/nova:/var/log/nova
108 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
110 - name: create persistent directories
115 - /var/log/containers/nova
119 - name: Stop and disable nova-compute service
121 service: name=openstack-nova-compute state=stopped enabled=no