Bad path for GLANCE_BIN_DIR on stack.sh first run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Jakub Ružička |
Bug Description
On a newly installed Fedora 17 vm, running stack.sh fails on the first run with:
Configuring Glance
+ init_glance
+ rm -rf /opt/stack/
+ mkdir -p /opt/stack/
+ rm -rf /opt/stack/
+ mkdir -p /opt/stack/
+ mysql -uroot -p5e28dc3e00ed4
+ mysql -uroot -p5e28dc3e00ed4
+ /usr/local/
/home/terry/
due to GLANCE_BIN_DIR being set to /usr/local/bin since it is set before the source is cloned. Re-running stack.sh fixes the issue since GLANCE_DIR/bin exists at that point.
This problem also exists for all of the other services in lib/ that use the same check for [[ -d $SERVICE_DIR/bin ]] before setting their BIN dirs. There are several ways to fix this, but since I'm not very clear on what the "entry points" feature that this check is supposed to support, I'm not sure the best way to proceed.
Changed in devstack: | |
assignee: | nobody → Martin Magr (mmagr) |
Changed in devstack: | |
assignee: | Martin Magr (mmagr) → Jakub Ruzicka (jruzicka) |
I'm hitting this issue too - AFAICT, the only way this would ever work is if all the nova/glance/ keystone/ etc GIT repos were already checked out before the user ran stack.sh, but clearly that defeats the point of having stack.sh do it all. Looking at the code, I don't think this is likely to be Fedora 17 specific - I'd expect all distros to hit this.