From 1d7155cc0cf602eb00d6882ff21ee27b9fa40cf9 Mon Sep 17 00:00:00 2001 From: Dongcan Ye Date: Fri, 24 Jun 2016 10:59:05 +0800 Subject: [PATCH] Fix bug for Permission denied Permission denied for creating directory '/etc/neutron', here we use root privilege for creating the directory, then set the owner as STACK_USER. Change-Id: I2133d3f92dcec7e3187a6382ded233ac1f36fee7 Closes-Bug: #1595795 --- devstack/lib/dr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/dr b/devstack/lib/dr index 99264efc..0b9e83ec 100644 --- a/devstack/lib/dr +++ b/devstack/lib/dr @@ -38,7 +38,7 @@ function configure_dr_agent_bgp_driver { function dr_install { setup_develop $NEUTRON_DYNAMIC_ROUTING_DIR if is_service_enabled q-dr && is_service_enabled q-svc; then - mkdir -v -p $NEUTRON_CONF_DIR/policy.d + sudo install -d -o $STACK_USER $NEUTRON_CONF_DIR/policy.d cp -v $NEUTRON_DYNAMIC_ROUTING_DIR/etc/neutron/policy.d/dynamic_routing.conf $NEUTRON_CONF_DIR/policy.d if is_protocol_enabled BGP; then _neutron_service_plugin_class_add $BGP_PLUGIN