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