Browse Source

Fix permission error on running periodic task

In Magnum devstack plugin, the 'sed' command didn't write to the Heat
policy file, which causes permission error.

Change-Id: I531b542ca3d4a78cb2ea1feb706bf0363c00984b
Closes-Bug: #1477800
changes/45/205345/1
Hongbin Lu 6 years ago
parent
commit
11398e175c
  1. 2
      devstack/lib/magnum

2
devstack/lib/magnum

@ -175,7 +175,7 @@ function create_magnum_conf {
function update_heat_policy {
# enable stacks globel_index search so that magnum can use
# list(global_tenant=True)
sed 's/\("stacks:global_index":\).*$/\1 "role:admin",/' $HEAT_CONF_DIR/policy.json
sed -i 's/\("stacks:global_index":\).*$/\1 "role:admin",/' $HEAT_CONF_DIR/policy.json
}
function create_magnum_conf_magnum_network {

Loading…
Cancel
Save