fix nova accepting invalid availability zone name with ':'
Nova has a legacy hack to allow admins to specify hosts via an
availability zone using az:host:node. That means ':' cannot be
included in the name of an availability zone itself.
However, the aggregate API accepts requests which have
availability zone names including ':'.
This patch checks the availabilty zone name when aggregate is
created or updated and raises an error if it contains ':'.
Conflicts: api-ref/source/parameters.yaml
NOTE(mriedem): The conflict in the api-ref docs is due to not
having change f657efcdc59e6b80f5e96beb7f9fdc59d8aadbec in Pike.
Change-Id: I9b0d8e8d4b3ab2cb3d578c22fa259e0e7c0d325b
Closes-Bug: #1695861
(cherry picked from commit 38b25397e805dcf7a995666049713304fe4f1af1)
Reviewed: https:/ /review. openstack. org/509656 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a33634e5558 b20e4bd496fe476 f6ceb1a2ba79f6
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit a33634e5558b20e 4bd496fe476f6ce b1a2ba79f6
Author: Tetsuro Nakamura <email address hidden>
Date: Fri Aug 4 11:29:00 2017 +0900
fix nova accepting invalid availability zone name with ':'
Nova has a legacy hack to allow admins to specify hosts via an
availability zone using az:host:node. That means ':' cannot be
included in the name of an availability zone itself.
However, the aggregate API accepts requests which have
availability zone names including ':'.
This patch checks the availabilty zone name when aggregate is
created or updated and raises an error if it contains ':'.
Conflicts:
api- ref/source/ parameters. yaml
NOTE(mriedem): The conflict in the api-ref docs is due to not 0f5e96beb7f9fdc 59d8aadbec in Pike.
having change f657efcdc59e6b8
Change-Id: I9b0d8e8d4b3ab2 cb3d578c22fa259 e0e7c0d325b 7a9956660497133 04fe4f1af1)
Closes-Bug: #1695861
(cherry picked from commit 38b25397e805dcf