7ee7de1ec9
This patch removes OPAE driver package from cyborg-agent dependencies due to the following reasons: 1. In the kolla cyborg-agent image we install OPAE, but OPAE is not available for CentOS 8 for the moment. This will make the cyborg-agent image unbuildable in Ussuri[0]. 2. In devstack, due to the fact that OPAE packages depend on libjson0, which is not available after Ubuntu 16.04, so cyborg can't be installed on Ubuntu higher than 16.04 now(unless disable dependency manually). Moreover,from cyborg's perspective, it does not need to contain any hardware driver dependency, we can assume the admin should know about it and install the correct version. 3. We had an agreement at Victoria PTG that we should remove.[1] [0]http://lists.openstack.org/pipermail/openstack-discuss/2020-June/015428.html [1]https://etherpad.opendev.org/p/cyborg-victoria-goals L261 Change-Id: If0c92ea6ed98f195f5645ae0260855ed50f4f2a8 Story: 2007810 Task: 40078
47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
enable_service cyborg cyborg-api cyborg-cond cyborg-agent
|
|
|
|
# cyborg setting
|
|
# Defaults
|
|
# --------
|
|
# Set up default directories
|
|
# then name of the directory where cyborg is cloned is set by the first
|
|
# argument to enable_plugin so we should not assume it will be cyborg
|
|
CYBORG_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )
|
|
CYBORG_DEVSTACK_DIR=$CYBORG_DIR/devstack
|
|
CYBORG_DEVSTACK_FILES_DIR=$CYBORG_DEVSTACK_DIR/files
|
|
CYBORG_DATA_DIR=$DATA_DIR/cyborg
|
|
CYBORG_STATE_PATH=/var/lib/cyborg
|
|
CYBORG_AUTH_CACHE_DIR=${CYBORG_AUTH_CACHE_DIR:-/var/cache/cyborg}
|
|
CYBORG_CONF_DIR=${CYBORG_CONF_DIR:-/etc/cyborg}
|
|
CYBORG_CONF_FILE=$CYBORG_CONF_DIR/cyborg.conf
|
|
CYBORG_API_PASTE_INI=$CYBORG_CONF_DIR/api-paste.ini
|
|
CYBORG_POLICY_JSON=$CYBORG_CONF_DIR/policy.json
|
|
CYBORG_SERVICE_HOST=${CYBORG_SERVICE_HOST:-$SERVICE_HOST}
|
|
CYBORG_SERVICE_PORT=${CYBORG_SERVICE_PORT:-6666}
|
|
CYBORG_SERVICE_PROTOCOL=${CYBORG_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
|
|
CYBORG_ENABLED_DRIVERS=${CYBORG_ENABLED_DRIVERS:-fake_driver}
|
|
|
|
if [[ -d ${CYBORG_DIR}/bin ]]; then
|
|
CYBORG_BIN_DIR=${CYBORG_DIR}/bin
|
|
else
|
|
CYBORG_BIN_DIR=$(get_python_exec_prefix)
|
|
fi
|
|
|
|
# Toggle for deploying Cyborg-API under a wsgi server
|
|
CYBORG_USE_UWSGI=${CYBORG_USE_UWSGI:-True}
|
|
|
|
CYBORG_UWSGI=$CYBORG_BIN_DIR/cyborg-wsgi-api
|
|
CYBORG_UWSGI_CONF=$CYBORG_CONF_DIR/cyborg-api-uwsgi.ini
|
|
|
|
if [[ "$CYBORG_USE_UWSGI" == "True" ]]; then
|
|
CYBORG_API_URL="$CYBORG_SERVICE_PROTOCOL://$CYBORG_SERVICE_HOST/accelerator"
|
|
else
|
|
CYBORG_API_URL="$CYBORG_SERVICE_PROTOCOL://$CYBORG_SERVICE_HOST:$CYBORG_SERVICE_PORT"
|
|
fi
|
|
|
|
# client settings
|
|
CYBORG_CLIENT_INSTALL=$(trueorfalse True CYBORG_CLIENT_INSTALL)
|
|
CYBORG_CLIENT_REPO=${CYBORG_CLIENT_REPO:-"$GIT_BASE/openstack/python-cyborgclient"}
|
|
CYBORG_CLIENT_BRANCH=${CYBORG_CLIENT_BRANCH:-master}
|
|
CYBORG_CLIENT_DIR="${DEST}/python-cyborgclient"
|