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.
112 description: Target port for migration over ssh
117 type: ./nova-base.yaml
119 ServiceData: {get_param: ServiceData}
120 ServiceNetMap: {get_param: ServiceNetMap}
121 DefaultPasswords: {get_param: DefaultPasswords}
122 EndpointMap: {get_param: EndpointMap}
123 RoleName: {get_param: RoleName}
124 RoleParameters: {get_param: RoleParameters}
126 # Merging role-specific parameters (RoleParameters) with the default parameters.
127 # RoleParameters will have the precedence over the default parameters.
129 type: OS::Heat::Value
135 - nova::compute::vcpu_pin_set: NovaVcpuPinSet
136 nova::compute::reserved_host_memory: NovaReservedHostMemory
137 - values: {get_param: [RoleParameters]}
139 NovaVcpuPinSet: {get_param: NovaVcpuPinSet}
140 NovaReservedHostMemory: {get_param: NovaReservedHostMemory}
144 description: Role data for the Nova Compute service.
146 service_name: nova_compute
147 monitoring_subscription: {get_param: MonitoringSubscriptionNovaCompute}
148 logging_source: {get_param: NovaComputeLoggingSource}
153 - get_attr: [NovaBase, role_data, config_settings]
154 - get_attr: [RoleParametersValue, value]
155 - nova::compute::libvirt::manage_libvirt_services: false
156 nova::compute::pci_passthrough:
158 template: "JSON_PARAM"
162 - JSON_PARAM: NovaPCIPassthrough
163 - values: {get_param: [RoleParameters]}
165 NovaPCIPassthrough: {get_param: NovaPCIPassthrough}
166 # we manage migration in nova common puppet profile
167 nova::compute::libvirt::migration_support: false
168 tripleo::profile::base::nova::migration::client::nova_compute_enabled: true
169 tripleo::profile::base::nova::migration::client::ssh_private_key: {get_param: [ MigrationSshKey, private_key ]}
170 tripleo::profile::base::nova::migration::client::ssh_port: {get_param: MigrationSshPort}
171 nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
172 nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
173 nova::compute::rbd::rbd_keyring:
177 - {get_param: CephClientUserName}
178 tripleo::profile::base::nova::compute::cinder_nfs_backend: {get_param: CinderEnableNfsBackend}
179 rbd_persistent_storage: {get_param: CinderEnableRbdBackend}
180 nova::compute::rbd::libvirt_rbd_secret_key: {get_param: CephClientKey}
181 nova::compute::rbd::libvirt_rbd_secret_uuid: {get_param: CephClusterFSID}
182 nova::compute::instance_usage_audit: true
183 nova::compute::instance_usage_audit_period: 'hour'
184 nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
185 # TUNNELLED mode provides a security enhancement when using shared
186 # storage but is not supported when not using shared storage.
187 # See https://bugzilla.redhat.com/show_bug.cgi?id=1301986#c12
188 # In future versions of QEMU (2.6, mostly), danpb's native
189 # encryption work will obsolete the need to use TUNNELLED transport
191 nova::migration::live_migration_tunnelled: {get_param: NovaEnableRbdBackend}
192 nova::compute::neutron::libvirt_vif_driver: {get_param: NovaComputeLibvirtVifDriver}
193 # NOTE: bind IP is found in Heat replacing the network name with the
194 # local node IP for the given network; replacement examples
195 # (eg. for internal_api):
197 # internal_api_uri -> [IP]
198 # internal_api_subnet - > IP/CIDR
199 nova::compute::vncserver_proxyclient_address: {get_param: [ServiceNetMap, NovaVncProxyNetwork]}
200 nova::compute::vncproxy_host: {get_param: [EndpointMap, NovaPublic, host_nobrackets]}
201 nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
202 nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
203 nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
205 # TODO(emilien): figure how to deal with libvirt profile.
206 # We'll probably treat it like we do with Neutron plugins.
207 # Until then, just include it in the default nova-compute role.
208 include tripleo::profile::base::nova::compute::libvirt
209 service_config_settings:
211 tripleo.collectd.plugins.nova_compute:
213 collectd::plugins::virt::connection: "qemu:///system"
215 - name: Stop nova-compute service
217 service: name=openstack-nova-compute state=stopped
218 # If not already set by puppet (e.g a pre-ocata version), set the
219 # upgrade_level for compute to "auto"
220 - name: Set compute upgrade level to auto
224 template: "dest=/etc/nova/nova.conf section=upgrade_levels option=compute value=LEVEL"
226 LEVEL: {get_param: UpgradeLevelNovaCompute}
227 - name: install openstack-nova-migration
229 yum: name=openstack-nova-migration state=latest
230 - name: Start nova-compute service
232 service: name=openstack-nova-compute state=started