nova/nova
Divya cbf606bdba view hypervisor details rest api should be allowed for non-admins
The current call to show hypervisor is broken and expects the
user to have admin privileges always.It does not allow non-
admin users to view hypervisor details. This should be
controlled based on the rule defined in the policy.json rather
than have the permissions mandated programmatically. This bug
is caused due to regression and was working earlier.So the
changes proposed here is merely retaining the older behavior.
To ensure that this works as before, the context passed to the
db api layer is elevated so that it passes the requires_admin_
context check that is present in the db layer.

Change-Id: I50437788aac72608998cf9c24d4d562b1ff20301
Closes-Bug: 1447084
(cherry picked from commit 6be11856c6)
2015-04-28 08:53:44 +02:00
..
CA Make tests use sha256 as openssl default digest algorithm 2015-02-09 10:06:04 -05:00
api view hypervisor details rest api should be allowed for non-admins 2015-04-28 08:53:44 +02:00
cells Fix how service objects are looked up for Cells 2015-04-09 13:06:06 +02:00
cert Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
cloudpipe Move policy enforcement into REST API layer for v2.1 cloudpipe 2015-02-26 21:33:47 +08:00
cmd Store cells credentials in transport_url properly 2015-03-31 00:00:20 +00:00
compute Merge "Fix kwargs['migration'] KeyError in @errors_out_migration decorator" into stable/kilo 2015-04-22 17:49:49 +00:00
conductor Remove vol_get_usage_by_time from conductor api/rpcapi 2015-03-20 13:29:09 -07:00
console websocketproxy: Make protocol validation use connection_info 2015-04-09 11:26:25 +01:00
consoleauth consoleauth: Store access_url on token authorization 2015-04-07 16:54:32 +01:00
db Merge "Make migration 274 idempotent so it can be backported" 2015-04-03 17:50:00 +00:00
hacking Add the last of the oslo libraries to hacking check 2015-03-30 23:58:26 +00:00
image Merge "Remove update_store usage" 2015-03-13 21:28:46 +00: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 Release Import of Translations from Transifex 2015-04-20 11:01:22 +02:00
network Honor uuid parameter passed to nova-network create 2015-04-09 18:15:23 +00:00
objects Fix handling of pci_requests in consume_from_instance. 2015-04-21 10:50:45 +01:00
objectstore Deprecate Nova in tree EC2 APIs 2015-03-12 17:48:06 -04:00
openstack Print choices in the config generator 2015-04-08 13:41:40 +00:00
pci Merge "Move ComputeNode creation at init stage in ResourceTracker" 2015-03-27 19:28:47 +00:00
rdp Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
scheduler Fix handling of pci_requests in consume_from_instance. 2015-04-21 10:50:45 +01:00
servicegroup Remove useless get_one() method in SG API 2015-03-11 23:30:23 +00:00
spice Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
storage Fix multipath device discovery when UFN is enabled. 2015-04-02 13:23:49 +01:00
tests view hypervisor details rest api should be allowed for non-admins 2015-04-28 08:53:44 +02:00
virt Merge "Forbid booting of QCOW2 images with virtual_size > root_gb" into stable/kilo 2015-04-21 11:17:10 +00:00
vnc Use oslo.log 2015-02-22 07:56:40 -05:00
volume Stop using exception.message 2015-03-17 10:30:26 +01:00
__init__.py
availability_zones.py Merge "consoliate set_availability_zones usage" 2015-03-23 06:52:46 +00:00
baserpc.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
block_device.py Release bdm constraint source and dest type 2015-04-15 19:55:17 +00:00
config.py Disable oslo_messaging debug logging 2015-03-19 11:23:05 -07:00
context.py Stop spamming logs when creating context 2015-03-13 17:59:47 -04:00
crypto.py Adds cleanup on v2.2 keypair api and tests 2015-03-24 17:06:18 +02:00
debugger.py Use oslo.log 2015-02-22 07:56:40 -05:00
exception.py libvirt: Add version check when pinning guest CPUs 2015-04-07 10:14:52 +01:00
filters.py Use oslo.log 2015-02-22 07:56:40 -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 Use oslo.log 2015-02-22 07:56:40 -05:00
netconf.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
notifications.py Be more forgiving to empty context in notification 2015-03-31 00:00:46 +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 Add some logging in the quota.reserve flow 2015-03-25 14:58:04 -07:00
rpc.py Merge "Ensure publisher_id is set correctly in notifications" 2015-02-10 04:50:54 +00:00
safe_utils.py
service.py Remove usage of db.service_get_by_args 2015-03-06 11:00:22 +00:00
test.py Skip 'id' attribute to be explicitly deleted in TestCase 2015-03-23 15:22:15 +09:00
utils.py Merge "Truncate encoded instance sys meta to 255 or less" 2015-03-12 02:15:05 +00:00
version.py Merge "remove duplicate calls to cfg.get()" 2015-03-18 19:13:55 +00:00
weights.py
wsgi.py create noauth2 2015-03-04 08:09:01 -05:00