The issue is current devstack plugin doesn't handle directory creation in clean way.
if [[ ! -d $WATCHER_CONF_DIR ]]; then sudo mkdir -p $WATCHER_CONF_DIR sudo chown $STACK_USER $WATCHER_CONF_DIR fi
If WATCHER_CONF_DIR existed with root owner, this code doesn't change it to the right ownership. Then copying policy.json failed.
So need use "sudo install -d ..." as clean way of making directory
The issue is current devstack plugin doesn't handle directory creation in clean way.
if [[ ! -d $WATCHER_CONF_DIR ]]; then
sudo mkdir -p $WATCHER_CONF_DIR
sudo chown $STACK_USER $WATCHER_CONF_DIR
fi
If WATCHER_CONF_DIR existed with root owner, this code doesn't change it to the right ownership. Then copying policy.json failed.
So need use "sudo install -d ..." as clean way of making directory