Debian Codegraph @

devstack/plugin.sh

raw symbols SCIP
1 # plugin.sh - devstack plugin for cyborg
2
3 # devstack plugin contract defined at:
4 # https://docs.openstack.org/devstack/latest/plugins.html
5
6 echo_summary "cyborg devstack plugin.sh called: $1/$2"
7 source $DEST/cyborg/devstack/lib/cyborg
8
9 case $1 in
10 "stack")
11 case $2 in
12 "pre-install")
13 clone_cyborg_client
14 ;;
15 "install")
16 echo_summary "Installing Cyborg"
17 install_cyborg
18 install_cyborg_client
19 ;;
20 "post-config")
21 # stack/post-config - Called after the layer 0 and 2 services
22 # have been configured. All configuration files for enabled
23 # services should exist at this point.
24 echo_summary "Configuring Cyborg"
25 configure_cyborg
26 create_cyborg_accounts
27 ;;
28 "extra")
29 # stack/extra - Called near the end after layer 1 and 2
30 # services have been started.
31 # Initialize cyborg
32 init_cyborg
33 # Start the cyborg API and cyborg taskmgr components
34 echo_summary "Starting Cyborg"
35 start_cyborg
36 ;;
37 "test-config")
38 # stack/test-config - Called at the end of devstack used to configure tempest
39 # or any other test environments
40 if is_service_enabled tempest; then
41 echo_summary "Configuring Tempest for Cyborg needs"
42 cyborg_configure_tempest
43 fi
44 ;;
45 esac
46 ;;
47 "unstack")
48 # unstack - Called by unstack.sh before other services are shut down.
49 stop_cyborg
50 ;;
51 "clean")
52 # clean - Called by clean.sh before other services are cleaned, but after
53 # unstack.sh has been called.
54 cleanup_cyborg
55 ;;
56 esac