From 5543c0d23c99965623dace5712d4667b2c3032f2 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 20 Aug 2012 12:28:50 -0400 Subject: Allow network to call get_fixed_ip_by_address. Updates the default Nova policy.json so that the network API can call get_fixed_ip_by_address. This was something we identified when c6be78deb6a3a7cbf092efdfb54f561ce689605f caused some regressions which prohibited the Nova metadata server from making this call. We have subsequently fixed the metadata server by correcting admin context access to this function.... however using an explicit policy rule (and not relying on the default) seems like a good idea as well. Partial fix for LP Bug #1039093. Change-Id: I88d0f5a4dc263bf66f316a4d26c734b6bc9dad21 --- etc/nova/policy.json | 1 + nova/tests/policy.json | 1 + 2 files changed, 2 insertions(+) diff --git a/etc/nova/policy.json b/etc/nova/policy.json index 838b1e5cd..8bc2f6f5f 100644 --- a/etc/nova/policy.json +++ b/etc/nova/policy.json @@ -95,6 +95,7 @@ "network:disassociate_floating_ip": [], "network:get_fixed_ip": [], + "network:get_fixed_ip_by_address": [], "network:add_fixed_ip_to_instance": [], "network:remove_fixed_ip_from_instance": [], "network:add_network_to_project": [], diff --git a/nova/tests/policy.json b/nova/tests/policy.json index 2eba732d7..61ec0152a 100644 --- a/nova/tests/policy.json +++ b/nova/tests/policy.json @@ -168,6 +168,7 @@ "network:disassociate_floating_ip": [], "network:get_fixed_ip": [], + "network:get_fixed_ip_by_address": [], "network:add_fixed_ip_to_instance": [], "network:remove_fixed_ip_from_instance": [], "network:add_network_to_project": [], -- cgit