summaryrefslogtreecommitdiff
path: root/nova/policies
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2021-01-14 11:42:43 +0000
committerStephen Finucane <stephenfin@redhat.com>2021-01-14 11:42:43 +0000
commit5e2c31ab78d73cd1ce1c8888c66fe0ba654a7591 (patch)
tree0f1a91bd77fc4734550b07f0aad6c32a3571f301 /nova/policies
parent982d459c6583b718c196c82364c569dae63f464e (diff)
downloadnova-5e2c31ab78d73cd1ce1c8888c66fe0ba654a7591.tar.gz
api: Add support for 'hostname' parameter
Add microversion 2.90, which allows allows users to configure the hostname that will be exposed via the nova metadata service when creating their instance. Change-Id: I95047c1689ac14fa73eba48e19dc438988b78aad Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/policies')
-rw-r--r--nova/policies/extended_server_attributes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/policies/extended_server_attributes.py b/nova/policies/extended_server_attributes.py
index 9a01285980..e159a750c6 100644
--- a/nova/policies/extended_server_attributes.py
+++ b/nova/policies/extended_server_attributes.py
@@ -42,6 +42,10 @@ This rule will control the visibility for a set of servers attributes:
Microvision 2.75 added the above attributes in the ``PUT /servers/{server_id}``
and ``POST /servers/{server_id}/action (rebuild)`` API responses which are
also controlled by this policy rule, like the ``GET /servers*`` APIs.
+
+Microversion 2.90 made the ``OS-EXT-SRV-ATTR:hostname`` attribute available to
+all users, so this policy has no effect on that field for microversions 2.90
+and greater.
""",
operations=[
{