1 heat_template_version: ocata
4 OpenStack Nova Compute service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
35 CinderEnableNfsBackend:
37 description: Whether to enable or not the NFS backend for Cinder
39 CinderEnableRbdBackend:
41 description: Whether to enable or not the Rbd backend for Cinder
45 description: Whether to enable or not the Rbd backend for Nova
47 NovaComputeLibvirtVifDriver:
49 description: Libvirt VIF driver configuration for the network
53 List of PCI Passthrough whitelist parameters.
58 address: "0000:05:00.0"
59 physical_network: "datacentre"
60 For different formats, refer to the nova.conf documentation for
61 pci_passthrough_whitelist configuration
66 A list or range of physical CPU cores to reserve for virtual machine
68 Ex. NovaVcpuPinSet: ['4-12','^8'] will reserve cores from 4-12 excluding 8
69 type: comma_delimited_list
71 NovaReservedHostMemory:
73 Reserved RAM for host processes.
78 MonitoringSubscriptionNovaCompute:
79 default: 'overcloud-nova-compute'
81 NovaComputeLoggingSource:
84 tag: openstack.nova.compute
85 path: /var/log/nova/nova-compute.log
86 UpgradeLevelNovaCompute:
88 description: Nova Compute upgrade level
93 SSH key for migration.
94 Expects a dictionary with keys 'public_key' and 'private_key'.
95 Values should be identical to SSH public/private key files.
100 type: ./nova-base.yaml
102 ServiceNetMap: {get_param: ServiceNetMap}
103 DefaultPasswords: {get_param: DefaultPasswords}
104 EndpointMap: {get_param: EndpointMap}
105 RoleName: {get_param: RoleName}
106 RoleParameters: {get_param: RoleParameters}
110 description: Role data for the Nova Compute service.
112 service_name: nova_compute
113 monitoring_subscription: {get_param: MonitoringSubscriptionNovaCompute}
114 logging_source: {get_param: NovaComputeLoggingSource}
119 - get_attr: [NovaBase, role_data, config_settings]
120 - nova::compute::libvirt::manage_libvirt_services: false
121 nova::compute::pci_passthrough:
123 template: "JSON_PARAM"
125 JSON_PARAM: {get_param: NovaPCIPassthrough}
126 nova::compute::vcpu_pin_set: {get_param: NovaVcpuPinSet}
127 nova::compute::reserved_host_memory: {get_param: NovaReservedHostMemory}
128 # we manage migration in nova common puppet profile
129 nova::compute::libvirt::migration_support: false
130 tripleo::profile::base::nova::manage_migration: true
131 tripleo::profile::base::nova::migration_ssh_key: {get_param: MigrationSshKey}
132 tripleo::profile::base::nova::migration_ssh_localaddrs:
133 - "%{hiera('cold_migration_ssh_inbound_addr')}"
134 - "%{hiera('live_migration_ssh_inbound_addr')}"
135 live_migration_ssh_inbound_addr: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
136 cold_migration_ssh_inbound_addr: {get_param: [ServiceNetMap, NovaColdMigrationNetwork]}
137 tripleo::profile::base::nova::nova_compute_enabled: true
138 nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
139 nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
140 tripleo::profile::base::nova::compute::cinder_nfs_backend: {get_param: CinderEnableNfsBackend}
141 rbd_persistent_storage: {get_param: CinderEnableRbdBackend}
142 nova::compute::rbd::rbd_keyring:
146 - {get_param: CephClientUserName}
147 nova::compute::rbd::libvirt_rbd_secret_uuid: "%{hiera('ceph::profile::params::fsid')}"
148 nova::compute::instance_usage_audit: true
149 nova::compute::instance_usage_audit_period: 'hour'
150 nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
151 # TUNNELLED mode provides a security enhancement when using shared
152 # storage but is not supported when not using shared storage.
153 # See https://bugzilla.redhat.com/show_bug.cgi?id=1301986#c12
154 # In future versions of QEMU (2.6, mostly), danpb's native
155 # encryption work will obsolete the need to use TUNNELLED transport
157 nova::migration::live_migration_tunnelled: {get_param: NovaEnableRbdBackend}
158 nova::compute::neutron::libvirt_vif_driver: {get_param: NovaComputeLibvirtVifDriver}
159 # NOTE: bind IP is found in Heat replacing the network name with the
160 # local node IP for the given network; replacement examples
161 # (eg. for internal_api):
163 # internal_api_uri -> [IP]
164 # internal_api_subnet - > IP/CIDR
165 nova::compute::vncserver_proxyclient_address: {get_param: [ServiceNetMap, NovaVncProxyNetwork]}
166 nova::compute::vncproxy_host: {get_param: [EndpointMap, NovaPublic, host_nobrackets]}
167 nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
168 nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
169 nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
171 # TODO(emilien): figure how to deal with libvirt profile.
172 # We'll probably treat it like we do with Neutron plugins.
173 # Until then, just include it in the default nova-compute role.
174 include tripleo::profile::base::nova::compute::libvirt
175 service_config_settings:
177 tripleo.collectd.plugins.nova_compute:
179 collectd::plugins::virt::connection: "qemu:///system"
181 - name: Stop nova-compute service
183 service: name=openstack-nova-compute state=stopped
184 # If not already set by puppet (e.g a pre-ocata version), set the
185 # upgrade_level for compute to "auto"
186 - name: Set compute upgrade level to auto
190 template: "dest=/etc/nova/nova.conf section=upgrade_levels option=compute value=LEVEL"
192 LEVEL: {get_param: UpgradeLevelNovaCompute}
193 - name: install openstack-nova-migration
195 yum: name=openstack-nova-migration state=latest
196 - name: Start nova-compute service
198 service: name=openstack-nova-compute state=started