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 | |
Oleksandr Bryndzii | bb8abfe | 2018-09-28 22:21:43 +0000 | [diff] [blame^] | 359 | Nova services on compute node with memcached caching and security strategy: |
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 |
Oleksandr Bryndzii | bb8abfe | 2018-09-28 22:21:43 +0000 | [diff] [blame^] | 374 | security: |
| 375 | enabled: true |
| 376 | strategy: ENCRYPT |
| 377 | secret_key: secret |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 378 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 379 | Client-side RabbitMQ HA setup: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 380 | |
| 381 | .. code-block:: yaml |
| 382 | |
| 383 | nova: |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 384 | compute: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 385 | .... |
| 386 | message_queue: |
| 387 | engine: rabbitmq |
| 388 | members: |
| 389 | - host: 10.0.16.1 |
| 390 | - host: 10.0.16.2 |
| 391 | - host: 10.0.16.3 |
| 392 | user: openstack |
| 393 | password: pwd |
| 394 | virtual_host: '/openstack' |
| 395 | .... |
| 396 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 397 | Nova with ephemeral configured with Ceph: |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 398 | |
| 399 | .. code-block:: yaml |
| 400 | |
| 401 | nova: |
| 402 | compute: |
| 403 | enabled: true |
| 404 | ... |
| 405 | ceph: |
| 406 | ephemeral: yes |
| 407 | rbd_pool: nova |
| 408 | rbd_user: nova |
| 409 | secret_uuid: 03006edd-d957-40a3-ac4c-26cd254b3731 |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 410 | .... |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 411 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 412 | Nova with ephemeral configured with LVM: |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 413 | |
| 414 | .. code-block:: yaml |
| 415 | |
| 416 | nova: |
| 417 | compute: |
| 418 | enabled: true |
| 419 | ... |
| 420 | lvm: |
| 421 | ephemeral: yes |
| 422 | images_volume_group: nova_vg |
| 423 | |
| 424 | linux: |
| 425 | storage: |
| 426 | lvm: |
| 427 | nova_vg: |
| 428 | name: nova_vg |
| 429 | devices: |
| 430 | - /dev/sdf |
| 431 | - /dev/sdd |
| 432 | - /dev/sdg |
| 433 | - /dev/sde |
| 434 | - /dev/sdc |
| 435 | - /dev/sdj |
| 436 | - /dev/sdh |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 437 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 438 | Enable Barbican integration: |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 439 | |
| 440 | .. code-block:: yaml |
| 441 | |
| 442 | nova: |
| 443 | compute: |
| 444 | .... |
| 445 | barbican: |
| 446 | enabled: true |
| 447 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 448 | Nova metadata custom bindings: |
Vasyl Saienko | 2d59128 | 2018-02-05 14:19:02 +0200 | [diff] [blame] | 449 | |
| 450 | .. code-block:: yaml |
| 451 | |
| 452 | nova: |
| 453 | controller: |
| 454 | enabled: true |
| 455 | ... |
| 456 | metadata: |
| 457 | bind: |
| 458 | address: 1.2.3.4 |
| 459 | port: 8776 |
| 460 | |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 461 | Client role |
| 462 | ----------- |
| 463 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 464 | Nova configured with NFS: |
Dmitry Stremkovskiy | 665c728 | 2017-07-05 17:36:27 +0300 | [diff] [blame] | 465 | |
| 466 | .. code-block:: yaml |
| 467 | |
| 468 | nova: |
| 469 | compute: |
| 470 | instances_path: /mnt/nova/instances |
| 471 | |
| 472 | linux: |
| 473 | storage: |
| 474 | enabled: true |
| 475 | mount: |
| 476 | nfs_nova: |
| 477 | enabled: true |
| 478 | path: ${nova:compute:instances_path} |
| 479 | device: 172.31.35.145:/data |
| 480 | file_system: nfs |
| 481 | opts: rw,vers=3 |
| 482 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 483 | Nova flavors: |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 484 | |
| 485 | .. code-block:: yaml |
| 486 | |
| 487 | nova: |
| 488 | client: |
| 489 | enabled: true |
| 490 | server: |
| 491 | identity: |
| 492 | flavor: |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 493 | flavor1: |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 494 | flavor_id: 10 |
| 495 | ram: 4096 |
| 496 | disk: 10 |
| 497 | vcpus: 1 |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 498 | flavor2: |
| 499 | flavor_id: auto |
| 500 | ram: 4096 |
| 501 | disk: 20 |
| 502 | vcpus: 2 |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 503 | identity1: |
| 504 | flavor: |
| 505 | ... |
| 506 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 507 | Availability zones: |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 508 | |
| 509 | .. code-block:: yaml |
| 510 | |
| 511 | nova: |
| 512 | client: |
| 513 | enabled: true |
| 514 | server: |
| 515 | identity: |
| 516 | availability_zones: |
| 517 | - availability_zone_01 |
| 518 | - availability_zone_02 |
| 519 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 520 | Aggregates: |
Damian Szeluga | 5dca0f0 | 2017-04-13 17:27:15 +0200 | [diff] [blame] | 521 | |
| 522 | .. code-block:: yaml |
| 523 | |
| 524 | nova: |
| 525 | client: |
| 526 | enabled: true |
| 527 | server: |
| 528 | identity: |
| 529 | aggregates: |
| 530 | - aggregate1 |
| 531 | - aggregate2 |
| 532 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 533 | Upgrade levels: |
Dmitry Stremkovskiy | 91f4585 | 2017-07-18 16:22:31 +0300 | [diff] [blame] | 534 | |
| 535 | .. code-block:: yaml |
| 536 | |
| 537 | nova: |
| 538 | controller: |
| 539 | upgrade_levels: |
| 540 | compute: juno |
| 541 | |
| 542 | nova: |
| 543 | compute: |
| 544 | upgrade_levels: |
| 545 | compute: juno |
| 546 | |
Petr Jediný | d855ef2 | 2017-03-06 22:24:33 +0100 | [diff] [blame] | 547 | SR-IOV |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 548 | ------ |
| 549 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 550 | Add ``PciPassthroughFilter`` into scheduler filters and NICs on |
| 551 | specific compute nodes: |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 552 | |
| 553 | .. code-block:: yaml |
| 554 | |
| 555 | nova: |
| 556 | controller: |
| 557 | sriov: true |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 558 | 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] | 559 | |
| 560 | nova: |
| 561 | compute: |
| 562 | sriov: |
| 563 | nic_one: |
| 564 | devname: eth1 |
| 565 | physical_network: physnet1 |
| 566 | |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 567 | CPU pinning & Hugepages |
| 568 | ----------------------- |
| 569 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 570 | CPU pinning of virtual machine instances to dedicated physical |
| 571 | CPU cores. Hugepages mount point for libvirt. |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 572 | |
| 573 | .. code-block:: yaml |
| 574 | |
| 575 | nova: |
| 576 | controller: |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 577 | 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] | 578 | |
| 579 | nova: |
| 580 | compute: |
| 581 | vcpu_pin_set: 2,3,4,5 |
| 582 | hugepages: |
| 583 | mount_points: |
| 584 | - path: /mnt/hugepages_1GB |
| 585 | - path: /mnt/hugepages_2MB |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 586 | |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 587 | Custom Scheduler filters |
| 588 | ------------------------ |
| 589 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 590 | If you have a custom filter, that needs to be included in the |
| 591 | scheduler, then you can include it like so: |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 592 | |
| 593 | .. code-block:: yaml |
| 594 | |
| 595 | nova: |
| 596 | controller: |
| 597 | scheduler_custom_filters: |
| 598 | - my_custom_driver.nova.scheduler.filters.my_custom_filter.MyCustomFilter |
| 599 | |
| 600 | # 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] | 601 | 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] | 602 | |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 603 | Hardware Trip/Unmap Support |
| 604 | --------------------------- |
| 605 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 606 | To enable TRIM support for ephemeral images (thru nova managed |
| 607 | images), libvirt has this option: |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 608 | |
| 609 | .. code-block:: yaml |
| 610 | |
| 611 | nova: |
| 612 | compute: |
| 613 | libvirt: |
| 614 | hw_disk_discard: unmap |
| 615 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 616 | To actually utilize this feature, the following metadata must be |
| 617 | set on the image as well, so the SCSI unmap is supported: |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 618 | |
| 619 | .. code-block:: bash |
| 620 | |
| 621 | glance image-update --property hw_scsi_model=virtio-scsi <image> |
| 622 | glance image-update --property hw_disk_bus=scsi <image> |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 623 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 624 | Scheduler Host Manager |
| 625 | ---------------------- |
| 626 | |
| 627 | Specify a custom host manager. |
| 628 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 629 | libvirt CPU mode |
| 630 | ---------------- |
| 631 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 632 | Allow setting the model of CPU that is exposed to a VM. This |
| 633 | allows for better support live migration between hypervisors with |
| 634 | different hardware, among other things. Defaults to host-passthrough. |
Jakub Pavlik | 7046b9c | 2017-09-19 12:04:19 +0200 | [diff] [blame] | 635 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 636 | .. code-block:: yaml |
| 637 | |
| 638 | nova: |
| 639 | controller: |
| 640 | scheduler_host_manager: ironic_host_manager |
| 641 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 642 | compute: |
| 643 | cpu_mode: host-model |
| 644 | |
Dzmitry Stremkouski | 7da9bf1 | 2018-04-25 22:30:37 +0200 | [diff] [blame] | 645 | Nova compute cpu model |
| 646 | ---------------------- |
| 647 | |
| 648 | .. code-block:: yaml |
| 649 | |
| 650 | nova: |
| 651 | compute: |
| 652 | cpu_mode: custom |
| 653 | libvirt: |
| 654 | cpu_model: IvyBridge |
| 655 | |
| 656 | |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 657 | Nova compute workarounds |
| 658 | ------------------------ |
| 659 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 660 | Live snapshotting is disabled by default in nova. To enable |
| 661 | this, it needs a manual switch. |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 662 | |
| 663 | From manual: |
| 664 | |
| 665 | .. code-block:: yaml |
| 666 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 667 | When using libvirt 1.2.2 live snapshots fail intermittently under load |
| 668 | (likely related to concurrent libvirt/qemu operations). This config |
| 669 | option provides a mechanism to disable live snapshot, in favor of cold |
| 670 | snapshot, while this is resolved. Cold snapshot causes an instance |
| 671 | outage while the guest is going through the snapshotting process. |
| 672 | |
| 673 | For more information, refer to the bug report: |
| 674 | |
| 675 | https://bugs.launchpad.net/nova/+bug/1334398 |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 676 | |
| 677 | Configurable pillar data: |
| 678 | |
| 679 | .. code-block:: yaml |
| 680 | |
| 681 | nova: |
| 682 | compute: |
Michel Nederlof | e322ebb | 2017-07-10 12:29:21 +0200 | [diff] [blame] | 683 | workaround: |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 684 | disable_libvirt_livesnapshot: False |
| 685 | |
Michel Nederlof | b51a514 | 2017-06-27 08:31:35 +0200 | [diff] [blame] | 686 | Config drive options |
| 687 | -------------------- |
| 688 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 689 | See example below on how to configure the options for the |
| 690 | config drive: |
Michel Nederlof | b51a514 | 2017-06-27 08:31:35 +0200 | [diff] [blame] | 691 | |
| 692 | .. code-block:: yaml |
| 693 | |
| 694 | nova: |
| 695 | compute: |
| 696 | config_drive: |
| 697 | forced: True # Default: True |
| 698 | cdrom: True # Default: False |
| 699 | format: iso9660 # Default: vfat |
| 700 | inject_password: False # Default: False |
| 701 | |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 702 | Number of concurrent live migrates |
| 703 | ---------------------------------- |
| 704 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 705 | Default is to have no concurrent live migrations (so 1 |
| 706 | live-migration at a time). |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 707 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 708 | Excerpt from config options page |
| 709 | https://docs.openstack.org/ocata/config-reference/compute/config-options.html: |
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 | Maximum number of live migrations to run concurrently. This limit is |
| 712 | enforced to avoid outbound live migrations overwhelming the host/network |
| 713 | and causing failures. It is not recommended that you change this unless |
| 714 | 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] | 715 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 716 | Possible values: |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 717 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 718 | - 0 : treated as unlimited. |
| 719 | - Negative value defaults to 0. |
| 720 | - Any positive integer representing maximum number of live migrations |
| 721 | to run concurrently. |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 722 | |
| 723 | To configure this option: |
| 724 | |
| 725 | .. code-block:: yaml |
| 726 | |
| 727 | nova: |
| 728 | compute: |
| 729 | max_concurrent_live_migrations: 1 # (1 is the default) |
| 730 | |
Sergio Lystopad | 9d31cba | 2018-05-15 11:29:11 +0300 | [diff] [blame] | 731 | Live migration with auto converge |
| 732 | ---------------------------------- |
| 733 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 734 | Auto converge throttles down CPU if a progress of on-going live |
| 735 | migration is slow |
| 736 | https://docs.openstack.org/ocata/config-reference/compute/config-options.html: |
Sergio Lystopad | 9d31cba | 2018-05-15 11:29:11 +0300 | [diff] [blame] | 737 | |
| 738 | .. code-block:: yaml |
| 739 | |
| 740 | nova: |
| 741 | compute: |
| 742 | libvirt: |
| 743 | live_migration_permit_auto_converge: False # (False is the default) |
| 744 | |
| 745 | .. code-block:: yaml |
| 746 | |
| 747 | nova: |
| 748 | controller: |
| 749 | libvirt: |
| 750 | live_migration_permit_auto_converge: False # (False is the default) |
| 751 | |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 752 | Enhanced logging with logging.conf |
| 753 | ---------------------------------- |
| 754 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 755 | By default ``logging.conf`` is disabled. |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 756 | |
| 757 | That is possible to enable per-binary logging.conf with new variables: |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 758 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 759 | * ``openstack_log_appender`` |
| 760 | Set to true to enable log_config_append for all OpenStack services |
| 761 | |
| 762 | * ``openstack_fluentd_handler_enabled`` |
| 763 | Set to true to enable FluentHandler for all Openstack services |
| 764 | |
| 765 | * ``openstack_ossyslog_handler_enabled`` |
| 766 | Set to true to enable OSSysLogHandler for all Openstack services |
| 767 | |
| 768 | Only ``WatchedFileHandler``, ``OSSysLogHandler``, and ``FluentHandler`` |
| 769 | are available. |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 770 | |
Dmitry Kalashnik | 8da249c | 2018-01-16 17:58:00 +0400 | [diff] [blame] | 771 | Also it is possible to configure this with pillar: |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 772 | |
| 773 | .. code-block:: yaml |
| 774 | |
| 775 | nova: |
| 776 | controller: |
| 777 | logging: |
| 778 | log_appender: true |
| 779 | log_handlers: |
| 780 | watchedfile: |
| 781 | enabled: true |
| 782 | fluentd: |
| 783 | enabled: true |
Oleksii Chupryn | 99e3503 | 2018-02-06 01:59:40 +0200 | [diff] [blame] | 784 | ossyslog: |
| 785 | enabled: true |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 786 | |
| 787 | compute: |
| 788 | logging: |
| 789 | log_appender: true |
| 790 | log_handlers: |
| 791 | watchedfile: |
| 792 | enabled: true |
| 793 | fluentd: |
| 794 | enabled: true |
Oleksii Chupryn | 99e3503 | 2018-02-06 01:59:40 +0200 | [diff] [blame] | 795 | ossyslog: |
| 796 | enabled: true |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 797 | |
Vasyl Saienko | 7243a95 | 2018-05-11 21:26:54 +0300 | [diff] [blame] | 798 | The log level might be configured per logger by using the |
| 799 | following pillar structure: |
| 800 | |
| 801 | .. code-block:: yaml |
| 802 | |
| 803 | nova: |
| 804 | compute: |
| 805 | logging: |
| 806 | loggers: |
| 807 | <logger_name>: |
| 808 | level: WARNING |
| 809 | |
| 810 | nova: |
| 811 | compute: |
| 812 | logging: |
| 813 | loggers: |
| 814 | <logger_name>: |
| 815 | level: WARNING |
| 816 | |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 817 | Configure syslog parameters for libvirtd |
| 818 | ---------------------------------------- |
| 819 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 820 | To configure syslog parameters for libvirtd the below pillar |
| 821 | structure should be used with values which are supported |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 822 | by libvirtd. These values might be known from the documentation. |
| 823 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 824 | .. code-block:: yaml |
| 825 | |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 826 | nova: |
| 827 | compute: |
| 828 | libvirt: |
| 829 | logging: |
| 830 | level: 3 |
| 831 | filters: '3:remote 4:event' |
| 832 | outputs: '3:syslog:libvirtd' |
| 833 | buffer_size: 64 |
| 834 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 835 | Logging controls: |
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 | Logging level: 4 errors, 3 warnings, 2 information, 1 debug |
| 838 | basically 1 will log everything possible ``log_level = 3`` |
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 | Logging filters: |
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 | A filter allows to select a different logging level for a given category |
| 843 | of logs. |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 844 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 845 | The format for a filter is one of: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 846 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 847 | * ``x:name`` |
| 848 | * ``x:+name`` |
| 849 | where name is a string which is matched against source file name, |
| 850 | e.g., ``remote``, ``qemu``, or ``util/json``, the optional ``+`` prefix |
| 851 | tells libvirt to log stack trace for each message matching name, |
| 852 | and x is the minimal level where matching messages should be logged: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 853 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 854 | * ``1: DEBUG`` |
| 855 | * ``2: INFO`` |
| 856 | * ``3: WARNING`` |
| 857 | * ``4: ERROR`` |
| 858 | |
| 859 | Multiple filter can be defined in a single @filters, they just |
| 860 | need to be separated by spaces. |
| 861 | |
| 862 | For example, to only get warning or errors from the remote layer |
| 863 | and only errors from the event layer: ``log_filters="3:remote 4:event`` |
| 864 | |
| 865 | Logging outputs: |
| 866 | |
| 867 | An output is one of the places to save logging information |
| 868 | The format for an output can be: |
| 869 | |
| 870 | * ``x:stderr`` |
| 871 | Output goes to stderr |
| 872 | |
| 873 | * ``x:syslog:name`` |
| 874 | Use syslog for the output and use the given name as the ident |
| 875 | |
| 876 | * ``x:file:file_path`` |
| 877 | output to a file, with the given filepath |
| 878 | |
| 879 | In all case the x prefix is the minimal level, acting as a filter |
| 880 | |
| 881 | * ``1: DEBUG`` |
| 882 | * ``2: INFO`` |
| 883 | * ``3: WARNING`` |
| 884 | * ``4: ERROR`` |
| 885 | |
| 886 | Multiple output can be defined, they just need to be separated by spaces. |
| 887 | For example, to log all warnings and errors to syslog under the libvirt |
| 888 | dident: ``log_outputs="3:syslog:libvirtd`` |
| 889 | |
| 890 | Log debug buffer size: default 64 |
| 891 | The daemon keeps an internal debug log buffer which will be dumped |
| 892 | in case of crash or upon receiving a ``SIGUSR2`` signal. This setting |
| 893 | allows to override the default buffer size in kilobytes. |
| 894 | If value is ``0`` or less the debug log buffer is deactivated |
| 895 | ``log_buffer_size = 64`` |
| 896 | |
| 897 | To configure the logging parameters for QEMU, the below pillar |
| 898 | structure and logging parameters should be used: |
| 899 | |
| 900 | .. code-block:: yaml |
| 901 | |
| 902 | nova: |
| 903 | compute: |
| 904 | qemu: |
| 905 | logging: |
| 906 | handler: logd |
| 907 | virtlog: |
| 908 | enabled: true |
| 909 | level: 4 |
| 910 | filters: '3:remote 3:event' |
| 911 | outputs: '4:syslog:virtlogd' |
| 912 | max_clients: 512 |
| 913 | max_size: 2097100 |
| 914 | max_backups: 2 |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 915 | |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 916 | Inject password to VM |
| 917 | --------------------- |
| 918 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 919 | By default nova blocks up any inject to VM because |
| 920 | ``inject_partition`` param is equal to ``-2``. |
| 921 | If you want to inject password to VM, you will need to |
| 922 | define ``inject_partition`` greater or equal to ``-1`` and |
| 923 | define ``inject_password`` to ``True`` |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 924 | |
| 925 | For example: |
| 926 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 927 | .. code-block:: yaml |
| 928 | |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 929 | nova: |
| 930 | compute: |
| 931 | inject_partition: '-1' |
| 932 | inject_password: True |
| 933 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 934 | Allow the injection of an admin password for instance only at |
| 935 | ``create`` and ``rebuild`` process. |
| 936 | |
| 937 | There is no agent needed within the image to do this. If *libguestfs* is |
| 938 | available on the host, it will be used. Otherwise *nbd* is used. The file |
| 939 | system of the image will be mounted and the admin password, which is provided |
| 940 | in the REST API call will be injected as password for the root user. If no |
| 941 | root user is available, the instance won't be launched and an error is thrown. |
| 942 | Be aware that the injection is *not* possible when the instance gets launched |
| 943 | from a volume. |
| 944 | |
| 945 | Possible values: |
| 946 | |
| 947 | * ``True`` |
| 948 | Allows the injection |
| 949 | |
| 950 | * ``False`` (default) |
| 951 | Disallows the injection. Any via the REST API provided |
| 952 | admin password will be silently ignored. |
| 953 | |
| 954 | Related options: |
| 955 | |
| 956 | * ``inject_partition`` |
| 957 | Decides about the discovery and usage of the file system. |
| 958 | It also can disable the injection at all. |
| 959 | (boolean value) |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 960 | |
| 961 | You can read more about injecting the administrator password here: |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 962 | https://docs.openstack.org/nova/queens/admin/admin-password-injection.html |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 963 | |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 964 | Enable libvirt control channel over TLS |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 965 | --------------------------------------- |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 966 | |
| 967 | By default TLS is disabled. |
| 968 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 969 | Enable TLS transport: |
| 970 | |
| 971 | .. code-block:: yaml |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 972 | |
| 973 | compute: |
| 974 | libvirt: |
| 975 | tls: |
| 976 | enabled: True |
| 977 | |
| 978 | You able to set custom certificates in pillar: |
| 979 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 980 | .. code-block:: yaml |
| 981 | |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 982 | nova: |
| 983 | compute: |
| 984 | libvirt: |
| 985 | tls: |
| 986 | key: (certificate content) |
| 987 | cert: (certificate content) |
| 988 | cacert: (certificate content) |
| 989 | client: |
| 990 | key: (certificate content) |
| 991 | cert: (certificate content) |
| 992 | |
| 993 | You can read more about live migration over TLS here: |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 994 | https://wiki.libvirt.org/page/TLSCreateServerCerts |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 995 | |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 996 | Enable transport + authentication for VNC over TLS |
| 997 | --------------------- |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 998 | # Only for Queens. Communication between noVNC proxy service and QEMU |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 999 | |
| 1000 | By default communication between nova-novncproxy and qemu service is unsecure. |
| 1001 | |
| 1002 | compute: |
| 1003 | qemu: |
| 1004 | vnc: |
| 1005 | tls: |
| 1006 | enabled: True |
| 1007 | |
| 1008 | controller: |
| 1009 | novncproxy: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1010 | # This section responsible for communication between noVNC proxy and client machine |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1011 | tls: |
| 1012 | enabled: True |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1013 | # This section responsible for communication between nova-novncproxy and qemu service |
| 1014 | vencrypt: |
| 1015 | tls: |
| 1016 | enabled: True |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1017 | |
| 1018 | You able to set custom certificates in pillar: |
| 1019 | |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1020 | nova: |
| 1021 | compute: |
| 1022 | qemu: |
| 1023 | vnc: |
| 1024 | tls: |
| 1025 | cacert (certificate content) |
| 1026 | cert (certificate content) |
| 1027 | key (certificate content) |
| 1028 | |
| 1029 | nova: |
| 1030 | controller: |
| 1031 | novncproxy: |
| 1032 | tls: |
| 1033 | server: |
| 1034 | cert (certificate content) |
| 1035 | key (certificate content) |
| 1036 | vencrypt: |
| 1037 | tls: |
| 1038 | cacert (certificate content) |
| 1039 | cert (certificate content) |
| 1040 | key (certificate content) |
| 1041 | |
| 1042 | |
| 1043 | You can read more about it here: |
| 1044 | https://docs.openstack.org/nova/queens/admin/remote-console-access.html |
| 1045 | |
| 1046 | Enable communication between noVNC proxy and client machine over TLS |
| 1047 | --------------------- |
| 1048 | |
| 1049 | By default communication between noVNC proxy and client machine is unsecure. |
| 1050 | |
| 1051 | controller: |
| 1052 | novncproxy: |
| 1053 | tls: |
| 1054 | enabled: True |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1055 | |
| 1056 | nova: |
| 1057 | controller: |
| 1058 | novncproxy: |
| 1059 | tls: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1060 | server: |
| 1061 | cert (certificate content) |
| 1062 | key (certificate content) |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1063 | |
| 1064 | You can read more about it here: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1065 | https://docs.openstack.org/mitaka/config-reference/dashboard/configure.html |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1066 | |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1067 | Enable x509 and ssl communication between Nova and Galera cluster. |
| 1068 | --------------------- |
| 1069 | By default communication between Nova and Galera is unsecure. |
| 1070 | |
Oleksandr Shyshko | cbe8735 | 2018-09-07 13:42:57 +0300 | [diff] [blame] | 1071 | nova: |
| 1072 | controller: |
| 1073 | database: |
| 1074 | x509: |
| 1075 | enabled: True |
| 1076 | |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1077 | You able to set custom certificates in pillar: |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1078 | |
| 1079 | nova: |
| 1080 | controller: |
| 1081 | database: |
| 1082 | x509: |
Oleksandr Shyshko | cbe8735 | 2018-09-07 13:42:57 +0300 | [diff] [blame] | 1083 | cacert: (certificate content) |
| 1084 | cert: (certificate content) |
| 1085 | key: (certificate content) |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1086 | |
| 1087 | You can read more about it here: |
| 1088 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
| 1089 | |
Oleh Hryhorov | 63ee845 | 2018-08-14 09:16:02 +0000 | [diff] [blame] | 1090 | Upgrades |
| 1091 | ======== |
| 1092 | |
| 1093 | Each openstack formula provide set of phases (logical bloks) that will help to |
| 1094 | build flexible upgrade orchestration logic for particular components. The list |
| 1095 | of phases might and theirs descriptions are listed in table below: |
| 1096 | |
| 1097 | +-------------------------------+------------------------------------------------------+ |
| 1098 | | State | Description | |
| 1099 | +===============================+======================================================+ |
| 1100 | | <app>.upgrade.service_running | Ensure that all services for particular application | |
| 1101 | | | are enabled for autostart and running | |
| 1102 | +-------------------------------+------------------------------------------------------+ |
| 1103 | | <app>.upgrade.service_stopped | Ensure that all services for particular application | |
| 1104 | | | disabled for autostart and dead | |
| 1105 | +-------------------------------+------------------------------------------------------+ |
| 1106 | | <app>.upgrade.pkgs_latest | Ensure that packages used by particular application | |
| 1107 | | | are installed to latest available version. | |
| 1108 | | | This will not upgrade data plane packages like qemu | |
| 1109 | | | and openvswitch as usually minimal required version | |
| 1110 | | | in openstack services is really old. The data plane | |
| 1111 | | | packages should be upgraded separately by `apt-get | |
| 1112 | | | upgrade` or `apt-get dist-upgrade` | |
| 1113 | | | Applying this state will not autostart service. | |
| 1114 | +-------------------------------+------------------------------------------------------+ |
| 1115 | | <app>.upgrade.render_config | Ensure configuration is rendered actual version. + |
| 1116 | +-------------------------------+------------------------------------------------------+ |
| 1117 | | <app>.upgrade.pre | We assume this state is applied on all nodes in the | |
| 1118 | | | cloud before running upgrade. | |
| 1119 | | | Only non destructive actions will be applied during | |
| 1120 | | | this phase. Perform service built in service check | |
| 1121 | | | like (keystone-manage doctor and nova-status upgrade)| |
| 1122 | +-------------------------------+------------------------------------------------------+ |
| 1123 | | <app>.upgrade.upgrade.pre | Mostly applicable for data plane nodes. During this | |
| 1124 | | | phase resources will be gracefully removed from | |
| 1125 | | | current node if it is allowed. Services for upgraded | |
| 1126 | | | application will be set to admin disabled state to | |
| 1127 | | | make sure node will not participate in resources | |
| 1128 | | | scheduling. For example on gtw nodes this will set | |
| 1129 | | | all agents to admin disable state and will move all | |
| 1130 | | | routers to other agents. | |
| 1131 | +-------------------------------+------------------------------------------------------+ |
| 1132 | | <app>.upgrade.upgrade | This state will basically upgrade application on | |
| 1133 | | | particular target. Stop services, render | |
| 1134 | | | configuration, install new packages, run offline | |
| 1135 | | | dbsync (for ctl), start services. Data plane should | |
| 1136 | | | not be affected, only OpenStack python services. | |
| 1137 | +-------------------------------+------------------------------------------------------+ |
| 1138 | | <app>.upgrade.upgrade.post | Add services back to scheduling. | |
| 1139 | +-------------------------------+------------------------------------------------------+ |
| 1140 | | <app>.upgrade.post | This phase should be launched only when upgrade of | |
| 1141 | | | the cloud is completed. Cleanup temporary files, | |
| 1142 | | | perform other post upgrade tasks. | |
| 1143 | +-------------------------------+------------------------------------------------------+ |
| 1144 | | <app>.upgrade.verify | Here we will do basic health checks (API CRUD | |
| 1145 | | | operations, verify do not have dead network | |
| 1146 | | | agents/compute services) | |
| 1147 | +-------------------------------+------------------------------------------------------+ |
| 1148 | |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1149 | Documentation and Bugs |
| 1150 | ====================== |
| 1151 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1152 | * http://salt-formulas.readthedocs.io/ |
| 1153 | Learn how to install and update salt-formulas |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1154 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1155 | * https://github.com/salt-formulas/salt-formula-nova/issues |
| 1156 | In the unfortunate event that bugs are discovered, report the issue to the |
| 1157 | appropriate issue tracker. Use the Github issue tracker for a specific salt |
| 1158 | formula |
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 |
| 1161 | For feature requests, bug reports, or blueprints affecting the entire |
| 1162 | ecosystem, use the Launchpad salt-formulas project |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1163 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1164 | * https://launchpad.net/~salt-formulas-users |
| 1165 | 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] | 1166 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1167 | * https://github.com/salt-formulas/salt-formula-nova |
| 1168 | Develop the salt-formulas projects in the master branch and then submit pull |
| 1169 | requests against a specific formula |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 1170 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1171 | * #salt-formulas @ irc.freenode.net |
| 1172 | Use this IRC channel in case of any questions or feedback which is always |
| 1173 | welcome |