nova/nova/api/openstack/compute/contrib
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
..
__init__.py Use oslo.log 2015-02-22 07:56:40 -05:00
admin_actions.py Raise exception when backup volume-backed instance 2015-03-28 07:53:40 +13:00
agents.py Remove db layer hard-code permission checks for v2.1 agents 2015-02-25 13:50:34 +08:00
aggregates.py Deduplicate some INFO and AUDIT level messages 2014-11-13 15:25:40 +11:00
assisted_volume_snapshots.py Use oslo.log 2015-02-22 07:56:40 -05:00
attach_interfaces.py Improve 'attach interface' exception handling 2015-03-12 11:50:49 +08:00
availability_zone.py Merge "consoliate set_availability_zones usage" 2015-03-23 06:52:46 +00:00
baremetal_ext_status.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
baremetal_nodes.py Merge "Handle 404 in os-baremetal-nodes GET" 2015-02-26 11:31:41 +00:00
block_device_mapping_v2_boot.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
cell_capacities.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
cells.py Api: remove unusefull compute api from cells 2015-03-02 18:07:46 +08:00
certificates.py Nuke XML support from Nova REST API - Phase 2 2015-01-06 12:03:54 +00:00
cloudpipe.py Switch nova.api.* to use instance dot notation 2015-02-17 22:09:48 -05:00
cloudpipe_update.py Remove use of unicode on exceptions 2014-10-22 18:05:48 +00:00
config_drive.py Nuke XML support from Nova REST API - Phase 3 2015-01-06 12:59:52 -05:00
console_auth_tokens.py Performance: leverage dict comprehension in PEP-0274 2015-01-16 10:06:13 +08:00
console_output.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
consoles.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
createserverext.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01: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 Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05: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 Switch nova.api.* to use instance dot notation 2015-02-17 22:09:48 -05:00
extended_evacuate_find_host.py Add APIv2 support to make host optional on evacuate 2014-07-21 10:58:54 -03:00
extended_floating_ips.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
extended_hypervisors.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
extended_ips.py Enable W292 2015-01-10 21:45:08 +00:00
extended_ips_mac.py Enable W292 2015-01-10 21:45:08 +00:00
extended_networks.py Add api extension for new network fields. 2014-08-19 11:21:23 -07:00
extended_quotas.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
extended_rescue_with_image.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
extended_server_attributes.py Switch nova.api.* to use instance dot notation 2015-02-17 22:09:48 -05:00
extended_services.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
extended_services_delete.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
extended_status.py Enable W292 2015-01-10 21:45:08 +00:00
extended_virtual_interfaces_net.py Nuke XML support from Nova REST API - Phase 3 2015-01-06 12:59:52 -05:00
extended_volumes.py Remove unused class variables in extended_volumes 2015-03-23 08:00:03 +08:00
fixed_ips.py Fix wrong exception return in fixed_ips v2 extention 2014-10-09 12:28:12 +08:00
flavor_access.py Remove db layer hard-code permission checks for flavor_access 2015-03-07 18:50:01 +08:00
flavor_disabled.py Enable W292 2015-01-10 21:45:08 +00:00
flavor_rxtx.py Enable W292 2015-01-10 21:45:08 +00:00
flavor_swap.py Enable W292 2015-01-10 21:45:08 +00:00
flavorextradata.py Enable W292 2015-01-10 21:45:08 +00:00
flavorextraspecs.py Add catch FlavorExtraSpecsNotFound in V2 API. 2015-02-21 20:29:24 +08:00
flavormanage.py Control create/delete flavor api permissions using policy.json 2015-04-22 13:12:37 -07:00
floating_ip_dns.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
floating_ip_pools.py Nuke XML support from Nova REST API - Phase 2 2015-01-06 12:03:54 +00:00
floating_ips.py Merge "Remove want_objects kwarg from nova.api.openstack.common.get_instance" 2015-03-06 04:20:14 +00:00
floating_ips_bulk.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
fping.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
hide_server_addresses.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
hosts.py Remove db layer hard-code permission checks for service_get_all 2015-03-18 23:21:24 +08:00
hypervisor_status.py Return status for compute node 2014-07-22 10:44:05 -07:00
hypervisors.py view hypervisor details rest api should be allowed for non-admins 2015-04-28 08:53:44 +02:00
image_size.py Nuke XML support from Nova REST API - Phase 3 2015-01-06 12:59:52 -05:00
instance_actions.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
instance_usage_audit_log.py Remove db layer hard-code permission checks for task_log_get* 2015-03-02 19:54:40 +08:00
keypairs.py Adds keypair type in nova-api 2015-03-04 22:16:37 +00:00
migrations.py Remove db layer hard-code permission checks for migrations_get* 2015-03-06 14:29:08 +08: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 Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
networks_associate.py Remove unnecessary debug/info logs of normal API ops 2014-10-09 03:25:06 +00:00
os_networks.py Make neutronapi get networks operations return objects 2014-11-21 12:21:28 -08:00
os_tenant_networks.py Use oslo.log 2015-02-22 07:56:40 -05:00
preserve_ephemeral_rebuild.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
quota_classes.py Nuke XML support from Nova REST API - Phase 2 2015-01-06 12:03:54 +00:00
quotas.py Verify all quotas before updating the db 2015-03-13 12:01:01 -04: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 Use oslo.i18n 2014-07-18 14:28:09 -04:00
security_group_default_rules.py Nuke XML support from Nova REST API - Phase 3 2015-01-06 12:59:52 -05:00
security_groups.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
server_diagnostics.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
server_external_events.py Use oslo.log 2015-02-22 07:56:40 -05:00
server_group_quotas.py Nuke XML support from Nova REST API - Phase 3 2015-01-06 12:59:52 -05:00
server_groups.py Fix several cases of passing context to quota-related remotable methods 2015-03-09 11:22:12 -07:00
server_list_multi_status.py servers list API support specify multi-status 2014-07-23 00:24:15 +08:00
server_password.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
server_sort_keys.py GET servers API sorting REST API updates 2014-12-01 02:47:02 +00:00
server_start_stop.py Catch InstanceInvalidState for start/stop action 2014-12-31 20:26:58 +00:00
server_usage.py Use oslo.log 2015-02-22 07:56:40 -05:00
services.py Remove db layer hard-code permission checks for service_get_all 2015-03-18 23:21:24 +08: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 Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
used_limits.py Nuke XML support from Nova REST API - Phase 3 2015-01-06 12:59:52 -05:00
used_limits_for_admin.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
user_data.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
user_quotas.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
virtual_interfaces.py Remove want_objects kwarg from nova.api.openstack.common.get_instance 2015-03-03 06:44:20 -08:00
volume_attachment_update.py Normalize API extension updated timestamp format 2014-04-29 14:50:33 +01:00
volumes.py Merge "Remove want_objects kwarg from nova.api.openstack.common.get_instance" 2015-03-06 04:20:14 +00:00