cyborg/devstack/plugin.sh
Yumeng Bao 7ee7de1ec9 Remove OPAE dependency in devstack
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
2020-06-15 19:56:36 +08:00

50 lines
1.6 KiB
Bash

#!/bin/bash
# plugin.sh - devstack plugin for cyborg
# devstack plugin contract defined at:
# https://docs.openstack.org/devstack/latest/plugins.html
echo_summary "cyborg devstack plugin.sh called: $1/$2"
source $DEST/cyborg/devstack/lib/cyborg
case $1 in
"stack")
case $2 in
"pre-install")
clone_cyborg_client
;;
"install")
echo_summary "Installing Cyborg"
install_cyborg
install_cyborg_client
;;
"post-config")
# stack/post-config - Called after the layer 0 and 2 services
# have been configured. All configuration files for enabled
# services should exist at this point.
echo_summary "Configuring Cyborg"
configure_cyborg
create_cyborg_accounts
;;
"extra")
# stack/extra - Called near the end after layer 1 and 2
# services have been started.
# Initialize cyborg
init_cyborg
# Start the cyborg API and cyborg taskmgr components
echo_summary "Starting Cyborg"
start_cyborg
;;
esac
;;
"unstack")
# unstack - Called by unstack.sh before other services are shut down.
stop_cyborg
;;
"clean")
# clean - Called by clean.sh before other services are cleaned, but after
# unstack.sh has been called.
cleanup_cyborg
;;
esac