Add grenade upgrade hooks to stop agent

This adds grenade upgrade hooks so the agent can actually
be stopped during an upgrade.

This is necessary now that vpnaas runs in a devstack plugin
because its agent will now no longer be stopped by the neutron
plugin inside of grenade.

Change-Id: I5271f0ef4f857eb5650612829d352a821416487a
Partial-Bug: #1579235
(cherry picked from commit a65310b7bb)
This commit is contained in:
Kevin Benton 2016-05-06 16:43:34 -07:00
parent bede3a3577
commit 1d48dcd5cf
3 changed files with 47 additions and 0 deletions

14
devstack/upgrade/resources.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#

19
devstack/upgrade/shutdown.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# ``upgrade-neutron-vpnaas``
source $GRENADE_DIR/grenaderc
source $GRENADE_DIR/functions
set -o xtrace
neutron_vpnaas_stop

14
devstack/upgrade/upgrade.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#