watcher devstack plugin doesn't work in unclean environment
Bug #1539422 reported by
Zhai, Edwin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher |
Fix Released
|
Low
|
Zhai, Edwin |
Bug Description
On system previously installing watcher manually, there is probably "Permission denied" error for policy.json copying when running devstack.
To post a comment you must log in.
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