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: Dictionary packing service data
19 description: Mapping of service_name -> network name. Typically set
20 via parameter_defaults in the resource registry. This
21 mapping overrides those in ServiceNetMapDefaults.
28 description: Role name on which the service is applied
32 description: Parameters specific to the role
36 description: Mapping of service endpoint -> protocol. Typically set
37 via parameter_defaults in the resource registry.
39 DockerNovaMigrationSshdPort:
41 description: Port that dockerized nova migration target sshd service
48 type: ./containers-common.yaml
51 type: ../../puppet/services/nova-compute.yaml
53 EndpointMap: {get_param: EndpointMap}
54 ServiceData: {get_param: ServiceData}
55 ServiceNetMap: {get_param: ServiceNetMap}
56 DefaultPasswords: {get_param: DefaultPasswords}
57 RoleName: {get_param: RoleName}
58 RoleParameters: {get_param: RoleParameters}
59 MigrationSshPort: {get_param: DockerNovaMigrationSshdPort}
63 description: Role data for the Nova Compute service.
65 service_name: {get_attr: [NovaComputeBase, role_data, service_name]}
67 get_attr: [NovaComputeBase, role_data, config_settings]
68 step_config: &step_config
69 get_attr: [NovaComputeBase, role_data, step_config]
71 config_volume: nova_libvirt
72 puppet_tags: nova_config,nova_paste_api_ini
73 step_config: *step_config
74 config_image: {get_param: DockerNovaLibvirtConfigImage}
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
79 - source: "/var/lib/kolla/config_files/src/*"
82 preserve_properties: true
83 - source: "/var/lib/kolla/config_files/src-iscsid/*"
86 preserve_properties: true
87 - source: "/var/lib/kolla/config_files/src-ceph/"
90 preserve_properties: true
99 # FIXME: run discover hosts here
102 image: &nova_compute_image {get_param: DockerNovaComputeImage}
109 - {get_attr: [ContainersCommon, volumes]}
111 - /var/lib/kolla/config_files/nova_compute.json:/var/lib/kolla/config_files/config.json:ro
112 - /var/lib/config-data/puppet-generated/nova_libvirt/:/var/lib/kolla/config_files/src:ro
113 - /var/lib/config-data/puppet-generated/iscsid/:/var/lib/kolla/config_files/src-iscsid:ro
114 - /etc/ceph:/var/lib/kolla/config_files/src-ceph:ro
116 - /lib/modules:/lib/modules:ro
118 - /var/lib/nova:/var/lib/nova
119 - /var/lib/libvirt:/var/lib/libvirt
120 - /var/log/containers/nova:/var/log/nova
121 - /sys/class/net:/sys/class/net
122 - /sys/bus/pci:/sys/bus/pci
124 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
126 - name: create persistent directories
131 - /var/log/containers/nova
134 - name: ensure ceph configurations exist
139 - name: Stop and disable nova-compute service
141 service: name=openstack-nova-compute state=stopped enabled=no