File: index.rst

package info (click to toggle)
nova 2%3A26.2.2-1~deb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 50,240 kB
  • sloc: python: 396,844; pascal: 1,799; sh: 936; makefile: 150; xml: 83
file content (137 lines) | stat: -rw-r--r-- 5,051 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
===================
Configuration Guide
===================

The static configuration for nova lives in two main files: ``nova.conf`` and
``policy.yaml``. These are described below. For a bigger picture view on
configuring nova to solve specific problems, refer to the :doc:`Nova Admin
Guide </admin/index>`.

Configuration
-------------

Nova, like most OpenStack projects, uses INI-style configuration files to
configure various services and utilities. This functionality is provided by the
`oslo.config`__ project. *oslo.config* supports loading configuration from both
individual configuration files and a directory of configuration files. By
default, nova will search the below directories for two config files -
``nova.conf`` and ``{prog}.conf``, where ``prog`` corresponds to the name of
the service or utility being configured such as :program:`nova-compute` - and
two config directories - ``nova.conf.d`` and ``{prog}.conf.d``:

- ``${HOME}/.nova``
- ``${HOME}``
- ``/etc/nova``
- ``/etc``
- ``${SNAP_COMMON}/etc/nova/``
- ``${SNAP}/etc/nova/``

Where a matching file is found, all other directories will be skipped.
This behavior can be overridden by using the ``--config-file`` and
``--config-dir`` options provided for each executable.

More information on how you can use the configuration options to configure
services and what configuration options are available can be found below.

* :doc:`Configuration Guide </admin/configuration/index>`: Detailed
  configuration guides for various parts of your Nova system. Helpful
  reference for setting up specific hypervisor backends.

* :doc:`Config Reference <config>`: A complete reference of all
  configuration options available in the ``nova.conf`` file.

.. only:: html

   * :doc:`Sample Config File <sample-config>`: A sample config
     file with inline documentation.

.. # NOTE(mriedem): This is the section where we hide things that we don't
   # actually want in the table of contents but sphinx build would fail if
   # they aren't in the toctree somewhere.
.. # NOTE(amotoki): toctree needs to be placed at the end of the secion to
   # keep the document structure in the PDF doc.
.. toctree::
   :hidden:

   config

.. # NOTE(amotoki): Sample files are only available in HTML document.
   # Inline sample files with literalinclude hit LaTeX processing error
   # like TeX capacity exceeded and direct links are discouraged in PDF doc.
.. only:: html

   .. toctree::
      :hidden:

      sample-config

.. __: https://docs.openstack.org/oslo.config/latest/

Policy
------

Nova, like most OpenStack projects, uses a policy language to restrict
permissions on REST API actions. This functionality is provided by the
`oslo.policy`__ project. *oslo.policy* supports loading policy configuration
from both an individual configuration file, which defaults to ``policy.yaml``,
and one or more directories of configuration files, which defaults to
``policy.d``. These must be located in the same directory as the ``nova.conf``
file(s). This behavior can be overridden by setting the
:oslo.config:option:`oslo_policy.policy_file` and
:oslo.config:option:`oslo_policy.policy_dirs` configuration options.

More information on how nova's policy configuration works and about what
policies are available can be found below.

* :doc:`Policy Concepts <policy-concepts>`: Starting in the Ussuri
  release, Nova API policy defines new default roles with system scope
  capabilities. These new changes improve the security level and
  manageability of Nova API as they are richer in terms of handling access at
  system and project level token with 'Read' and 'Write' roles.

* :doc:`Policy Reference <policy>`: A complete reference of all
  policy points in nova and what they impact.

.. only:: html

   * :doc:`Sample Policy File <sample-policy>`: A sample nova
     policy file with inline documentation.

.. # NOTE(mriedem): This is the section where we hide things that we don't
   # actually want in the table of contents but sphinx build would fail if
   # they aren't in the toctree somewhere.
.. # NOTE(amotoki): toctree needs to be placed at the end of the secion to
   # keep the document structure in the PDF doc.
.. toctree::
   :hidden:

   policy-concepts
   policy

.. # NOTE(amotoki): Sample files are only available in HTML document.
   # Inline sample files with literalinclude hit LaTeX processing error
   # like TeX capacity exceeded and direct links are discouraged in PDF doc.
.. only:: html

   .. toctree::
      :hidden:

      sample-policy

.. __: https://docs.openstack.org/oslo.policy/latest/

Extra Specs
-----------

Nova uses *flavor extra specs* as a way to provide additional information to
instances beyond basic information like amount of RAM or disk. This information
can range from hints for the scheduler to hypervisor-specific configuration
instructions for the instance.

* :doc:`Extra Spec Reference <extra-specs>`: A complete reference for all extra
  specs currently recognized and supported by nova.

.. toctree::
   :hidden:

   extra-specs