refactor the install/configure split
configure remains just to generate configs, install now gets the setup_develop in addition to the git clone. This lets use remove configure_glanceclient as a function Change-Id: I68e3e3973d15dc0b4f534662a4f57a9f38f69784
This commit is contained in:
parent
fb71f7dea9
commit
e4f0cd7eed
@ -62,15 +62,8 @@ function cleanup_glance() {
|
||||
sudo rm -rf $GLANCE_CACHE_DIR $GLANCE_IMAGE_DIR $GLANCE_AUTH_CACHE_DIR
|
||||
}
|
||||
|
||||
# configure_glanceclient() - Set config files, create data dirs, etc
|
||||
function configure_glanceclient() {
|
||||
setup_develop $GLANCECLIENT_DIR
|
||||
}
|
||||
|
||||
# configure_glance() - Set config files, create data dirs, etc
|
||||
function configure_glance() {
|
||||
setup_develop $GLANCE_DIR
|
||||
|
||||
if [[ ! -d $GLANCE_CONF_DIR ]]; then
|
||||
sudo mkdir -p $GLANCE_CONF_DIR
|
||||
fi
|
||||
@ -180,11 +173,13 @@ function init_glance() {
|
||||
# install_glanceclient() - Collect source and prepare
|
||||
function install_glanceclient() {
|
||||
git_clone $GLANCECLIENT_REPO $GLANCECLIENT_DIR $GLANCECLIENT_BRANCH
|
||||
setup_develop $GLANCECLIENT_DIR
|
||||
}
|
||||
|
||||
# install_glance() - Collect source and prepare
|
||||
function install_glance() {
|
||||
git_clone $GLANCE_REPO $GLANCE_DIR $GLANCE_BRANCH
|
||||
setup_develop $GLANCE_DIR
|
||||
}
|
||||
|
||||
# start_glance() - Start running processes, including screen
|
||||
|
4
stack.sh
4
stack.sh
@ -647,10 +647,6 @@ if is_service_enabled g-api n-api; then
|
||||
configure_glance
|
||||
fi
|
||||
|
||||
# Do this _after_ glance is installed to override the old binary
|
||||
# TODO(dtroyer): figure out when this is no longer necessary
|
||||
configure_glanceclient
|
||||
|
||||
if is_service_enabled nova; then
|
||||
# First clean up old instances
|
||||
cleanup_nova
|
||||
|
Loading…
x
Reference in New Issue
Block a user