Skip to content

Commit ef76944

Browse files
author
Ghanshyam Mann
committed
[Trivial] Replace ref of policy.json to policy.yaml
policy file default and JSON format 'policy.json' is now deprecated. Let's replace all the ref and test start using the policy.yaml. Change-Id: I78a273576702fb95d831bd9b801b5774fb9fd19e
1 parent 4a8faa7 commit ef76944

19 files changed

+28
-28
lines changed

doc/source/admin/arch.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ For projects, you can use quota controls to limit the:
112112

113113
Roles control the actions a user is allowed to perform. By default, most
114114
actions do not require a particular role, but you can configure them by editing
115-
the ``policy.json`` file for user roles. For example, a rule can be defined so
115+
the ``policy.yaml`` file for user roles. For example, a rule can be defined so
116116
that a user must have the ``admin`` role in order to be able to allocate a
117117
public IP address.
118118

@@ -237,7 +237,7 @@ The displayed image attributes are:
237237
Virtual hardware templates are called ``flavors``. By default, these are
238238
configurable by admin users, however that behavior can be changed by redefining
239239
the access controls for ``compute_extension:flavormanage`` in
240-
``/etc/nova/policy.json`` on the ``compute-api`` server.
240+
``/etc/nova/policy.yaml`` on the ``compute-api`` server.
241241
For more information, refer to :doc:`/configuration/policy`.
242242

243243
For a list of flavors that are available on your system:

doc/source/admin/availability-zones.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ where an instance is launched. For example:
211211

212212
This is an admin-only operation by default, though you can modify this
213213
behavior using the ``os_compute_api:servers:create:forced_host`` rule in
214-
``policy.json``.
214+
``policy.yaml``.
215215

216216
However, as discussed `previously <Implications for moving servers>`_, when
217217
launching instances in this manner the scheduler filters are not run. For this
@@ -228,7 +228,7 @@ example:
228228

229229
This is an admin-only operation by default, though you can modify this
230230
behavior using the ``compute:servers:create:requested_destination`` rule in
231-
``policy.json``.
231+
``policy.yaml``.
232232

233233
This avoids the need to explicitly select an availability zone and ensures the
234234
scheduler filters are not bypassed.

doc/source/admin/configuration/hypervisor-hyper-v.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ on Hyper-V. Below is a sample ``nova.conf`` for Windows:
348348
use_cow_images = true
349349
force_config_drive = false
350350
injected_network_template = C:\Program Files (x86)\OpenStack\Nova\etc\interfaces.template
351-
policy_file = C:\Program Files (x86)\OpenStack\Nova\etc\policy.json
351+
policy_file = C:\Program Files (x86)\OpenStack\Nova\etc\policy.yaml
352352
mkisofs_cmd = C:\Program Files (x86)\OpenStack\Nova\bin\mkisofs.exe
353353
allow_resize_to_same_host = true
354354
running_deleted_instance_action = reap

doc/source/admin/flavors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ manage flavors. To see information for this command, run:
2121
Configuration rights can be delegated to additional users by redefining
2222
the access controls for ``os_compute_api:os-flavor-manage:create``,
2323
``os_compute_api:os-flavor-manage:update`` and
24-
``os_compute_api:os-flavor-manage:delete`` in ``/etc/nova/policy.json``
24+
``os_compute_api:os-flavor-manage:delete`` in ``/etc/nova/policy.yaml``
2525
on the ``nova-api`` server.
2626

2727
.. note::

doc/source/admin/migration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ To migrate an instance and watch the status, use this example script:
9494
.. note::
9595

9696
If you see the following error, it means you are either running the command
97-
with the wrong credentials, such as a non-admin user, or the ``policy.json``
97+
with the wrong credentials, such as a non-admin user, or the ``policy.yaml``
9898
file prevents migration for your user::
9999

100100
Policy doesn't allow os_compute_api:os-migrate-server:migrate to be performed. (HTTP 403)

doc/source/cli/nova-api-metadata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Files
2929

3030
* ``/etc/nova/nova.conf``
3131
* ``/etc/nova/api-paste.ini``
32-
* ``/etc/nova/policy.json``
32+
* ``/etc/nova/policy.yaml``
3333
* ``/etc/nova/rootwrap.conf``
3434
* ``/etc/nova/rootwrap.d/``
3535

doc/source/cli/nova-api-os-compute.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Files
2727

2828
* ``/etc/nova/nova.conf``
2929
* ``/etc/nova/api-paste.ini``
30-
* ``/etc/nova/policy.json``
30+
* ``/etc/nova/policy.yaml``
3131
* ``/etc/nova/rootwrap.conf``
3232
* ``/etc/nova/rootwrap.d/``
3333

doc/source/cli/nova-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Files
2727

2828
* ``/etc/nova/nova.conf``
2929
* ``/etc/nova/api-paste.ini``
30-
* ``/etc/nova/policy.json``
30+
* ``/etc/nova/policy.yaml``
3131
* ``/etc/nova/rootwrap.conf``
3232
* ``/etc/nova/rootwrap.d/``
3333

doc/source/cli/nova-compute.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Files
2828
=====
2929

3030
* ``/etc/nova/nova.conf``
31-
* ``/etc/nova/policy.json``
31+
* ``/etc/nova/policy.yaml``
3232
* ``/etc/nova/rootwrap.conf``
3333
* ``/etc/nova/rootwrap.d/``
3434

doc/source/cli/nova-novncproxy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Files
2727
=====
2828

2929
* ``/etc/nova/nova.conf``
30-
* ``/etc/nova/policy.json``
30+
* ``/etc/nova/policy.yaml``
3131
* ``/etc/nova/rootwrap.conf``
3232
* ``/etc/nova/rootwrap.d/``
3333

0 commit comments

Comments
 (0)