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: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
27 CinderEnableNfsBackend:
29 description: Whether to enable or not the NFS backend for Cinder
31 CinderEnableRbdBackend:
33 description: Whether to enable or not the Rbd backend for Cinder
37 description: Whether to enable or not the Rbd backend for Nova
39 NovaComputeLibvirtVifDriver:
41 description: Libvirt VIF driver configuration for the network
45 List of PCI Passthrough whitelist parameters.
50 address: "0000:05:00.0"
51 physical_network: "datacentre"
52 For different formats, refer to the nova.conf documentation for
53 pci_passthrough_whitelist configuration
58 A list or range of physical CPU cores to reserve for virtual machine
60 Ex. NovaVcpuPinSet: ['4-12','^8'] will reserve cores from 4-12 excluding 8
61 type: comma_delimited_list
63 NovaReservedHostMemory:
65 Reserved RAM for host processes.
70 MonitoringSubscriptionNovaCompute:
71 default: 'overcloud-nova-compute'
73 NovaComputeLoggingSource:
76 tag: openstack.nova.compute
77 path: /var/log/nova/nova-compute.log
78 UpgradeLevelNovaCompute:
80 description: Nova Compute upgrade level
85 type: ./nova-base.yaml
87 ServiceNetMap: {get_param: ServiceNetMap}
88 DefaultPasswords: {get_param: DefaultPasswords}
89 EndpointMap: {get_param: EndpointMap}
93 description: Role data for the Nova Compute service.
95 service_name: nova_compute
96 monitoring_subscription: {get_param: MonitoringSubscriptionNovaCompute}
97 logging_source: {get_param: NovaComputeLoggingSource}
102 - get_attr: [NovaBase, role_data, config_settings]
103 - nova::compute::libvirt::manage_libvirt_services: false
104 nova::compute::pci_passthrough:
106 template: "JSON_PARAM"
108 JSON_PARAM: {get_param: NovaPCIPassthrough}
109 nova::compute::vcpu_pin_set: {get_param: NovaVcpuPinSet}
110 nova::compute::reserved_host_memory: {get_param: NovaReservedHostMemory}
111 # we manage migration in nova common puppet profile
112 nova::compute::libvirt::migration_support: false
113 tripleo::profile::base::nova::manage_migration: true
114 tripleo::profile::base::nova::nova_compute_enabled: true
115 nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
116 nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
117 tripleo::profile::base::nova::compute::cinder_nfs_backend: {get_param: CinderEnableNfsBackend}
118 rbd_persistent_storage: {get_param: CinderEnableRbdBackend}
119 nova::compute::rbd::rbd_keyring:
123 - {get_param: CephClientUserName}
124 nova::compute::rbd::libvirt_rbd_secret_uuid: "%{hiera('ceph::profile::params::fsid')}"
125 nova::compute::instance_usage_audit: true
126 nova::compute::instance_usage_audit_period: 'hour'
127 nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
128 # TUNNELLED mode provides a security enhancement when using shared
129 # storage but is not supported when not using shared storage.
130 # See https://bugzilla.redhat.com/show_bug.cgi?id=1301986#c12
131 # In future versions of QEMU (2.6, mostly), danpb's native
132 # encryption work will obsolete the need to use TUNNELLED transport
134 nova::migration::live_migration_tunnelled: {get_param: NovaEnableRbdBackend}
135 nova::compute::neutron::libvirt_vif_driver: {get_param: NovaComputeLibvirtVifDriver}
136 # NOTE: bind IP is found in Heat replacing the network name with the
137 # local node IP for the given network; replacement examples
138 # (eg. for internal_api):
140 # internal_api_uri -> [IP]
141 # internal_api_subnet - > IP/CIDR
142 nova::compute::vncserver_proxyclient_address: {get_param: [ServiceNetMap, NovaVncProxyNetwork]}
143 nova::compute::vncproxy_host: {get_param: [EndpointMap, NovaPublic, host_nobrackets]}
144 nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
145 nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
146 nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
148 # TODO(emilien): figure how to deal with libvirt profile.
149 # We'll probably treat it like we do with Neutron plugins.
150 # Until then, just include it in the default nova-compute role.
151 include tripleo::profile::base::nova::compute::libvirt
152 service_config_settings:
154 tripleo.collectd.plugins.nova_compute:
156 collectd::plugins::virt::connection: "qemu:///system"
158 - name: Stop nova-compute service
160 service: name=openstack-nova-compute state=stopped
161 # If not already set by puppet (e.g a pre-ocata version), set the
162 # upgrade_level for compute to "auto"
163 - name: Set compute upgrade level to auto
167 template: "dest=/etc/nova/nova.conf section=upgrade_levels option=compute value=LEVEL"
169 LEVEL: {get_param: UpgradeLevelNovaCompute}
170 - name: Start nova-compute service
172 service: name=openstack-nova-compute state=started