support installing clients at released versions
expand the devstack support for libraries from released versions to support python-* clients and tempest_lib. Depends-On: I81b0d228e7769758c61e5b0323ecfce8c8886d39 Change-Id: I26fac0ccf8fd4818e24618d56bf04b32306f88f6
This commit is contained in:
parent
2d18b83600
commit
5cb190697c
@ -11,7 +11,6 @@ if is_service_enabled trove; then
|
|||||||
cleanup_trove
|
cleanup_trove
|
||||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
echo_summary "Configuring Trove"
|
echo_summary "Configuring Trove"
|
||||||
configure_troveclient
|
|
||||||
configure_trove
|
configure_trove
|
||||||
|
|
||||||
if is_service_enabled key; then
|
if is_service_enabled key; then
|
||||||
|
@ -1621,6 +1621,7 @@ function use_library_from_git {
|
|||||||
return $enabled
|
return $enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# setup a library by name. If we are trying to use the library from
|
# setup a library by name. If we are trying to use the library from
|
||||||
# git, we'll do a git based install, otherwise we'll punt and the
|
# git, we'll do a git based install, otherwise we'll punt and the
|
||||||
# library should be installed by a requirements pull from another
|
# library should be installed by a requirements pull from another
|
||||||
|
@ -35,8 +35,9 @@ set +o xtrace
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["ceilometerclient"]=$DEST/python-ceilometerclient
|
||||||
|
|
||||||
CEILOMETER_DIR=$DEST/ceilometer
|
CEILOMETER_DIR=$DEST/ceilometer
|
||||||
CEILOMETERCLIENT_DIR=$DEST/python-ceilometerclient
|
|
||||||
CEILOMETER_CONF_DIR=/etc/ceilometer
|
CEILOMETER_CONF_DIR=/etc/ceilometer
|
||||||
CEILOMETER_CONF=$CEILOMETER_CONF_DIR/ceilometer.conf
|
CEILOMETER_CONF=$CEILOMETER_CONF_DIR/ceilometer.conf
|
||||||
CEILOMETER_API_LOG_DIR=/var/log/ceilometer-api
|
CEILOMETER_API_LOG_DIR=/var/log/ceilometer-api
|
||||||
@ -254,9 +255,11 @@ function install_ceilometer {
|
|||||||
|
|
||||||
# install_ceilometerclient() - Collect source and prepare
|
# install_ceilometerclient() - Collect source and prepare
|
||||||
function install_ceilometerclient {
|
function install_ceilometerclient {
|
||||||
git_clone $CEILOMETERCLIENT_REPO $CEILOMETERCLIENT_DIR $CEILOMETERCLIENT_BRANCH
|
if use_library_from_git "ceilometerclient"; then
|
||||||
setup_develop $CEILOMETERCLIENT_DIR
|
git_clone_by_name "ceilometerclient"
|
||||||
sudo install -D -m 0644 -o $STACK_USER {$CEILOMETERCLIENT_DIR/tools/,/etc/bash_completion.d/}ceilometer.bash_completion
|
setup_develop "ceilometerclient"
|
||||||
|
sudo install -D -m 0644 -o $STACK_USER {$CEILOMETERCLIENT_DIR/tools/,/etc/bash_completion.d/}ceilometer.bash_completion
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# start_ceilometer() - Start running processes, including screen
|
# start_ceilometer() - Start running processes, including screen
|
||||||
|
11
lib/cinder
11
lib/cinder
@ -36,8 +36,9 @@ if [[ -r $CINDER_PLUGINS/$CINDER_DRIVER ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# set up default directories
|
# set up default directories
|
||||||
|
GITDIR["cinderclient"]=$DEST/python-cinderclient
|
||||||
|
|
||||||
CINDER_DIR=$DEST/cinder
|
CINDER_DIR=$DEST/cinder
|
||||||
CINDERCLIENT_DIR=$DEST/python-cinderclient
|
|
||||||
CINDER_STATE_PATH=${CINDER_STATE_PATH:=$DATA_DIR/cinder}
|
CINDER_STATE_PATH=${CINDER_STATE_PATH:=$DATA_DIR/cinder}
|
||||||
CINDER_AUTH_CACHE_DIR=${CINDER_AUTH_CACHE_DIR:-/var/cache/cinder}
|
CINDER_AUTH_CACHE_DIR=${CINDER_AUTH_CACHE_DIR:-/var/cache/cinder}
|
||||||
|
|
||||||
@ -402,9 +403,11 @@ function install_cinder {
|
|||||||
|
|
||||||
# install_cinderclient() - Collect source and prepare
|
# install_cinderclient() - Collect source and prepare
|
||||||
function install_cinderclient {
|
function install_cinderclient {
|
||||||
git_clone $CINDERCLIENT_REPO $CINDERCLIENT_DIR $CINDERCLIENT_BRANCH
|
if use_library_from_git "cinderclient"; then
|
||||||
setup_develop $CINDERCLIENT_DIR
|
git_clone_by_name "cinderclient"
|
||||||
sudo install -D -m 0644 -o $STACK_USER {$CINDERCLIENT_DIR/tools/,/etc/bash_completion.d/}cinder.bash_completion
|
setup_develop "cinderclient"
|
||||||
|
sudo install -D -m 0644 -o $STACK_USER {$CINDERCLIENT_DIR/tools/,/etc/bash_completion.d/}cinder.bash_completion
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# apply config.d approach for cinder volumes directory
|
# apply config.d approach for cinder volumes directory
|
||||||
|
@ -27,9 +27,10 @@ set +o xtrace
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["glanceclient"]=$DEST/python-glanceclient
|
||||||
|
|
||||||
GLANCE_DIR=$DEST/glance
|
GLANCE_DIR=$DEST/glance
|
||||||
GLANCE_STORE_DIR=$DEST/glance_store
|
GLANCE_STORE_DIR=$DEST/glance_store
|
||||||
GLANCECLIENT_DIR=$DEST/python-glanceclient
|
|
||||||
GLANCE_CACHE_DIR=${GLANCE_CACHE_DIR:=$DATA_DIR/glance/cache}
|
GLANCE_CACHE_DIR=${GLANCE_CACHE_DIR:=$DATA_DIR/glance/cache}
|
||||||
GLANCE_IMAGE_DIR=${GLANCE_IMAGE_DIR:=$DATA_DIR/glance/images}
|
GLANCE_IMAGE_DIR=${GLANCE_IMAGE_DIR:=$DATA_DIR/glance/images}
|
||||||
GLANCE_AUTH_CACHE_DIR=${GLANCE_AUTH_CACHE_DIR:-/var/cache/glance}
|
GLANCE_AUTH_CACHE_DIR=${GLANCE_AUTH_CACHE_DIR:-/var/cache/glance}
|
||||||
@ -286,8 +287,10 @@ function init_glance {
|
|||||||
|
|
||||||
# install_glanceclient() - Collect source and prepare
|
# install_glanceclient() - Collect source and prepare
|
||||||
function install_glanceclient {
|
function install_glanceclient {
|
||||||
git_clone $GLANCECLIENT_REPO $GLANCECLIENT_DIR $GLANCECLIENT_BRANCH
|
if use_library_from_git "glanceclient"; then
|
||||||
setup_develop $GLANCECLIENT_DIR
|
git_clone_by_name "glanceclient"
|
||||||
|
setup_develop "glanceclient"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_glance() - Collect source and prepare
|
# install_glance() - Collect source and prepare
|
||||||
|
11
lib/heat
11
lib/heat
@ -29,8 +29,9 @@ set +o xtrace
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# set up default directories
|
# set up default directories
|
||||||
|
GITDIR["heatclient"]=$DEST/python-heatclient
|
||||||
|
|
||||||
HEAT_DIR=$DEST/heat
|
HEAT_DIR=$DEST/heat
|
||||||
HEATCLIENT_DIR=$DEST/python-heatclient
|
|
||||||
HEAT_CFNTOOLS_DIR=$DEST/heat-cfntools
|
HEAT_CFNTOOLS_DIR=$DEST/heat-cfntools
|
||||||
HEAT_TEMPLATES_REPO_DIR=$DEST/heat-templates
|
HEAT_TEMPLATES_REPO_DIR=$DEST/heat-templates
|
||||||
HEAT_AUTH_CACHE_DIR=${HEAT_AUTH_CACHE_DIR:-/var/cache/heat}
|
HEAT_AUTH_CACHE_DIR=${HEAT_AUTH_CACHE_DIR:-/var/cache/heat}
|
||||||
@ -183,9 +184,11 @@ function create_heat_cache_dir {
|
|||||||
|
|
||||||
# install_heatclient() - Collect source and prepare
|
# install_heatclient() - Collect source and prepare
|
||||||
function install_heatclient {
|
function install_heatclient {
|
||||||
git_clone $HEATCLIENT_REPO $HEATCLIENT_DIR $HEATCLIENT_BRANCH
|
if use_library_from_git "heatclient"; then
|
||||||
setup_develop $HEATCLIENT_DIR
|
git_clone_by_name "heatclient"
|
||||||
sudo install -D -m 0644 -o $STACK_USER {$HEATCLIENT_DIR/tools/,/etc/bash_completion.d/}heat.bash_completion
|
setup_develop "heatclient"
|
||||||
|
sudo install -D -m 0644 -o $STACK_USER {$HEATCLIENT_DIR/tools/,/etc/bash_completion.d/}heat.bash_completion
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_heat() - Collect source and prepare
|
# install_heat() - Collect source and prepare
|
||||||
|
14
lib/ironic
14
lib/ironic
@ -28,11 +28,12 @@ set +o pipefail
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["ironicclient"]=$DEST/python-ironicclient
|
||||||
|
|
||||||
IRONIC_DIR=$DEST/ironic
|
IRONIC_DIR=$DEST/ironic
|
||||||
IRONIC_PYTHON_AGENT_DIR=$DEST/ironic-python-agent
|
IRONIC_PYTHON_AGENT_DIR=$DEST/ironic-python-agent
|
||||||
IRONIC_DATA_DIR=$DATA_DIR/ironic
|
IRONIC_DATA_DIR=$DATA_DIR/ironic
|
||||||
IRONIC_STATE_PATH=/var/lib/ironic
|
IRONIC_STATE_PATH=/var/lib/ironic
|
||||||
IRONICCLIENT_DIR=$DEST/python-ironicclient
|
|
||||||
IRONIC_AUTH_CACHE_DIR=${IRONIC_AUTH_CACHE_DIR:-/var/cache/ironic}
|
IRONIC_AUTH_CACHE_DIR=${IRONIC_AUTH_CACHE_DIR:-/var/cache/ironic}
|
||||||
IRONIC_CONF_DIR=${IRONIC_CONF_DIR:-/etc/ironic}
|
IRONIC_CONF_DIR=${IRONIC_CONF_DIR:-/etc/ironic}
|
||||||
IRONIC_CONF_FILE=$IRONIC_CONF_DIR/ironic.conf
|
IRONIC_CONF_FILE=$IRONIC_CONF_DIR/ironic.conf
|
||||||
@ -150,9 +151,14 @@ function install_ironic {
|
|||||||
|
|
||||||
# install_ironicclient() - Collect sources and prepare
|
# install_ironicclient() - Collect sources and prepare
|
||||||
function install_ironicclient {
|
function install_ironicclient {
|
||||||
git_clone $IRONICCLIENT_REPO $IRONICCLIENT_DIR $IRONICCLIENT_BRANCH
|
if use_library_from_git "ironicclient"; then
|
||||||
setup_develop $IRONICCLIENT_DIR
|
git_clone_by_name "ironicclient"
|
||||||
sudo install -D -m 0644 -o $STACK_USER {$IRONICCLIENT_DIR/tools/,/etc/bash_completion.d/}ironic.bash_completion
|
setup_develop "ironicclient"
|
||||||
|
sudo install -D -m 0644 -o $STACK_USER {$IRONICCLIENT_DIR/tools/,/etc/bash_completion.d/}ironic.bash_completion
|
||||||
|
else
|
||||||
|
# nothing actually "requires" ironicclient, so force instally from pypi
|
||||||
|
pip_install python-ironicclient
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# _cleanup_ironic_apache_wsgi() - Remove wsgi files, disable and remove apache vhost file
|
# _cleanup_ironic_apache_wsgi() - Remove wsgi files, disable and remove apache vhost file
|
||||||
|
11
lib/keystone
11
lib/keystone
@ -33,6 +33,8 @@ set +o xtrace
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["keystoneclient"]=$DEST/python-keystoneclient
|
||||||
|
|
||||||
KEYSTONE_DIR=$DEST/keystone
|
KEYSTONE_DIR=$DEST/keystone
|
||||||
KEYSTONE_CONF_DIR=${KEYSTONE_CONF_DIR:-/etc/keystone}
|
KEYSTONE_CONF_DIR=${KEYSTONE_CONF_DIR:-/etc/keystone}
|
||||||
KEYSTONE_CONF=$KEYSTONE_CONF_DIR/keystone.conf
|
KEYSTONE_CONF=$KEYSTONE_CONF_DIR/keystone.conf
|
||||||
@ -45,7 +47,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
KEYSTONEMIDDLEWARE_DIR=$DEST/keystonemiddleware
|
KEYSTONEMIDDLEWARE_DIR=$DEST/keystonemiddleware
|
||||||
KEYSTONECLIENT_DIR=$DEST/python-keystoneclient
|
|
||||||
|
|
||||||
# Set up additional extensions, such as oauth1, federation
|
# Set up additional extensions, such as oauth1, federation
|
||||||
# Example of KEYSTONE_EXTENSIONS=oauth1,federation
|
# Example of KEYSTONE_EXTENSIONS=oauth1,federation
|
||||||
@ -479,9 +480,11 @@ function init_keystone {
|
|||||||
|
|
||||||
# install_keystoneclient() - Collect source and prepare
|
# install_keystoneclient() - Collect source and prepare
|
||||||
function install_keystoneclient {
|
function install_keystoneclient {
|
||||||
git_clone $KEYSTONECLIENT_REPO $KEYSTONECLIENT_DIR $KEYSTONECLIENT_BRANCH
|
if use_library_from_git "keystoneclient"; then
|
||||||
setup_develop $KEYSTONECLIENT_DIR
|
git_clone_by_name "keystoneclient"
|
||||||
sudo install -D -m 0644 -o $STACK_USER {$KEYSTONECLIENT_DIR/tools/,/etc/bash_completion.d/}keystone.bash_completion
|
setup_develop "keystoneclient"
|
||||||
|
sudo install -D -m 0644 -o $STACK_USER {$KEYSTONECLIENT_DIR/tools/,/etc/bash_completion.d/}keystone.bash_completion
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_keystonemiddleware() - Collect source and prepare
|
# install_keystonemiddleware() - Collect source and prepare
|
||||||
|
12
lib/neutron
12
lib/neutron
@ -77,8 +77,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["neutronclient"]=$DEST/python-neutronclient
|
||||||
|
|
||||||
|
|
||||||
NEUTRON_DIR=$DEST/neutron
|
NEUTRON_DIR=$DEST/neutron
|
||||||
NEUTRONCLIENT_DIR=$DEST/python-neutronclient
|
|
||||||
NEUTRON_AUTH_CACHE_DIR=${NEUTRON_AUTH_CACHE_DIR:-/var/cache/neutron}
|
NEUTRON_AUTH_CACHE_DIR=${NEUTRON_AUTH_CACHE_DIR:-/var/cache/neutron}
|
||||||
|
|
||||||
# Support entry points installation of console scripts
|
# Support entry points installation of console scripts
|
||||||
@ -601,9 +603,11 @@ function install_neutron {
|
|||||||
|
|
||||||
# install_neutronclient() - Collect source and prepare
|
# install_neutronclient() - Collect source and prepare
|
||||||
function install_neutronclient {
|
function install_neutronclient {
|
||||||
git_clone $NEUTRONCLIENT_REPO $NEUTRONCLIENT_DIR $NEUTRONCLIENT_BRANCH
|
if use_library_from_git "neutronclient"; then
|
||||||
setup_develop $NEUTRONCLIENT_DIR
|
git_clone_by_name "neutronclient"
|
||||||
sudo install -D -m 0644 -o $STACK_USER {$NEUTRONCLIENT_DIR/tools/,/etc/bash_completion.d/}neutron.bash_completion
|
setup_develop "neutronclient"
|
||||||
|
sudo install -D -m 0644 -o $STACK_USER {$NEUTRONCLIENT_DIR/tools/,/etc/bash_completion.d/}neutron.bash_completion
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_neutron_agent_packages() - Collect source and prepare
|
# install_neutron_agent_packages() - Collect source and prepare
|
||||||
|
12
lib/nova
12
lib/nova
@ -29,8 +29,10 @@ set +o xtrace
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["novaclient"]=$DEST/python-novaclient
|
||||||
|
|
||||||
|
|
||||||
NOVA_DIR=$DEST/nova
|
NOVA_DIR=$DEST/nova
|
||||||
NOVACLIENT_DIR=$DEST/python-novaclient
|
|
||||||
NOVA_STATE_PATH=${NOVA_STATE_PATH:=$DATA_DIR/nova}
|
NOVA_STATE_PATH=${NOVA_STATE_PATH:=$DATA_DIR/nova}
|
||||||
# INSTANCES_PATH is the previous name for this
|
# INSTANCES_PATH is the previous name for this
|
||||||
NOVA_INSTANCES_PATH=${NOVA_INSTANCES_PATH:=${INSTANCES_PATH:=$NOVA_STATE_PATH/instances}}
|
NOVA_INSTANCES_PATH=${NOVA_INSTANCES_PATH:=${INSTANCES_PATH:=$NOVA_STATE_PATH/instances}}
|
||||||
@ -637,9 +639,11 @@ function init_nova {
|
|||||||
|
|
||||||
# install_novaclient() - Collect source and prepare
|
# install_novaclient() - Collect source and prepare
|
||||||
function install_novaclient {
|
function install_novaclient {
|
||||||
git_clone $NOVACLIENT_REPO $NOVACLIENT_DIR $NOVACLIENT_BRANCH
|
if use_library_from_git "novaclient"; then
|
||||||
setup_develop $NOVACLIENT_DIR
|
git_clone_by_name "novaclient"
|
||||||
sudo install -D -m 0644 -o $STACK_USER {$NOVACLIENT_DIR/tools/,/etc/bash_completion.d/}nova.bash_completion
|
setup_develop "novaclient"
|
||||||
|
sudo install -D -m 0644 -o $STACK_USER {$NOVACLIENT_DIR/tools/,/etc/bash_completion.d/}nova.bash_completion
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_nova() - Collect source and prepare
|
# install_nova() - Collect source and prepare
|
||||||
|
10
lib/swift
10
lib/swift
@ -34,8 +34,10 @@ if is_ssl_enabled_service "s-proxy" || is_service_enabled tls-proxy; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["swiftclient"]=$DEST/python-swiftclient
|
||||||
|
|
||||||
|
|
||||||
SWIFT_DIR=$DEST/swift
|
SWIFT_DIR=$DEST/swift
|
||||||
SWIFTCLIENT_DIR=$DEST/python-swiftclient
|
|
||||||
SWIFT_AUTH_CACHE_DIR=${SWIFT_AUTH_CACHE_DIR:-/var/cache/swift}
|
SWIFT_AUTH_CACHE_DIR=${SWIFT_AUTH_CACHE_DIR:-/var/cache/swift}
|
||||||
SWIFT_APACHE_WSGI_DIR=${SWIFT_APACHE_WSGI_DIR:-/var/www/swift}
|
SWIFT_APACHE_WSGI_DIR=${SWIFT_APACHE_WSGI_DIR:-/var/www/swift}
|
||||||
SWIFT3_DIR=$DEST/swift3
|
SWIFT3_DIR=$DEST/swift3
|
||||||
@ -675,8 +677,10 @@ function install_swift {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function install_swiftclient {
|
function install_swiftclient {
|
||||||
git_clone $SWIFTCLIENT_REPO $SWIFTCLIENT_DIR $SWIFTCLIENT_BRANCH
|
if use_library_from_git "swiftclient"; then
|
||||||
setup_develop $SWIFTCLIENT_DIR
|
git_clone_by_name "swiftclient"
|
||||||
|
setup_develop "swiftclient"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# start_swift() - Start running processes, including screen
|
# start_swift() - Start running processes, including screen
|
||||||
|
@ -45,11 +45,12 @@ set +o xtrace
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Set up default directories
|
# Set up default directories
|
||||||
|
GITDIR["tempest_lib"]=$DEST/tempest-lib
|
||||||
|
|
||||||
TEMPEST_DIR=$DEST/tempest
|
TEMPEST_DIR=$DEST/tempest
|
||||||
TEMPEST_CONFIG_DIR=${TEMPEST_CONFIG_DIR:-$TEMPEST_DIR/etc}
|
TEMPEST_CONFIG_DIR=${TEMPEST_CONFIG_DIR:-$TEMPEST_DIR/etc}
|
||||||
TEMPEST_CONFIG=$TEMPEST_CONFIG_DIR/tempest.conf
|
TEMPEST_CONFIG=$TEMPEST_CONFIG_DIR/tempest.conf
|
||||||
TEMPEST_STATE_PATH=${TEMPEST_STATE_PATH:=$DATA_DIR/tempest}
|
TEMPEST_STATE_PATH=${TEMPEST_STATE_PATH:=$DATA_DIR/tempest}
|
||||||
TEMPEST_LIB_DIR=$DEST/tempest-lib
|
|
||||||
|
|
||||||
NOVA_SOURCE_DIR=$DEST/nova
|
NOVA_SOURCE_DIR=$DEST/nova
|
||||||
|
|
||||||
@ -441,8 +442,10 @@ function create_tempest_accounts {
|
|||||||
|
|
||||||
# install_tempest_lib() - Collect source, prepare, and install tempest-lib
|
# install_tempest_lib() - Collect source, prepare, and install tempest-lib
|
||||||
function install_tempest_lib {
|
function install_tempest_lib {
|
||||||
git_clone $TEMPEST_LIB_REPO $TEMPEST_LIB_DIR $TEMPEST_LIB_BRANCH
|
if use_library_from_git "tempest_lib"; then
|
||||||
setup_develop $TEMPEST_LIB_DIR
|
git_clone_by_name "tempest_lib"
|
||||||
|
setup_develop "tempest_lib"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_tempest() - Collect source and prepare
|
# install_tempest() - Collect source and prepare
|
||||||
|
12
lib/trove
12
lib/trove
@ -28,8 +28,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up default configuration
|
# Set up default configuration
|
||||||
|
GITDIR["troveclient"]=$DEST/python-troveclient
|
||||||
|
|
||||||
TROVE_DIR=$DEST/trove
|
TROVE_DIR=$DEST/trove
|
||||||
TROVECLIENT_DIR=$DEST/python-troveclient
|
|
||||||
TROVE_CONF_DIR=/etc/trove
|
TROVE_CONF_DIR=/etc/trove
|
||||||
TROVE_LOCAL_CONF_DIR=$TROVE_DIR/etc/trove
|
TROVE_LOCAL_CONF_DIR=$TROVE_DIR/etc/trove
|
||||||
TROVE_AUTH_CACHE_DIR=${TROVE_AUTH_CACHE_DIR:-/var/cache/trove}
|
TROVE_AUTH_CACHE_DIR=${TROVE_AUTH_CACHE_DIR:-/var/cache/trove}
|
||||||
@ -109,10 +110,6 @@ function cleanup_trove {
|
|||||||
rm -fr $TROVE_CONF_DIR/*
|
rm -fr $TROVE_CONF_DIR/*
|
||||||
}
|
}
|
||||||
|
|
||||||
# configure_troveclient() - Set config files, create data dirs, etc
|
|
||||||
function configure_troveclient {
|
|
||||||
setup_develop $TROVECLIENT_DIR
|
|
||||||
}
|
|
||||||
|
|
||||||
# configure_trove() - Set config files, create data dirs, etc
|
# configure_trove() - Set config files, create data dirs, etc
|
||||||
function configure_trove {
|
function configure_trove {
|
||||||
@ -184,7 +181,10 @@ function configure_trove {
|
|||||||
|
|
||||||
# install_troveclient() - Collect source and prepare
|
# install_troveclient() - Collect source and prepare
|
||||||
function install_troveclient {
|
function install_troveclient {
|
||||||
git_clone $TROVECLIENT_REPO $TROVECLIENT_DIR $TROVECLIENT_BRANCH
|
if use_library_from_git "troveclient"; then
|
||||||
|
git_clone_by_name "troveclient"
|
||||||
|
setup_develop "troveclient"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_trove() - Collect source and prepare
|
# install_trove() - Collect source and prepare
|
||||||
|
12
stack.sh
12
stack.sh
@ -585,7 +585,7 @@ if [[ -d $TOP_DIR/extras.d ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the destination directories for other OpenStack projects
|
# Set the destination directories for other OpenStack projects
|
||||||
OPENSTACKCLIENT_DIR=$DEST/python-openstackclient
|
GITDIR["openstackclient"]=$DEST/python-openstackclient
|
||||||
|
|
||||||
# Interactive Configuration
|
# Interactive Configuration
|
||||||
# -------------------------
|
# -------------------------
|
||||||
@ -788,8 +788,14 @@ fi
|
|||||||
# Install middleware
|
# Install middleware
|
||||||
install_keystonemiddleware
|
install_keystonemiddleware
|
||||||
|
|
||||||
git_clone $OPENSTACKCLIENT_REPO $OPENSTACKCLIENT_DIR $OPENSTACKCLIENT_BRANCH
|
# install the OpenStack client, needed for most setup commands
|
||||||
setup_develop $OPENSTACKCLIENT_DIR
|
if use_library_from_git "openstackclient"; then
|
||||||
|
git_clone_by_name "openstackclient"
|
||||||
|
setup_develop "openstackclient"
|
||||||
|
else
|
||||||
|
pip_install python-openstackclient
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if is_service_enabled key; then
|
if is_service_enabled key; then
|
||||||
if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then
|
if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then
|
||||||
|
48
stackrc
48
stackrc
@ -199,8 +199,8 @@ TEMPEST_REPO=${TEMPEST_REPO:-${GIT_BASE}/openstack/tempest.git}
|
|||||||
TEMPEST_BRANCH=${TEMPEST_BRANCH:-master}
|
TEMPEST_BRANCH=${TEMPEST_BRANCH:-master}
|
||||||
|
|
||||||
# TODO(sdague): this should end up as a library component like below
|
# TODO(sdague): this should end up as a library component like below
|
||||||
TEMPEST_LIB_REPO=${TEMPEST_LIB_REPO:-${GIT_BASE}/openstack/tempest-lib.git}
|
GITREPO["tempest_lib"]=${TEMPEST_LIB_REPO:-${GIT_BASE}/openstack/tempest-lib.git}
|
||||||
TEMPEST_LIB_BRANCH=${TEMPEST_LIB_BRANCH:-master}
|
GITBRANCH["tempest_lib"]=${TEMPEST_LIB_BRANCH:-master}
|
||||||
|
|
||||||
|
|
||||||
##############
|
##############
|
||||||
@ -210,48 +210,48 @@ TEMPEST_LIB_BRANCH=${TEMPEST_LIB_BRANCH:-master}
|
|||||||
##############
|
##############
|
||||||
|
|
||||||
# ceilometer client library
|
# ceilometer client library
|
||||||
CEILOMETERCLIENT_REPO=${CEILOMETERCLIENT_REPO:-${GIT_BASE}/openstack/python-ceilometerclient.git}
|
GITREPO["ceilometerclient"]=${CEILOMETERCLIENT_REPO:-${GIT_BASE}/openstack/python-ceilometerclient.git}
|
||||||
CEILOMETERCLIENT_BRANCH=${CEILOMETERCLIENT_BRANCH:-master}
|
GITBRANCH["ceilometerclient"]=${CEILOMETERCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# volume client
|
# volume client
|
||||||
CINDERCLIENT_REPO=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git}
|
GITREPO["cinderclient"]=${CINDERCLIENT_REPO:-${GIT_BASE}/openstack/python-cinderclient.git}
|
||||||
CINDERCLIENT_BRANCH=${CINDERCLIENT_BRANCH:-master}
|
GITBRACH["cinderclient"]=${CINDERCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# python glance client library
|
# python glance client library
|
||||||
GLANCECLIENT_REPO=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git}
|
GITREPO["glanceclient"]=${GLANCECLIENT_REPO:-${GIT_BASE}/openstack/python-glanceclient.git}
|
||||||
GLANCECLIENT_BRANCH=${GLANCECLIENT_BRANCH:-master}
|
GITBRANCH["glanceclient"]=${GLANCECLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# python heat client library
|
# python heat client library
|
||||||
HEATCLIENT_REPO=${HEATCLIENT_REPO:-${GIT_BASE}/openstack/python-heatclient.git}
|
GITREPO["heatclient"]=${HEATCLIENT_REPO:-${GIT_BASE}/openstack/python-heatclient.git}
|
||||||
HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master}
|
GITBRANCH["heatclient"]=${HEATCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# ironic client
|
# ironic client
|
||||||
IRONICCLIENT_REPO=${IRONICCLIENT_REPO:-${GIT_BASE}/openstack/python-ironicclient.git}
|
GITREPO["ironicclient"]=${IRONICCLIENT_REPO:-${GIT_BASE}/openstack/python-ironicclient.git}
|
||||||
IRONICCLIENT_BRANCH=${IRONICCLIENT_BRANCH:-master}
|
GITBRANCH["ironicclient"]=${IRONICCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# python keystone client library to nova that horizon uses
|
# python keystone client library to nova that horizon uses
|
||||||
KEYSTONECLIENT_REPO=${KEYSTONECLIENT_REPO:-${GIT_BASE}/openstack/python-keystoneclient.git}
|
GITREPO["keystoneclient"]=${KEYSTONECLIENT_REPO:-${GIT_BASE}/openstack/python-keystoneclient.git}
|
||||||
KEYSTONECLIENT_BRANCH=${KEYSTONECLIENT_BRANCH:-master}
|
GITBRANCH["keystoneclient"]=${KEYSTONECLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# neutron client
|
# neutron client
|
||||||
NEUTRONCLIENT_REPO=${NEUTRONCLIENT_REPO:-${GIT_BASE}/openstack/python-neutronclient.git}
|
GITREPO["neutronclient"]=${NEUTRONCLIENT_REPO:-${GIT_BASE}/openstack/python-neutronclient.git}
|
||||||
NEUTRONCLIENT_BRANCH=${NEUTRONCLIENT_BRANCH:-master}
|
GITBRANCH["neutronclient"]=${NEUTRONCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# python client library to nova that horizon (and others) use
|
# python client library to nova that horizon (and others) use
|
||||||
NOVACLIENT_REPO=${NOVACLIENT_REPO:-${GIT_BASE}/openstack/python-novaclient.git}
|
GITREPO["novaclient"]=${NOVACLIENT_REPO:-${GIT_BASE}/openstack/python-novaclient.git}
|
||||||
NOVACLIENT_BRANCH=${NOVACLIENT_BRANCH:-master}
|
GITBRANCH["novaclient"]=${NOVACLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# python swift client library
|
# python swift client library
|
||||||
SWIFTCLIENT_REPO=${SWIFTCLIENT_REPO:-${GIT_BASE}/openstack/python-swiftclient.git}
|
GITREPO["swiftclient"]=${SWIFTCLIENT_REPO:-${GIT_BASE}/openstack/python-swiftclient.git}
|
||||||
SWIFTCLIENT_BRANCH=${SWIFTCLIENT_BRANCH:-master}
|
GITBRANCH["swiftclient"]=${SWIFTCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# trove client library test
|
# trove client library test
|
||||||
TROVECLIENT_REPO=${TROVECLIENT_REPO:-${GIT_BASE}/openstack/python-troveclient.git}
|
GITREPO["troveclient"]=${TROVECLIENT_REPO:-${GIT_BASE}/openstack/python-troveclient.git}
|
||||||
TROVECLIENT_BRANCH=${TROVECLIENT_BRANCH:-master}
|
GITBRANCH["troveclient"]=${TROVECLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# consolidated openstack python client
|
# consolidated openstack python client
|
||||||
OPENSTACKCLIENT_REPO=${OPENSTACKCLIENT_REPO:-${GIT_BASE}/openstack/python-openstackclient.git}
|
GITREPO["openstackclient"]=${OPENSTACKCLIENT_REPO:-${GIT_BASE}/openstack/python-openstackclient.git}
|
||||||
OPENSTACKCLIENT_BRANCH=${OPENSTACKCLIENT_BRANCH:-master}
|
GITBRANCH["openstackclient"]=${OPENSTACKCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
###################
|
###################
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user