nova/nova/api/openstack/compute/plugins/v3
jichenjc 6abb88befe 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
793bcc07b9 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

Change-Id: I461175e9969a0dd5b2b7ef75ea7d9f36f3a306d0
2015-07-24 15:36:29 +03:00
..
__init__.py API extensions framework for v3 API 2013-05-13 10:31:22 +09:30
access_ips.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
admin_actions.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
admin_password.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
agents.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
aggregates.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
assisted_volume_snapshots.py Merge "Move policy enforcement into REST API layer for v2.1 api assisted_volume_snapshots" 2015-03-09 19:19:24 +00:00
attach_interfaces.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
availability_zone.py Merge "consoliate set_availability_zones usage" 2015-03-23 06:52:46 +00:00
baremetal_nodes.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
block_device_mapping.py Release bdm constraint source and dest type 2015-03-20 22:45:30 +08:00
block_device_mapping_v1.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
cells.py Merge "Remove cell policy check" 2015-06-12 04:53:11 +00:00
certificates.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
cloudpipe.py Move policy enforcement into REST API layer for v2.1 cloudpipe 2015-02-26 21:33:47 +08:00
config_drive.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
console_auth_tokens.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
console_output.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
consoles.py Add policy check for consoles 2015-03-20 03:45:45 +08:00
create_backup.py Raise exception when backup volume-backed instance 2015-03-28 07:53:40 +13:00
deferred_delete.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
disk_config.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
evacuate.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
extended_availability_zone.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
extended_server_attributes.py No need to create APIVersionRequest every time 2015-03-31 16:15:26 +00:00
extended_status.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
extended_volumes.py No need to create APIVersionRequest every time 2015-03-31 16:15:26 +00:00
extension_info.py Merge "Add policy check for extension_info" 2015-06-10 16:58:53 +00:00
fixed_ips.py Show 'reserved' status in os-fixed-ips 2015-05-15 10:38:47 -07:00
flavor_access.py Check flavor type before add tenant access 2015-07-24 15:36:29 +03:00
flavor_manage.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
flavor_rxtx.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
flavors.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
flavors_extraspecs.py Add common function for v2.1 API flavor_get. 2015-06-23 00:47:09 +00:00
floating_ip_dns.py Remove db layer hard-code permission checks for floating_ip_dns 2015-07-03 07:50:57 +00:00
floating_ip_pools.py Move policy enforcement into REST API layer for v2.1 floating_ip_pools 2015-02-20 06:06:17 +08:00
floating_ips.py Replace iter.next() with next(iter) 2015-05-13 11:17:05 +02:00
floating_ips_bulk.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
fping.py Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
hide_server_addresses.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
hosts.py Merge "Fix docstrings for assorted methods" 2015-06-15 13:05:24 +00:00
hypervisors.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
image_metadata.py Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
image_size.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
images.py Remove unused variables from images api 2015-06-02 14:08:48 +01:00
instance_actions.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
instance_usage_audit_log.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
ips.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
keypairs.py Adds cleanup on v2.2 keypair api and tests 2015-03-24 17:06:18 +02:00
limits.py Performance: leverage dict comprehension in PEP-0274 2015-01-16 10:06:13 +08:00
lock_server.py Move unlock_override policy enforcement into V2.1 REST API layer 2015-05-18 17:48:00 +08:00
migrate_server.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
migrations.py Add migration_type to Migration object 2015-05-14 18:46:10 -07:00
multinic.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
multiple_create.py Add API schema for v2.1/v3 multiple_create extension 2014-09-02 23:09:07 +09:00
networks.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
networks_associate.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
pause_server.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
pci.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
personality.py Implement 'personality' plugin for V2.1 2014-11-27 15:02:15 +09:00
preserve_ephemeral_rebuild.py Revert : Switch off oslo.* namespace check temporarily 2015-02-25 08:56:34 -05:00
quota_classes.py Remove db layer hard-code permission checks for quota_class_create/update 2015-07-14 20:50:08 +08:00
quota_sets.py Merge "Remove db layer hard-code permission checks for quota_get_all_*" 2015-06-16 10:46:33 +00:00
remote_consoles.py Consolidate the APIs for getting consoles 2015-07-03 11:03:36 +03:00
rescue.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
scheduler_hints.py Add API schema for v2.1/v3 scheduler_hints extension 2014-11-26 02:23:29 +00:00
security_group_default_rules.py Remove redundant policy check from security_group_default_rule 2015-06-18 22:43:13 +08:00
security_groups.py Merge "Move policy enforcement into REST API layer for v2.1 security groups" 2015-03-16 01:42:12 +00:00
server_diagnostics.py Add and use raise_feature_not_supported() 2015-06-08 03:06:44 +00:00
server_external_events.py Replace dict(obj.iteritems()) with dict(obj) 2015-05-21 08:35:37 -07:00
server_groups.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
server_metadata.py Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
server_password.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
server_usage.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
servers.py Merge "Add microversion to allow server search option ip6 for non-admin" 2015-06-26 23:58:33 +00:00
services.py Refactoring of the os-services module 2015-07-06 21:13:38 +02:00
shelve.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
simple_tenant_usage.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
suspend_server.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
tenant_networks.py Merge "Pass project_id when create networks by os-tenant-networks" 2015-06-22 17:18:06 +00:00
used_limits.py Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
user_data.py Remove v1.1 from v2.1 extension description 2015-02-05 07:44:38 +00:00
versions.py Cleanup v2.1 controller inheritance 2014-11-21 15:07:52 +10:30
virtual_interfaces.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
volumes.py Catch SnapshotNotFound exception at os-volumes 2015-05-12 08:13:02 +00:00