Currently we allow tenant access for public flavor, however,
we can't query it after that because flavor is public.
This patch adds check for add access function to raise exception
if the flavor is public.
Also, a nit change is use methods introduced in
793bcc07b9ae41b3de2c146cf69117632c88e27b to get flavor.
APIImpact: Adds new 2.7 API microversion due to new error condition
in flavor access API
Implements blueprint check-flavor-type-before-add-tenant
Closes-Bug: #1361476
Reviewed: https:/ /review. openstack. org/124338 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6abb88befe2 914040e3307b0bc 5dfd13683db8b2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6abb88befe29140 40e3307b0bc5dfd 13683db8b2
Author: jichenjc <email address hidden>
Date: Sun Sep 21 03:16:32 2014 +0800
Check flavor type before add tenant access
Currently we allow tenant access for public flavor, however,
we can't query it after that because flavor is public.
This patch adds check for add access function to raise exception
if the flavor is public.
Also, a nit change is use methods introduced in e41b3de2c146cf6 9117632c88e27b to get flavor.
793bcc07b9a
APIImpact: Adds new 2.7 API microversion due to new error condition type-before- add-tenant
in flavor access API
Implements blueprint check-flavor-
Closes-Bug: #1361476
Change-Id: I461175e9969a0d d5b2b7ef75ea7d9 f36f3a306d0