1760079dfe
The clustercheck service is currently in the ControllerOpenstack role which represents a controller without the DB. Since the clustercheck service/container always talks to the SQL server via a localhost connection it *has* to run on the very same node that hosts the DB. In a containerized deployment this error shows up with db syncs simply hanging because haproxy will stop serving port 3306 because the clustercheck service on port 9200 cannot talk to mysql locally. Errors like this will be logged when trying to connect to the DB VIP: mysql -u heat -h 172.17.1.13 -p3UazsaeTC64V9UvEcJ3GZ9rbd ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 Fix this by making sure that the clustercheck service runs on the DB role. Change-Id: Iec4c9678d8b8d44e002c1e53110dedc0674359fb Closes-Bug: #1715847
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
###############################################################################
|
|
# Role: Database #
|
|
###############################################################################
|
|
- name: Database
|
|
description: |
|
|
Standalone database role with the database being managed via Pacemaker
|
|
networks:
|
|
- InternalApi
|
|
HostnameFormatDefault: '%stackname%-database-%index%'
|
|
ServicesDefault:
|
|
- OS::TripleO::Services::AuditD
|
|
- OS::TripleO::Services::CACerts
|
|
- OS::TripleO::Services::CertmongerUser
|
|
- OS::TripleO::Services::Collectd
|
|
- OS::TripleO::Services::Clustercheck
|
|
- OS::TripleO::Services::Docker
|
|
- OS::TripleO::Services::FluentdClient
|
|
- OS::TripleO::Services::Kernel
|
|
- OS::TripleO::Services::MySQL
|
|
- OS::TripleO::Services::MySQLClient
|
|
- OS::TripleO::Services::Ntp
|
|
- OS::TripleO::Services::ContainersLogrotateCrond
|
|
- OS::TripleO::Services::Pacemaker
|
|
- OS::TripleO::Services::SensuClient
|
|
- OS::TripleO::Services::Snmp
|
|
- OS::TripleO::Services::Timezone
|
|
- OS::TripleO::Services::TripleoFirewall
|
|
- OS::TripleO::Services::TripleoPackages
|
|
- OS::TripleO::Services::Tuned
|