Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
Aleš Komárek | 7215285 | 2017-04-11 13:48:48 +0200 | [diff] [blame] | 2 | ============ |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 3 | Usage |
Aleš Komárek | 7215285 | 2017-04-11 13:48:48 +0200 | [diff] [blame] | 4 | ============ |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 5 | |
Jakub Pavlik | fcf34f8 | 2016-05-20 09:35:51 +0200 | [diff] [blame] | 6 | OpenStack Nova provides a cloud computing fabric controller, supporting a wide |
| 7 | variety of virtualization technologies, including KVM, Xen, LXC, VMware, and |
| 8 | more. In addition to its native API, it includes compatibility with the |
| 9 | commonly encountered Amazon EC2 and S3 APIs. |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 10 | |
Aleš Komárek | 7215285 | 2017-04-11 13:48:48 +0200 | [diff] [blame] | 11 | Sample Pillars |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 12 | ============== |
| 13 | |
| 14 | Controller nodes |
| 15 | ---------------- |
| 16 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 17 | Nova services on the controller node: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 18 | |
| 19 | .. code-block:: yaml |
| 20 | |
| 21 | nova: |
| 22 | controller: |
| 23 | version: juno |
| 24 | enabled: true |
| 25 | security_group: true |
Lachlan Evenson | b72de50 | 2016-01-20 15:34:04 -0800 | [diff] [blame] | 26 | cpu_allocation_ratio: 8.0 |
| 27 | ram_allocation_ratio: 1.0 |
Jiri Konecny | 9344a37 | 2016-03-21 19:25:48 +0100 | [diff] [blame] | 28 | disk_allocation_ratio: 1.0 |
Dmitry Stremkovskiy | 2bcba8d | 2017-07-30 21:43:59 +0300 | [diff] [blame] | 29 | cross_az_attach: false |
Jiri Konecny | b5a80e4 | 2016-03-22 11:51:01 +0100 | [diff] [blame] | 30 | workers: 8 |
Jakub Pavlik | 617a896 | 2016-09-04 18:50:06 +0200 | [diff] [blame] | 31 | report_interval: 60 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 32 | bind: |
| 33 | public_address: 10.0.0.122 |
| 34 | public_name: openstack.domain.com |
| 35 | novncproxy_port: 6080 |
| 36 | database: |
| 37 | engine: mysql |
| 38 | host: 127.0.0.1 |
| 39 | port: 3306 |
| 40 | name: nova |
| 41 | user: nova |
| 42 | password: pwd |
| 43 | identity: |
| 44 | engine: keystone |
| 45 | host: 127.0.0.1 |
| 46 | port: 35357 |
| 47 | user: nova |
| 48 | password: pwd |
| 49 | tenant: service |
| 50 | message_queue: |
| 51 | engine: rabbitmq |
| 52 | host: 127.0.0.1 |
| 53 | port: 5672 |
| 54 | user: openstack |
| 55 | password: pwd |
| 56 | virtual_host: '/openstack' |
| 57 | network: |
| 58 | engine: neutron |
| 59 | host: 127.0.0.1 |
| 60 | port: 9696 |
Jakub Pavlik | 617a896 | 2016-09-04 18:50:06 +0200 | [diff] [blame] | 61 | extension_sync_interval: 600 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 62 | identity: |
| 63 | engine: keystone |
| 64 | host: 127.0.0.1 |
| 65 | port: 35357 |
| 66 | user: neutron |
| 67 | password: pwd |
| 68 | tenant: service |
| 69 | metadata: |
| 70 | password: password |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 71 | audit: |
| 72 | enabled: false |
Simon Pasquier | 8683b7a | 2017-02-03 16:00:16 +0100 | [diff] [blame] | 73 | osapi_max_limit: 500 |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 74 | barbican: |
| 75 | enabled: true |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 76 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 77 | Nova services from custom package repository: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 78 | |
| 79 | .. code-block:: yaml |
| 80 | |
| 81 | nova: |
| 82 | controller: |
| 83 | version: juno |
| 84 | source: |
| 85 | engine: pkg |
| 86 | address: http://... |
| 87 | .... |
| 88 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 89 | Client-side RabbitMQ HA setup: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 90 | |
| 91 | .. code-block:: yaml |
| 92 | |
| 93 | nova: |
| 94 | controller: |
| 95 | .... |
| 96 | message_queue: |
| 97 | engine: rabbitmq |
| 98 | members: |
| 99 | - host: 10.0.16.1 |
| 100 | - host: 10.0.16.2 |
| 101 | - host: 10.0.16.3 |
| 102 | user: openstack |
| 103 | password: pwd |
| 104 | virtual_host: '/openstack' |
| 105 | .... |
| 106 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 107 | Enable auditing filter, i.e: CADF: |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 108 | |
| 109 | .. code-block:: yaml |
| 110 | |
| 111 | nova: |
| 112 | controller: |
Simon Pasquier | 6a3c8f7 | 2016-12-19 15:37:24 +0100 | [diff] [blame] | 113 | audit: |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 114 | enabled: true |
| 115 | .... |
| 116 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 117 | map_file: '/etc/pycadf/nova_api_audit_map.conf' |
| 118 | .... |
| 119 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 120 | Enable CORS parameters: |
Ondrej Smola | 25b53cb | 2017-04-28 10:56:19 +0200 | [diff] [blame] | 121 | |
| 122 | .. code-block:: yaml |
| 123 | |
| 124 | nova: |
| 125 | controller: |
| 126 | cors: |
| 127 | allowed_origin: https:localhost.local,http:localhost.local |
| 128 | expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 129 | allow_methods: GET,PUT,POST,DELETE,PATCH |
| 130 | allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 131 | allow_credentials: True |
| 132 | max_age: 86400 |
| 133 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 134 | Configuration of the ``policy.json`` file: |
Dmitry Ukov | 3562a08 | 2017-05-04 00:00:48 +0400 | [diff] [blame] | 135 | |
| 136 | .. code-block:: yaml |
| 137 | |
| 138 | nova: |
| 139 | controller: |
| 140 | .... |
| 141 | policy: |
| 142 | context_is_admin: 'role:admin or role:administrator' |
| 143 | 'compute:create': 'rule:admin_or_owner' |
| 144 | # Add key without value to remove line from policy.json |
| 145 | 'compute:create:attach_network': |
Ondrej Smola | 25b53cb | 2017-04-28 10:56:19 +0200 | [diff] [blame] | 146 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 147 | Enable Barbican integration: |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 148 | |
| 149 | .. code-block:: yaml |
| 150 | |
| 151 | nova: |
| 152 | controller: |
| 153 | .... |
| 154 | barbican: |
| 155 | enabled: true |
| 156 | |
Jiri Broulik | 789179a | 2018-02-13 16:16:46 +0100 | [diff] [blame] | 157 | Enable cells update: |
| 158 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 159 | .. note:: Useful when upgrading Openstack. To update cells to test |
| 160 | sync db agains duplicated production database. |
Jiri Broulik | 789179a | 2018-02-13 16:16:46 +0100 | [diff] [blame] | 161 | |
| 162 | .. code-block:: yaml |
| 163 | |
| 164 | nova: |
| 165 | controller: |
| 166 | update_cells: true |
| 167 | |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 168 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 169 | Configuring TLS communications |
| 170 | ------------------------------ |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 171 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 172 | .. note:: By default system wide installed CA certs are used, |
| 173 | so ``cacert_file`` param is optional, as well as ``cacert``. |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 174 | |
| 175 | - **RabbitMQ TLS** |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 176 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 177 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 178 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 179 | nova: |
| 180 | compute: |
| 181 | message_queue: |
| 182 | port: 5671 |
| 183 | ssl: |
| 184 | enabled: True |
| 185 | (optional) cacert: cert body if the cacert_file does not exists |
| 186 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 187 | (optional) version: TLSv1_2 |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 188 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 189 | - **MySQL TLS** |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 190 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 191 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 192 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 193 | nova: |
| 194 | controller: |
| 195 | database: |
| 196 | ssl: |
| 197 | enabled: True |
| 198 | (optional) cacert: cert body if the cacert_file does not exists |
| 199 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 200 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 201 | - **Openstack HTTPS API** |
| 202 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 203 | Set the ``https`` as protocol at ``nova:compute`` and |
| 204 | ``nova:controller`` sections : |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 205 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 206 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 207 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 208 | nova: |
| 209 | controller : |
| 210 | identity: |
| 211 | protocol: https |
| 212 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 213 | network: |
| 214 | protocol: https |
| 215 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 216 | glance: |
| 217 | protocol: https |
| 218 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 219 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 220 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 221 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 222 | nova: |
| 223 | compute: |
| 224 | identity: |
| 225 | protocol: https |
| 226 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 227 | network: |
| 228 | protocol: https |
| 229 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 230 | image: |
| 231 | protocol: https |
| 232 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 233 | ironic: |
| 234 | protocol: https |
| 235 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 236 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 237 | .. note:: Barbican, Cinder, and placement url endpoints are discovering |
| 238 | using service catalog. |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 239 | |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 240 | Compute nodes |
| 241 | ------------- |
| 242 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 243 | Nova controller services on compute node: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 244 | |
| 245 | .. code-block:: yaml |
| 246 | |
| 247 | nova: |
| 248 | compute: |
| 249 | version: juno |
| 250 | enabled: true |
Dmitry Stremkovskiy | 2bcba8d | 2017-07-30 21:43:59 +0300 | [diff] [blame] | 251 | cross_az_attach: false |
Dmitry Stremkovskiy | 35e53b7 | 2017-07-29 12:50:39 +0300 | [diff] [blame] | 252 | disk_cachemodes: network=writeback,block=none |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 253 | availability_zone: availability_zone_01 |
Damian Szeluga | e192241 | 2017-04-18 16:36:46 +0200 | [diff] [blame] | 254 | aggregates: |
| 255 | - hosts_with_fc |
| 256 | - hosts_with_ssd |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 257 | security_group: true |
Petr Michalec | f03e488 | 2017-04-10 10:26:18 +0200 | [diff] [blame] | 258 | resume_guests_state_on_host_boot: False |
Michael Polenchuk | 159c254 | 2018-06-09 15:31:51 +0400 | [diff] [blame] | 259 | preallocate_images: space # Default is 'none' |
Dmitry Stremkovskiy | 8a0ff51 | 2017-07-25 20:54:13 +0300 | [diff] [blame] | 260 | my_ip: 10.1.0.16 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 261 | bind: |
| 262 | vnc_address: 172.20.0.100 |
| 263 | vnc_port: 6080 |
| 264 | vnc_name: openstack.domain.com |
| 265 | vnc_protocol: http |
| 266 | database: |
| 267 | engine: mysql |
| 268 | host: 127.0.0.1 |
| 269 | port: 3306 |
| 270 | name: nova |
| 271 | user: nova |
| 272 | password: pwd |
| 273 | identity: |
| 274 | engine: keystone |
| 275 | host: 127.0.0.1 |
| 276 | port: 35357 |
| 277 | user: nova |
| 278 | password: pwd |
| 279 | tenant: service |
| 280 | message_queue: |
| 281 | engine: rabbitmq |
| 282 | host: 127.0.0.1 |
| 283 | port: 5672 |
| 284 | user: openstack |
| 285 | password: pwd |
| 286 | virtual_host: '/openstack' |
| 287 | image: |
| 288 | engine: glance |
| 289 | host: 127.0.0.1 |
| 290 | port: 9292 |
| 291 | network: |
| 292 | engine: neutron |
| 293 | host: 127.0.0.1 |
| 294 | port: 9696 |
| 295 | identity: |
| 296 | engine: keystone |
| 297 | host: 127.0.0.1 |
| 298 | port: 35357 |
| 299 | user: neutron |
| 300 | password: pwd |
| 301 | tenant: service |
| 302 | qemu: |
| 303 | max_files: 4096 |
| 304 | max_processes: 4096 |
Dmitry Stremkovskiy | 96281f5 | 2017-07-26 00:39:22 +0300 | [diff] [blame] | 305 | host: node-12.domain.tld |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 306 | |
Vasyl Saienko | cab3a90 | 2018-07-12 13:17:17 +0300 | [diff] [blame] | 307 | Compute with vmware driver. Each vmware cluster requires a separate process of nova-compute. |
| 308 | Each process should have uniq host identifier. However multiple computes might be running on |
| 309 | single host. It is not recommended to have multiple computes running on different hosts that |
| 310 | manage the same vmware cluster. To achive this pacemaker/corosync or keepalived might be used. |
| 311 | |
| 312 | .. code-block:: yaml |
| 313 | |
| 314 | nova: |
| 315 | compute: |
| 316 | compute_driver: vmwareapi.VMwareVCDriver |
| 317 | vmware: |
| 318 | host_username: vmware |
| 319 | host_password: vmware |
| 320 | cluster_name: vmware_cluster01 |
| 321 | host_ip: 1.2.3.4 |
| 322 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 323 | Group and user to be used for QEMU processes run by the system instance: |
kkalynovskyi | f50f0c0 | 2017-12-12 17:52:57 +0200 | [diff] [blame] | 324 | |
| 325 | .. code-block:: yaml |
| 326 | |
| 327 | nova: |
| 328 | compute: |
| 329 | enabled: true |
| 330 | ... |
| 331 | qemu: |
| 332 | user: nova |
| 333 | group: cinder |
| 334 | dynamic_ownership: 1 |
| 335 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 336 | Group membership for user nova (upgrade related): |
Dmitry Stremkovskiy | 3cd6ba8 | 2017-07-25 17:15:36 +0300 | [diff] [blame] | 337 | |
| 338 | .. code-block:: yaml |
| 339 | |
| 340 | nova: |
| 341 | compute: |
| 342 | enabled: true |
| 343 | ... |
| 344 | user: |
| 345 | groups: |
| 346 | - libvirt |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 347 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 348 | Nova services on compute node with OpenContrail: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 349 | |
| 350 | .. code-block:: yaml |
| 351 | |
| 352 | nova: |
| 353 | compute: |
| 354 | enabled: true |
| 355 | ... |
| 356 | networking: contrail |
| 357 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 358 | Nova services on compute node with memcached caching: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 359 | |
| 360 | .. code-block:: yaml |
| 361 | |
| 362 | nova: |
| 363 | compute: |
| 364 | enabled: true |
| 365 | ... |
| 366 | cache: |
| 367 | engine: memcached |
| 368 | members: |
| 369 | - host: 127.0.0.1 |
| 370 | port: 11211 |
| 371 | - host: 127.0.0.1 |
| 372 | port: 11211 |
| 373 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 374 | Client-side RabbitMQ HA setup: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 375 | |
| 376 | .. code-block:: yaml |
| 377 | |
| 378 | nova: |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 379 | compute: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 380 | .... |
| 381 | message_queue: |
| 382 | engine: rabbitmq |
| 383 | members: |
| 384 | - host: 10.0.16.1 |
| 385 | - host: 10.0.16.2 |
| 386 | - host: 10.0.16.3 |
| 387 | user: openstack |
| 388 | password: pwd |
| 389 | virtual_host: '/openstack' |
| 390 | .... |
| 391 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 392 | Nova with ephemeral configured with Ceph: |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 393 | |
| 394 | .. code-block:: yaml |
| 395 | |
| 396 | nova: |
| 397 | compute: |
| 398 | enabled: true |
| 399 | ... |
| 400 | ceph: |
| 401 | ephemeral: yes |
| 402 | rbd_pool: nova |
| 403 | rbd_user: nova |
| 404 | secret_uuid: 03006edd-d957-40a3-ac4c-26cd254b3731 |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 405 | .... |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 406 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 407 | Nova with ephemeral configured with LVM: |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 408 | |
| 409 | .. code-block:: yaml |
| 410 | |
| 411 | nova: |
| 412 | compute: |
| 413 | enabled: true |
| 414 | ... |
| 415 | lvm: |
| 416 | ephemeral: yes |
| 417 | images_volume_group: nova_vg |
| 418 | |
| 419 | linux: |
| 420 | storage: |
| 421 | lvm: |
| 422 | nova_vg: |
| 423 | name: nova_vg |
| 424 | devices: |
| 425 | - /dev/sdf |
| 426 | - /dev/sdd |
| 427 | - /dev/sdg |
| 428 | - /dev/sde |
| 429 | - /dev/sdc |
| 430 | - /dev/sdj |
| 431 | - /dev/sdh |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 432 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 433 | Enable Barbican integration: |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 434 | |
| 435 | .. code-block:: yaml |
| 436 | |
| 437 | nova: |
| 438 | compute: |
| 439 | .... |
| 440 | barbican: |
| 441 | enabled: true |
| 442 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 443 | Nova metadata custom bindings: |
Vasyl Saienko | 2d59128 | 2018-02-05 14:19:02 +0200 | [diff] [blame] | 444 | |
| 445 | .. code-block:: yaml |
| 446 | |
| 447 | nova: |
| 448 | controller: |
| 449 | enabled: true |
| 450 | ... |
| 451 | metadata: |
| 452 | bind: |
| 453 | address: 1.2.3.4 |
| 454 | port: 8776 |
| 455 | |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 456 | Client role |
| 457 | ----------- |
| 458 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 459 | Nova configured with NFS: |
Dmitry Stremkovskiy | 665c728 | 2017-07-05 17:36:27 +0300 | [diff] [blame] | 460 | |
| 461 | .. code-block:: yaml |
| 462 | |
| 463 | nova: |
| 464 | compute: |
| 465 | instances_path: /mnt/nova/instances |
| 466 | |
| 467 | linux: |
| 468 | storage: |
| 469 | enabled: true |
| 470 | mount: |
| 471 | nfs_nova: |
| 472 | enabled: true |
| 473 | path: ${nova:compute:instances_path} |
| 474 | device: 172.31.35.145:/data |
| 475 | file_system: nfs |
| 476 | opts: rw,vers=3 |
| 477 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 478 | Nova flavors: |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 479 | |
| 480 | .. code-block:: yaml |
| 481 | |
| 482 | nova: |
| 483 | client: |
| 484 | enabled: true |
| 485 | server: |
| 486 | identity: |
| 487 | flavor: |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 488 | flavor1: |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 489 | flavor_id: 10 |
| 490 | ram: 4096 |
| 491 | disk: 10 |
| 492 | vcpus: 1 |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 493 | flavor2: |
| 494 | flavor_id: auto |
| 495 | ram: 4096 |
| 496 | disk: 20 |
| 497 | vcpus: 2 |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 498 | identity1: |
| 499 | flavor: |
| 500 | ... |
| 501 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 502 | Availability zones: |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 503 | |
| 504 | .. code-block:: yaml |
| 505 | |
| 506 | nova: |
| 507 | client: |
| 508 | enabled: true |
| 509 | server: |
| 510 | identity: |
| 511 | availability_zones: |
| 512 | - availability_zone_01 |
| 513 | - availability_zone_02 |
| 514 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 515 | Aggregates: |
Damian Szeluga | 5dca0f0 | 2017-04-13 17:27:15 +0200 | [diff] [blame] | 516 | |
| 517 | .. code-block:: yaml |
| 518 | |
| 519 | nova: |
| 520 | client: |
| 521 | enabled: true |
| 522 | server: |
| 523 | identity: |
| 524 | aggregates: |
| 525 | - aggregate1 |
| 526 | - aggregate2 |
| 527 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 528 | Upgrade levels: |
Dmitry Stremkovskiy | 91f4585 | 2017-07-18 16:22:31 +0300 | [diff] [blame] | 529 | |
| 530 | .. code-block:: yaml |
| 531 | |
| 532 | nova: |
| 533 | controller: |
| 534 | upgrade_levels: |
| 535 | compute: juno |
| 536 | |
| 537 | nova: |
| 538 | compute: |
| 539 | upgrade_levels: |
| 540 | compute: juno |
| 541 | |
Petr Jediný | d855ef2 | 2017-03-06 22:24:33 +0100 | [diff] [blame] | 542 | SR-IOV |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 543 | ------ |
| 544 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 545 | Add ``PciPassthroughFilter`` into scheduler filters and NICs on |
| 546 | specific compute nodes: |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 547 | |
| 548 | .. code-block:: yaml |
| 549 | |
| 550 | nova: |
| 551 | controller: |
| 552 | sriov: true |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 553 | scheduler_default_filters: "DifferentHostFilter,SameHostFilter,RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter" |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 554 | |
| 555 | nova: |
| 556 | compute: |
| 557 | sriov: |
| 558 | nic_one: |
| 559 | devname: eth1 |
| 560 | physical_network: physnet1 |
| 561 | |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 562 | CPU pinning & Hugepages |
| 563 | ----------------------- |
| 564 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 565 | CPU pinning of virtual machine instances to dedicated physical |
| 566 | CPU cores. Hugepages mount point for libvirt. |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 567 | |
| 568 | .. code-block:: yaml |
| 569 | |
| 570 | nova: |
| 571 | controller: |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 572 | scheduler_default_filters: "DifferentHostFilter,SameHostFilter,RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,NUMATopologyFilter,AggregateInstanceExtraSpecsFilter" |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 573 | |
| 574 | nova: |
| 575 | compute: |
| 576 | vcpu_pin_set: 2,3,4,5 |
| 577 | hugepages: |
| 578 | mount_points: |
| 579 | - path: /mnt/hugepages_1GB |
| 580 | - path: /mnt/hugepages_2MB |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 581 | |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 582 | Custom Scheduler filters |
| 583 | ------------------------ |
| 584 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 585 | If you have a custom filter, that needs to be included in the |
| 586 | scheduler, then you can include it like so: |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 587 | |
| 588 | .. code-block:: yaml |
| 589 | |
| 590 | nova: |
| 591 | controller: |
| 592 | scheduler_custom_filters: |
| 593 | - my_custom_driver.nova.scheduler.filters.my_custom_filter.MyCustomFilter |
| 594 | |
| 595 | # Then add your custom filter on the end (make sure to include all other ones that you need as well) |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 596 | scheduler_default_filters: "DifferentHostFilter,SameHostFilter,RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter,MyCustomFilter" |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 597 | |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 598 | Hardware Trip/Unmap Support |
| 599 | --------------------------- |
| 600 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 601 | To enable TRIM support for ephemeral images (thru nova managed |
| 602 | images), libvirt has this option: |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 603 | |
| 604 | .. code-block:: yaml |
| 605 | |
| 606 | nova: |
| 607 | compute: |
| 608 | libvirt: |
| 609 | hw_disk_discard: unmap |
| 610 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 611 | To actually utilize this feature, the following metadata must be |
| 612 | set on the image as well, so the SCSI unmap is supported: |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 613 | |
| 614 | .. code-block:: bash |
| 615 | |
| 616 | glance image-update --property hw_scsi_model=virtio-scsi <image> |
| 617 | glance image-update --property hw_disk_bus=scsi <image> |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 618 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 619 | Scheduler Host Manager |
| 620 | ---------------------- |
| 621 | |
| 622 | Specify a custom host manager. |
| 623 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 624 | libvirt CPU mode |
| 625 | ---------------- |
| 626 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 627 | Allow setting the model of CPU that is exposed to a VM. This |
| 628 | allows for better support live migration between hypervisors with |
| 629 | different hardware, among other things. Defaults to host-passthrough. |
Jakub Pavlik | 7046b9c | 2017-09-19 12:04:19 +0200 | [diff] [blame] | 630 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 631 | .. code-block:: yaml |
| 632 | |
| 633 | nova: |
| 634 | controller: |
| 635 | scheduler_host_manager: ironic_host_manager |
| 636 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 637 | compute: |
| 638 | cpu_mode: host-model |
| 639 | |
Dzmitry Stremkouski | 7da9bf1 | 2018-04-25 22:30:37 +0200 | [diff] [blame] | 640 | Nova compute cpu model |
| 641 | ---------------------- |
| 642 | |
| 643 | .. code-block:: yaml |
| 644 | |
| 645 | nova: |
| 646 | compute: |
| 647 | cpu_mode: custom |
| 648 | libvirt: |
| 649 | cpu_model: IvyBridge |
| 650 | |
| 651 | |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 652 | Nova compute workarounds |
| 653 | ------------------------ |
| 654 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 655 | Live snapshotting is disabled by default in nova. To enable |
| 656 | this, it needs a manual switch. |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 657 | |
| 658 | From manual: |
| 659 | |
| 660 | .. code-block:: yaml |
| 661 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 662 | When using libvirt 1.2.2 live snapshots fail intermittently under load |
| 663 | (likely related to concurrent libvirt/qemu operations). This config |
| 664 | option provides a mechanism to disable live snapshot, in favor of cold |
| 665 | snapshot, while this is resolved. Cold snapshot causes an instance |
| 666 | outage while the guest is going through the snapshotting process. |
| 667 | |
| 668 | For more information, refer to the bug report: |
| 669 | |
| 670 | https://bugs.launchpad.net/nova/+bug/1334398 |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 671 | |
| 672 | Configurable pillar data: |
| 673 | |
| 674 | .. code-block:: yaml |
| 675 | |
| 676 | nova: |
| 677 | compute: |
Michel Nederlof | e322ebb | 2017-07-10 12:29:21 +0200 | [diff] [blame] | 678 | workaround: |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 679 | disable_libvirt_livesnapshot: False |
| 680 | |
Michel Nederlof | b51a514 | 2017-06-27 08:31:35 +0200 | [diff] [blame] | 681 | Config drive options |
| 682 | -------------------- |
| 683 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 684 | See example below on how to configure the options for the |
| 685 | config drive: |
Michel Nederlof | b51a514 | 2017-06-27 08:31:35 +0200 | [diff] [blame] | 686 | |
| 687 | .. code-block:: yaml |
| 688 | |
| 689 | nova: |
| 690 | compute: |
| 691 | config_drive: |
| 692 | forced: True # Default: True |
| 693 | cdrom: True # Default: False |
| 694 | format: iso9660 # Default: vfat |
| 695 | inject_password: False # Default: False |
| 696 | |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 697 | Number of concurrent live migrates |
| 698 | ---------------------------------- |
| 699 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 700 | Default is to have no concurrent live migrations (so 1 |
| 701 | live-migration at a time). |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 702 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 703 | Excerpt from config options page |
| 704 | https://docs.openstack.org/ocata/config-reference/compute/config-options.html: |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 705 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 706 | Maximum number of live migrations to run concurrently. This limit is |
| 707 | enforced to avoid outbound live migrations overwhelming the host/network |
| 708 | and causing failures. It is not recommended that you change this unless |
| 709 | you are very sure that doing so is safe and stable in your environment. |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 710 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 711 | Possible values: |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 712 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 713 | - 0 : treated as unlimited. |
| 714 | - Negative value defaults to 0. |
| 715 | - Any positive integer representing maximum number of live migrations |
| 716 | to run concurrently. |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 717 | |
| 718 | To configure this option: |
| 719 | |
| 720 | .. code-block:: yaml |
| 721 | |
| 722 | nova: |
| 723 | compute: |
| 724 | max_concurrent_live_migrations: 1 # (1 is the default) |
| 725 | |
Sergio Lystopad | 9d31cba | 2018-05-15 11:29:11 +0300 | [diff] [blame] | 726 | Live migration with auto converge |
| 727 | ---------------------------------- |
| 728 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 729 | Auto converge throttles down CPU if a progress of on-going live |
| 730 | migration is slow |
| 731 | https://docs.openstack.org/ocata/config-reference/compute/config-options.html: |
Sergio Lystopad | 9d31cba | 2018-05-15 11:29:11 +0300 | [diff] [blame] | 732 | |
| 733 | .. code-block:: yaml |
| 734 | |
| 735 | nova: |
| 736 | compute: |
| 737 | libvirt: |
| 738 | live_migration_permit_auto_converge: False # (False is the default) |
| 739 | |
| 740 | .. code-block:: yaml |
| 741 | |
| 742 | nova: |
| 743 | controller: |
| 744 | libvirt: |
| 745 | live_migration_permit_auto_converge: False # (False is the default) |
| 746 | |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 747 | Enhanced logging with logging.conf |
| 748 | ---------------------------------- |
| 749 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 750 | By default ``logging.conf`` is disabled. |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 751 | |
| 752 | That is possible to enable per-binary logging.conf with new variables: |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 753 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 754 | * ``openstack_log_appender`` |
| 755 | Set to true to enable log_config_append for all OpenStack services |
| 756 | |
| 757 | * ``openstack_fluentd_handler_enabled`` |
| 758 | Set to true to enable FluentHandler for all Openstack services |
| 759 | |
| 760 | * ``openstack_ossyslog_handler_enabled`` |
| 761 | Set to true to enable OSSysLogHandler for all Openstack services |
| 762 | |
| 763 | Only ``WatchedFileHandler``, ``OSSysLogHandler``, and ``FluentHandler`` |
| 764 | are available. |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 765 | |
Dmitry Kalashnik | 8da249c | 2018-01-16 17:58:00 +0400 | [diff] [blame] | 766 | Also it is possible to configure this with pillar: |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 767 | |
| 768 | .. code-block:: yaml |
| 769 | |
| 770 | nova: |
| 771 | controller: |
| 772 | logging: |
| 773 | log_appender: true |
| 774 | log_handlers: |
| 775 | watchedfile: |
| 776 | enabled: true |
| 777 | fluentd: |
| 778 | enabled: true |
Oleksii Chupryn | 99e3503 | 2018-02-06 01:59:40 +0200 | [diff] [blame] | 779 | ossyslog: |
| 780 | enabled: true |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 781 | |
| 782 | compute: |
| 783 | logging: |
| 784 | log_appender: true |
| 785 | log_handlers: |
| 786 | watchedfile: |
| 787 | enabled: true |
| 788 | fluentd: |
| 789 | enabled: true |
Oleksii Chupryn | 99e3503 | 2018-02-06 01:59:40 +0200 | [diff] [blame] | 790 | ossyslog: |
| 791 | enabled: true |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 792 | |
Vasyl Saienko | 7243a95 | 2018-05-11 21:26:54 +0300 | [diff] [blame] | 793 | The log level might be configured per logger by using the |
| 794 | following pillar structure: |
| 795 | |
| 796 | .. code-block:: yaml |
| 797 | |
| 798 | nova: |
| 799 | compute: |
| 800 | logging: |
| 801 | loggers: |
| 802 | <logger_name>: |
| 803 | level: WARNING |
| 804 | |
| 805 | nova: |
| 806 | compute: |
| 807 | logging: |
| 808 | loggers: |
| 809 | <logger_name>: |
| 810 | level: WARNING |
| 811 | |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 812 | Configure syslog parameters for libvirtd |
| 813 | ---------------------------------------- |
| 814 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 815 | To configure syslog parameters for libvirtd the below pillar |
| 816 | structure should be used with values which are supported |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 817 | by libvirtd. These values might be known from the documentation. |
| 818 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 819 | .. code-block:: yaml |
| 820 | |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 821 | nova: |
| 822 | compute: |
| 823 | libvirt: |
| 824 | logging: |
| 825 | level: 3 |
| 826 | filters: '3:remote 4:event' |
| 827 | outputs: '3:syslog:libvirtd' |
| 828 | buffer_size: 64 |
| 829 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 830 | Logging controls: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 831 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 832 | Logging level: 4 errors, 3 warnings, 2 information, 1 debug |
| 833 | basically 1 will log everything possible ``log_level = 3`` |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 834 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 835 | Logging filters: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 836 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 837 | A filter allows to select a different logging level for a given category |
| 838 | of logs. |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 839 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 840 | The format for a filter is one of: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 841 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 842 | * ``x:name`` |
| 843 | * ``x:+name`` |
| 844 | where name is a string which is matched against source file name, |
| 845 | e.g., ``remote``, ``qemu``, or ``util/json``, the optional ``+`` prefix |
| 846 | tells libvirt to log stack trace for each message matching name, |
| 847 | and x is the minimal level where matching messages should be logged: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 848 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 849 | * ``1: DEBUG`` |
| 850 | * ``2: INFO`` |
| 851 | * ``3: WARNING`` |
| 852 | * ``4: ERROR`` |
| 853 | |
| 854 | Multiple filter can be defined in a single @filters, they just |
| 855 | need to be separated by spaces. |
| 856 | |
| 857 | For example, to only get warning or errors from the remote layer |
| 858 | and only errors from the event layer: ``log_filters="3:remote 4:event`` |
| 859 | |
| 860 | Logging outputs: |
| 861 | |
| 862 | An output is one of the places to save logging information |
| 863 | The format for an output can be: |
| 864 | |
| 865 | * ``x:stderr`` |
| 866 | Output goes to stderr |
| 867 | |
| 868 | * ``x:syslog:name`` |
| 869 | Use syslog for the output and use the given name as the ident |
| 870 | |
| 871 | * ``x:file:file_path`` |
| 872 | output to a file, with the given filepath |
| 873 | |
| 874 | In all case the x prefix is the minimal level, acting as a filter |
| 875 | |
| 876 | * ``1: DEBUG`` |
| 877 | * ``2: INFO`` |
| 878 | * ``3: WARNING`` |
| 879 | * ``4: ERROR`` |
| 880 | |
| 881 | Multiple output can be defined, they just need to be separated by spaces. |
| 882 | For example, to log all warnings and errors to syslog under the libvirt |
| 883 | dident: ``log_outputs="3:syslog:libvirtd`` |
| 884 | |
| 885 | Log debug buffer size: default 64 |
| 886 | The daemon keeps an internal debug log buffer which will be dumped |
| 887 | in case of crash or upon receiving a ``SIGUSR2`` signal. This setting |
| 888 | allows to override the default buffer size in kilobytes. |
| 889 | If value is ``0`` or less the debug log buffer is deactivated |
| 890 | ``log_buffer_size = 64`` |
| 891 | |
| 892 | To configure the logging parameters for QEMU, the below pillar |
| 893 | structure and logging parameters should be used: |
| 894 | |
| 895 | .. code-block:: yaml |
| 896 | |
| 897 | nova: |
| 898 | compute: |
| 899 | qemu: |
| 900 | logging: |
| 901 | handler: logd |
| 902 | virtlog: |
| 903 | enabled: true |
| 904 | level: 4 |
| 905 | filters: '3:remote 3:event' |
| 906 | outputs: '4:syslog:virtlogd' |
| 907 | max_clients: 512 |
| 908 | max_size: 2097100 |
| 909 | max_backups: 2 |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 910 | |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 911 | Inject password to VM |
| 912 | --------------------- |
| 913 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 914 | By default nova blocks up any inject to VM because |
| 915 | ``inject_partition`` param is equal to ``-2``. |
| 916 | If you want to inject password to VM, you will need to |
| 917 | define ``inject_partition`` greater or equal to ``-1`` and |
| 918 | define ``inject_password`` to ``True`` |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 919 | |
| 920 | For example: |
| 921 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 922 | .. code-block:: yaml |
| 923 | |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 924 | nova: |
| 925 | compute: |
| 926 | inject_partition: '-1' |
| 927 | inject_password: True |
| 928 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 929 | Allow the injection of an admin password for instance only at |
| 930 | ``create`` and ``rebuild`` process. |
| 931 | |
| 932 | There is no agent needed within the image to do this. If *libguestfs* is |
| 933 | available on the host, it will be used. Otherwise *nbd* is used. The file |
| 934 | system of the image will be mounted and the admin password, which is provided |
| 935 | in the REST API call will be injected as password for the root user. If no |
| 936 | root user is available, the instance won't be launched and an error is thrown. |
| 937 | Be aware that the injection is *not* possible when the instance gets launched |
| 938 | from a volume. |
| 939 | |
| 940 | Possible values: |
| 941 | |
| 942 | * ``True`` |
| 943 | Allows the injection |
| 944 | |
| 945 | * ``False`` (default) |
| 946 | Disallows the injection. Any via the REST API provided |
| 947 | admin password will be silently ignored. |
| 948 | |
| 949 | Related options: |
| 950 | |
| 951 | * ``inject_partition`` |
| 952 | Decides about the discovery and usage of the file system. |
| 953 | It also can disable the injection at all. |
| 954 | (boolean value) |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 955 | |
| 956 | You can read more about injecting the administrator password here: |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 957 | https://docs.openstack.org/nova/queens/admin/admin-password-injection.html |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 958 | |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 959 | Enable libvirt control channel over TLS |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 960 | --------------------------------------- |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 961 | |
| 962 | By default TLS is disabled. |
| 963 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 964 | Enable TLS transport: |
| 965 | |
| 966 | .. code-block:: yaml |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 967 | |
| 968 | compute: |
| 969 | libvirt: |
| 970 | tls: |
| 971 | enabled: True |
| 972 | |
| 973 | You able to set custom certificates in pillar: |
| 974 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 975 | .. code-block:: yaml |
| 976 | |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 977 | nova: |
| 978 | compute: |
| 979 | libvirt: |
| 980 | tls: |
| 981 | key: (certificate content) |
| 982 | cert: (certificate content) |
| 983 | cacert: (certificate content) |
| 984 | client: |
| 985 | key: (certificate content) |
| 986 | cert: (certificate content) |
| 987 | |
| 988 | You can read more about live migration over TLS here: |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 989 | https://wiki.libvirt.org/page/TLSCreateServerCerts |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 990 | |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 991 | Enable transport + authentication for VNC over TLS |
| 992 | --------------------- |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 993 | # Only for Queens. Communication between noVNC proxy service and QEMU |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 994 | |
| 995 | By default communication between nova-novncproxy and qemu service is unsecure. |
| 996 | |
| 997 | compute: |
| 998 | qemu: |
| 999 | vnc: |
| 1000 | tls: |
| 1001 | enabled: True |
| 1002 | |
| 1003 | controller: |
| 1004 | novncproxy: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1005 | # This section responsible for communication between noVNC proxy and client machine |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1006 | tls: |
| 1007 | enabled: True |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1008 | # This section responsible for communication between nova-novncproxy and qemu service |
| 1009 | vencrypt: |
| 1010 | tls: |
| 1011 | enabled: True |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1012 | |
| 1013 | You able to set custom certificates in pillar: |
| 1014 | |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1015 | nova: |
| 1016 | compute: |
| 1017 | qemu: |
| 1018 | vnc: |
| 1019 | tls: |
| 1020 | cacert (certificate content) |
| 1021 | cert (certificate content) |
| 1022 | key (certificate content) |
| 1023 | |
| 1024 | nova: |
| 1025 | controller: |
| 1026 | novncproxy: |
| 1027 | tls: |
| 1028 | server: |
| 1029 | cert (certificate content) |
| 1030 | key (certificate content) |
| 1031 | vencrypt: |
| 1032 | tls: |
| 1033 | cacert (certificate content) |
| 1034 | cert (certificate content) |
| 1035 | key (certificate content) |
| 1036 | |
| 1037 | |
| 1038 | You can read more about it here: |
| 1039 | https://docs.openstack.org/nova/queens/admin/remote-console-access.html |
| 1040 | |
| 1041 | Enable communication between noVNC proxy and client machine over TLS |
| 1042 | --------------------- |
| 1043 | |
| 1044 | By default communication between noVNC proxy and client machine is unsecure. |
| 1045 | |
| 1046 | controller: |
| 1047 | novncproxy: |
| 1048 | tls: |
| 1049 | enabled: True |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1050 | |
| 1051 | nova: |
| 1052 | controller: |
| 1053 | novncproxy: |
| 1054 | tls: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1055 | server: |
| 1056 | cert (certificate content) |
| 1057 | key (certificate content) |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1058 | |
| 1059 | You can read more about it here: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1060 | https://docs.openstack.org/mitaka/config-reference/dashboard/configure.html |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1061 | |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1062 | Documentation and Bugs |
| 1063 | ====================== |
| 1064 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 1065 | * http://salt-formulas.readthedocs.io/ |
| 1066 | Learn how to install and update salt-formulas |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1067 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 1068 | * https://github.com/salt-formulas/salt-formula-nova/issues |
| 1069 | In the unfortunate event that bugs are discovered, report the issue to the |
| 1070 | appropriate issue tracker. Use the Github issue tracker for a specific salt |
| 1071 | formula |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1072 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 1073 | * https://launchpad.net/salt-formulas |
| 1074 | For feature requests, bug reports, or blueprints affecting the entire |
| 1075 | ecosystem, use the Launchpad salt-formulas project |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1076 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 1077 | * https://launchpad.net/~salt-formulas-users |
| 1078 | Join the salt-formulas-users team and subscribe to mailing list if required |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1079 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 1080 | * https://github.com/salt-formulas/salt-formula-nova |
| 1081 | Develop the salt-formulas projects in the master branch and then submit pull |
| 1082 | requests against a specific formula |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1083 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame^] | 1084 | * #salt-formulas @ irc.freenode.net |
| 1085 | Use this IRC channel in case of any questions or feedback which is always |
| 1086 | welcome |