nova/nova
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
..
CA Make tests use sha256 as openssl default digest algorithm 2015-02-09 10:06:04 -05:00
api Check flavor type before add tenant access 2015-07-24 15:36:29 +03:00
cells Merge "Switch to oslo.service library" 2015-07-22 04:50:24 +00:00
cert Update rpc version aliases for kilo 2015-04-21 13:57:56 +08:00
cloudpipe Move policy enforcement into REST API layer for v2.1 cloudpipe 2015-02-26 21:33:47 +08:00
cmd Switch to oslo.reports 2015-07-23 00:36:01 +03:00
compute Merge "Execute _poll_shelved_instances only if shelved_offload_time is > 0" 2015-07-23 19:38:54 +00:00
conductor Merge "Remove and deprecate conductor task_log methods" 2015-07-18 22:02:41 +00:00
console Fix noVNC console access for an IPv6 setup 2015-06-15 09:23:25 +00:00
consoleauth Update rpc version aliases for kilo 2015-04-21 13:57:56 +08:00
db Merge "Use utf8_bin collation on the flavor extra-specs table in MySQL" 2015-07-23 19:56:59 +00:00
hacking Merge "virt: convert VFS API to use nova.virt.image.model" 2015-06-11 13:49:32 +00:00
image Cleanup log lines in nova.image.glance 2015-07-23 01:05:23 +10:00
ipv6 Replace usage of LazyPluggable by stevedore driver 2015-02-17 14:49:48 +00:00
keymgr Switch to uuidutils from oslo_utils library 2015-02-25 20:05:49 -05:00
locale Imported Translations from Transifex 2015-06-22 06:10:05 +00:00
network Switch to oslo.service library 2015-07-11 02:54:42 +00:00
objects Add VersionPredicate type of field 2015-07-22 00:20:59 +02:00
objectstore Remove openstack/common/versionutils module 2015-06-15 20:40:16 +00:00
openstack Switch to oslo.reports 2015-07-23 00:36:01 +03:00
pci Merge "Cleanups for pci stats in preparation for RT using ComputeNode" 2015-06-03 03:02:57 +00:00
rdp Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
scheduler Merge "Remove unnecessary method in FilterScheduler" 2015-07-23 20:02:59 +00:00
servicegroup fix "down" nova-compute service spuriously marked as "up" 2015-06-10 13:18:06 -06:00
spice Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
storage Switch to oslo.service library 2015-07-11 02:54:42 +00:00
tests Check flavor type before add tenant access 2015-07-24 15:36:29 +03:00
virt Merge "libvirt: introduce method to wait for block device job" 2015-07-24 08:17:52 +00:00
vnc Register the vnc config options under group 'vnc' 2015-06-22 13:39:00 -04:00
volume volume: log which encryptor class is being used 2015-06-09 11:50:13 -07:00
wsgi Helper scripts for running under Apache2 2015-05-08 09:59:58 -04:00
__init__.py
availability_zones.py Enable python34 tests for nova/tests/unit/objects/test*.py 2015-07-01 20:29:42 +00:00
baserpc.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
block_device.py snapshot: Add device_name to the snapshot bdms 2015-07-02 13:45:36 +01:00
config.py Remove references to suds 2015-06-15 16:32:23 +03:00
context.py Stop spamming logs when creating context 2015-03-13 17:59:47 -04:00
crypto.py Port crypto to Python 3 2015-07-10 10:42:32 +02:00
debugger.py Use oslo.log 2015-02-22 07:56:40 -05:00
exception.py Revert "Add config drive support for Virtuozzo containers" 2015-07-23 00:15:56 +10:00
filters.py Remove use of builtin name 2015-05-28 16:23:49 -05:00
hooks.py Use oslo.log 2015-02-22 07:56:40 -05:00
i18n.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
loadables.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
manager.py Switch to oslo.service library 2015-07-11 02:54:42 +00:00
netconf.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
notifications.py Handle InstanceNotFound when sending instance update notification 2015-06-11 12:26:00 -07:00
opts.py Use oslo-config-generator instead of generate_sample.sh 2015-06-18 22:00:18 +00:00
paths.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
policy.py Add useful debug logging when policy checks fail 2015-02-23 16:44:04 -05:00
quota.py Fix Python 3 issues in nova.db.sqlalchemy 2015-06-30 07:06:54 -07:00
rpc.py Merge "Ensure publisher_id is set correctly in notifications" 2015-02-10 04:50:54 +00:00
safe_utils.py Avoid indexing into an empty list in getcallargs 2015-04-10 13:10:16 -04:00
service.py Switch to oslo.service library 2015-07-11 02:54:42 +00:00
test.py Fix Python 3 issues in nova.utils and nova.tests 2015-07-16 10:17:42 +02:00
utils.py Fix Python 3 issues in nova.utils and nova.tests 2015-07-16 10:17:42 +02:00
version.py Fix version unit test on Python 3 2015-05-25 13:33:59 +02:00
weights.py Skip only one host weight calculation 2015-05-05 11:40:09 +08:00
wsgi.py Switch to oslo.service library 2015-07-11 02:54:42 +00:00