From dbaf649e0c3992f9ab6495ad2f8f55a0a97cd3ca Mon Sep 17 00:00:00 2001 From: Logan V Date: Fri, 14 Jun 2019 19:36:07 -0500 Subject: [PATCH] Fix policy configuration Since cinder moved to policy-in-code, oslopolicy-policy-generator must be used to compile a policy file that can be distributed to Horizon for policy settings. For cinder, it will only output its default policy unless cinder.conf contains an oslo_policy configuration section pointing to the policy config file. Change-Id: I66a76fdb30ae6afd8a8faf4119bef495600aec50 --- templates/cinder.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/cinder.conf.j2 b/templates/cinder.conf.j2 index f281e9b0..eb341d8c 100644 --- a/templates/cinder.conf.j2 +++ b/templates/cinder.conf.j2 @@ -162,3 +162,7 @@ memcache_secret_key = {{ memcached_encryption_key }} [nova] interface = internal insecure = {{ keystone_service_internaluri_insecure | bool }} + +[oslo_policy] +policy_file = /etc/cinder/policy.json +