Commit Graph

16 Commits

Author SHA1 Message Date
Luigi Toscano 9c729d15fc Switch the grenade job to focal
Victoria only supports focal, so the upgrade from victoria
(starting from victoria+1) should use focal.

This patch should not be backported to victoria, because the
upgrades from ussuri still need to use bionic.

In order to make it work on focal:
- do not fail if ebtables does not contain the broute table
  (which happens when it is based on nft);
- when the swift loopback image is remounted on upgrade,
  do not use the nobarrier option, which was removed
  with the 4.19 kernel. See also the corresponding change
  in devstack: I6871a7765e3e04122d8d546f43d36bb8415383fc

Change-Id: If57c54828baf4e250ad08fdd95351490010e1b41
2021-03-12 15:13:48 +01:00
John L. Villalovos 88eab6757a Fix broken logic for detecting if executable exists
Code was checking if $(executable) was executable. But $(executable)
would run the executable and get the output from the executable. This
output was not the path to the executable.

Fix this and also use correct name for iptables-save (was iptable-save)

Change-Id: Ie2ccd405cd01acea7201a199b4c8c12922e46e4f
2016-11-12 09:29:14 -08:00
Mehdi Abaakouk b4caa4d0e6 Make all services optionals except keystone
Change-Id: I2cb3c75bdd738a8e19796456f0aed14237ef755e
2016-08-01 17:44:43 +02:00
Davanum Srinivas 2a213d4e64 Log RabbitMQ state in save-state
Conditionally save information about rabbitmq state after
the old side of grenade is run and before the new side of
grenade is started. We need this to diagnose upgrade issues
with RabbitMQ. For example Liberty's oslo.messaging uses
auto_delete for queues and that seems to close inconsistently
Hence Mitaka oslo.messaging has switched to using TTL in:
I83a8d09dc0cdae24c12d7043ec810529a9ce57ab

Related-Bug: #1545002
Change-Id: Ie651b06940e0126e262ac4cfc2d0bed3ad390940
2016-03-16 06:05:35 -04:00
Sean Dague 0c752781e8 reorder imports in stand alone scripts
$GRENADE_DIR/functions pulls in devstack functions, and needs
$GRENADE_DIR/grenaderc to be sourced first. Do this for all affected
scripts.

stop-base also needs the grenade.settings file as that handles all the
partial services.

reorder clean.sh to remove warnings

Change-Id: I5baa17783abe0c235691d88e484331c7960549f9
2015-04-09 14:26:53 -04:00
Chris Dent 819518d464 Extract database dumps to function
There was duplication between base and target dumps that is resolved
by use of arguments.

By extracting to function it becomes easier to make changes to how
database dumps are performed. The current setup is a bit hairy,
aggregating in a function makes it easier to improve later.

Change-Id: Ic5d4f13eaa7a4d842c9af0073de17e1cffad0a88
2014-08-29 14:09:43 +01:00
Adam Gandelman 376e301d48 Fix check-sanity + save-state /w disabled services
This adds a mapping for all process names described in BASE_SERVICES
and TARGET_SERVICES, allowing check-sanity to skip checking for running
processes of services that are disabled according to ENABLED_SERVICES.
It also updates grenade.sh and save-state to only dump databases that
exist.  These changes allow grenade to pass against deployments that
have disabled non-essential services in devstack.

Change-Id: Ic4b2bab88b12f33f939b9bf7aca47e930d799f3f
Closes-bug: #1355499
2014-08-27 12:59:55 -07:00
Chris Dent 4909db4800 Save base and target release state correctly
If there are both a neutron and neutron_ml2 database, saving state
would fail in both save-state and grenade.sh.

neutron databases were being saved to BASE not TARGET_RELEASE
in grenade.sh

ceilometer databases were not being saved in grenade.sh

Clean up some whitespace.

Change-Id: I638c6923af65ad612d1329c8c25f534bfdad2d02
Closes-bug: 1358332
2014-08-26 13:25:27 +01:00
Emilien Macchi 5f27424e59 Support Ceilometer services
This patch brings Ceilometer services into upgrade testing process.
For now we test only from Havana to Icehouse and from Icehouse to Juno.

Implements: blueprint grenade-upgrade-testing
Change-Id: I9cb61c5b312e197db80e537bff269b7777dddb31
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2014-06-02 20:46:53 +02:00
Jakub Libosvar 5c0ea0dc40 Support for upgrading neutron
With this patch grenade can be run either with nova-network or neutron.

Closes-bug: #1235149
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>

Change-Id: Ib35ee2b35155f3c7e86eef5c75f70da300fa99c7
2014-04-03 20:09:20 +02:00
Yaguang Tang 53d07fba3f Fix save state error, don't save swift Mysql db.
Change-Id: If19a63e332a5d6c6e661d06506ad2087c6248d5c
2013-05-17 12:43:32 +08:00
Dean Troyer 99b0e3142d Remove errant echo_summary calls
Fixes bug 1161545

Change-Id: Ic3979159bf76b87430c551b2e72323a3fe230cda
2013-05-01 15:36:38 -05:00
Dean Troyer 7a142b7ede Save ebtables/iptables state 2013-03-11 10:55:10 -05:00
Dean Troyer 67e2cf5fee Mova database save to save-state 2013-02-20 10:59:06 -06:00
Dean Troyer b3c390d0fa Rip out essex bits 2012-10-16 01:24:08 -05:00
Dean Troyer d57181b7cb grenade.sh changes
* Move screen setup to prep-trunk
* Add save-state script
2012-10-04 16:53:20 -05:00