1 heat_template_version: pike
4 OpenStack Nova Compute service configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
40 description: The Ceph client key. Can be created with ceph-authtool --gen-print-key. Currently only used for external Ceph deployments to create the openstack user keyring.
45 description: The Ceph cluster FSID. Must be a UUID.
46 CinderEnableNfsBackend:
48 description: Whether to enable or not the NFS backend for Cinder
50 CinderEnableRbdBackend:
52 description: Whether to enable or not the Rbd backend for Cinder
56 description: Whether to enable or not the Rbd backend for Nova
58 NovaComputeLibvirtVifDriver:
60 description: Libvirt VIF driver configuration for the network
64 List of PCI Passthrough whitelist parameters.
69 address: "0000:05:00.0"
70 physical_network: "datacentre"
71 For different formats, refer to the nova.conf documentation for
72 pci_passthrough_whitelist configuration
77 A list or range of physical CPU cores to reserve for virtual machine
79 Ex. NovaVcpuPinSet: ['4-12','^8'] will reserve cores from 4-12 excluding 8
80 type: comma_delimited_list
82 NovaReservedHostMemory:
84 Reserved RAM for host processes.
89 MonitoringSubscriptionNovaCompute:
90 default: 'overcloud-nova-compute'
92 NovaComputeLoggingSource:
95 tag: openstack.nova.compute
96 path: /var/log/nova/nova-compute.log
97 UpgradeLevelNovaCompute:
99 description: Nova Compute upgrade level
104 SSH key for migration.
105 Expects a dictionary with keys 'public_key' and 'private_key'.
106 Values should be identical to SSH public/private key files.
111 type: ./nova-base.yaml
113 ServiceData: {get_param: ServiceData}
114 ServiceNetMap: {get_param: ServiceNetMap}
115 DefaultPasswords: {get_param: DefaultPasswords}
116 EndpointMap: {get_param: EndpointMap}
117 RoleName: {get_param: RoleName}
118 RoleParameters: {get_param: RoleParameters}
120 # Merging role-specific parameters (RoleParameters) with the default parameters.
121 # RoleParameters will have the precedence over the default parameters.
123 type: OS::Heat::Value
129 - nova::compute::vcpu_pin_set: NovaVcpuPinSet
130 nova::compute::reserved_host_memory: NovaReservedHostMemory
131 - values: {get_param: [RoleParameters]}
133 NovaVcpuPinSet: {get_param: NovaVcpuPinSet}
134 NovaReservedHostMemory: {get_param: NovaReservedHostMemory}
138 description: Role data for the Nova Compute service.
140 service_name: nova_compute
141 monitoring_subscription: {get_param: MonitoringSubscriptionNovaCompute}
142 logging_source: {get_param: NovaComputeLoggingSource}
147 - get_attr: [NovaBase, role_data, config_settings]
148 - get_attr: [RoleParametersValue, value]
149 - nova::compute::libvirt::manage_libvirt_services: false
150 nova::compute::pci_passthrough:
152 template: "JSON_PARAM"
156 - JSON_PARAM: NovaPCIPassthrough
157 - values: {get_param: [RoleParameters]}
159 NovaPCIPassthrough: {get_param: NovaPCIPassthrough}
160 # we manage migration in nova common puppet profile
161 nova::compute::libvirt::migration_support: false
162 tripleo::profile::base::nova::manage_migration: true
163 tripleo::profile::base::nova::migration_ssh_key: {get_param: MigrationSshKey}
164 tripleo::profile::base::nova::migration_ssh_localaddrs:
165 - "%{hiera('cold_migration_ssh_inbound_addr')}"
166 - "%{hiera('live_migration_ssh_inbound_addr')}"
167 live_migration_ssh_inbound_addr: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
168 cold_migration_ssh_inbound_addr: {get_param: [ServiceNetMap, NovaColdMigrationNetwork]}
169 tripleo::profile::base::nova::nova_compute_enabled: true
170 nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
171 nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
172 tripleo::profile::base::nova::compute::cinder_nfs_backend: {get_param: CinderEnableNfsBackend}
173 rbd_persistent_storage: {get_param: CinderEnableRbdBackend}
174 nova::compute::rbd::libvirt_rbd_secret_key: {get_param: CephClientKey}
175 nova::compute::rbd::libvirt_rbd_secret_uuid: {get_param: CephClusterFSID}
176 nova::compute::instance_usage_audit: true
177 nova::compute::instance_usage_audit_period: 'hour'
178 nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
179 # TUNNELLED mode provides a security enhancement when using shared
180 # storage but is not supported when not using shared storage.
181 # See https://bugzilla.redhat.com/show_bug.cgi?id=1301986#c12
182 # In future versions of QEMU (2.6, mostly), danpb's native
183 # encryption work will obsolete the need to use TUNNELLED transport
185 nova::migration::live_migration_tunnelled: {get_param: NovaEnableRbdBackend}
186 nova::compute::neutron::libvirt_vif_driver: {get_param: NovaComputeLibvirtVifDriver}
187 # NOTE: bind IP is found in Heat replacing the network name with the
188 # local node IP for the given network; replacement examples
189 # (eg. for internal_api):
191 # internal_api_uri -> [IP]
192 # internal_api_subnet - > IP/CIDR
193 nova::compute::vncserver_proxyclient_address: {get_param: [ServiceNetMap, NovaVncProxyNetwork]}
194 nova::compute::vncproxy_host: {get_param: [EndpointMap, NovaPublic, host_nobrackets]}
195 nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
196 nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
197 nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
199 # TODO(emilien): figure how to deal with libvirt profile.
200 # We'll probably treat it like we do with Neutron plugins.
201 # Until then, just include it in the default nova-compute role.
202 include tripleo::profile::base::nova::compute::libvirt
203 service_config_settings:
205 tripleo.collectd.plugins.nova_compute:
207 collectd::plugins::virt::connection: "qemu:///system"
209 - name: Stop nova-compute service
211 service: name=openstack-nova-compute state=stopped
212 # If not already set by puppet (e.g a pre-ocata version), set the
213 # upgrade_level for compute to "auto"
214 - name: Set compute upgrade level to auto
218 template: "dest=/etc/nova/nova.conf section=upgrade_levels option=compute value=LEVEL"
220 LEVEL: {get_param: UpgradeLevelNovaCompute}
221 - name: install openstack-nova-migration
223 yum: name=openstack-nova-migration state=latest
224 - name: Start nova-compute service
226 service: name=openstack-nova-compute state=started