kolla-ansible/ansible/roles
Mark Goddard b25c0ee477 Fix MariaDB 10.3 upgrade
Upgrading MariaDB from Rocky to Stein currently fails, with the new
container left continually restarting. The problem is that the Rocky
container does not shutdown cleanly, leaving behind state that the new
container cannot recover. The container does not shutdown cleanly
because we run dumb-init with a --single-child argument, causing it to
forward signals to only the process executed by dumb-init. In our case
this is mysqld_safe, which ignores various signals, including SIGTERM.
After a (default 10 second) timeout, Docker then kills the container.

A Kolla change [1] removes the --single-child argument from dumb-init
for the MariaDB container, however we still need to support upgrading
from Rocky images that don't have this change. To do that, we add new
handlers to execute 'mysqladmin shutdown' to cleanly shutdown the
service.

A second issue with the current upgrade approach is that we don't
execute mysql_upgrade after starting the new service. This can leave the
database state using the format of the previous release. This patch also
adds handlers to execute mysql_upgrade.

[1] https://review.openstack.org/644244

Depends-On: https://review.openstack.org/644244
Depends-On: https://review.openstack.org/645990
Change-Id: I08a655a359ff9cfa79043f2166dca59199c7d67f
Closes-Bug: #1820325
2019-03-23 10:21:37 +00:00
..
aodh Use service-specific _install_type variables in wsgi scripts 2019-03-15 15:22:54 +00:00
barbican Allow barbican services to use independent hostnames 2019-03-06 15:08:28 -05:00
baremetal Fix bootstrap-servers on Ansible 2.6+ 2019-03-08 14:36:08 +00:00
bifrost Support stop specific containers 2018-11-26 08:07:01 +00:00
blazar Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
ceilometer Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
ceph Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
certificates Use correct variable for default certificate paths 2018-11-19 16:25:28 +00:00
chrony Support stop specific containers 2018-11-26 08:07:01 +00:00
cinder ubuntu: update configuration Stein UCA 2019-03-13 21:25:51 +08:00
cloudkitty Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
collectd Support stop specific containers 2018-11-26 08:07:01 +00:00
common Merge "Support customising Fluentd formatting" 2019-03-14 09:26:50 +00:00
congress Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
designate Allow designate services to use independent hostnames 2019-03-06 15:08:28 -05:00
destroy Add elasticsearch_datadir_volume 2019-02-25 19:30:33 +01:00
elasticsearch Add elasticsearch_datadir_volume 2019-02-25 19:30:33 +01:00
etcd Support stop specific containers 2018-11-26 08:07:01 +00:00
freezer Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
glance Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
gnocchi Use service-specific _install_type variables in wsgi scripts 2019-03-15 15:22:54 +00:00
grafana Support stop specific containers 2018-11-26 08:07:01 +00:00
haproxy haproxy: Support for external IPv6 (VIP) 2019-02-07 15:56:35 +01:00
haproxy-config Allow separate listen port in haproxy-config templates 2018-12-27 15:45:50 -05:00
heat Allow heat services to use independent hostnames 2019-03-06 15:08:28 -05:00
horizon Allow horizon listening port to be different than reachable port 2019-03-06 15:08:28 -05:00
influxdb Support stop specific containers 2018-11-26 08:07:01 +00:00
ironic Allow ironic services to use independent hostnames 2019-03-06 15:08:28 -05:00
iscsi Use new cinder target_helper option 2019-03-01 14:36:25 +00:00
kafka Make Kafka maintenance easier 2019-02-19 11:13:08 +00:00
karbor Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
keystone Use service-specific _install_type variables in wsgi scripts 2019-03-15 15:22:54 +00:00
kibana Edit ansible script for deploy kibana 2019-03-09 11:46:04 +07:00
kuryr Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
magnum Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
manila Fix failure to mount cephfs 2019-03-11 18:26:12 +00:00
mariadb Fix MariaDB 10.3 upgrade 2019-03-23 10:21:37 +00:00
memcached Support stop specific containers 2018-11-26 08:07:01 +00:00
mistral Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
module-load Load known, standard kernel modules from the host, not within containers 2018-10-11 10:26:34 +02:00
monasca Parse Monasca Log API timestamps correctly 2019-02-19 14:06:52 +00:00
mongodb Support stop specific containers 2018-11-26 08:07:01 +00:00
multipathd Support stop specific containers 2018-11-26 08:07:01 +00:00
murano Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
neutron Fix Neutron precheck to not fail with newer Docker 2019-03-11 11:15:13 +00:00
nova Split placement from nova 2019-03-15 15:19:54 +00:00
nova-hyperv Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
octavia Allow octavia services to use independent hostnames 2019-03-06 15:08:28 -05:00
opendaylight Allow set tty for containers 2018-12-05 11:44:37 +00:00
openvswitch Support stop specific containers 2018-11-26 08:07:01 +00:00
ovs-dpdk Support stop specific containers 2018-11-26 08:07:01 +00:00
panko Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
placement Fix placement-api WSGI error 2019-03-21 12:02:09 +01:00
prechecks Use correct variable for default certificate paths 2018-11-19 16:25:28 +00:00
prometheus Standardise Prometheus install type 2019-03-18 13:26:15 +00:00
qdrouterd Support stop specific containers 2018-11-26 08:07:01 +00:00
rabbitmq Fix rabbitmq reconfigure, simplify role 2019-02-15 14:59:26 +00:00
rally Support stop specific containers 2018-11-26 08:07:01 +00:00
redis Support stop specific containers 2018-11-26 08:07:01 +00:00
sahara Merge "Use keystone_*_url var in all configs" 2019-03-07 12:26:26 +00:00
searchlight Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
senlin Allow senlin services to use independent hostnames 2019-03-06 15:08:28 -05:00
service-stop/tasks Support stop specific containers 2018-11-26 08:07:01 +00:00
skydive Support stop specific containers 2018-11-26 08:07:01 +00:00
solum Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
storm Support stop specific containers 2018-11-26 08:07:01 +00:00
swift Fix swift reconfigure 2019-03-20 18:59:28 +00:00
tacker Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
telegraf Fix Telegraf configuration template 2019-01-04 12:11:39 +00:00
tempest Fix tempest.conf permissions 2019-03-07 15:50:41 +01:00
trove Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
vitrage Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
vmtp Use <project>_install_type instead of kolla_install_type 2019-01-04 14:33:46 +07:00
watcher Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
zookeeper Support stop specific containers 2018-11-26 08:07:01 +00:00
zun Use keystone_*_url var in all configs 2019-03-06 15:08:26 -05:00
ceph_pools.yml Merge "Configure application for ceph pool" 2018-03-26 02:51:11 +00:00