Markin, Sergiy 00846e2e02 [grafana] Migrator job is mariadb-fail-proof
The main goal of this PS is to make sure the migrator can complete the migrations even if mariadb galera cluster dropped the migrator connection leaving the database in inconsistent state. It may happen that migration_log has a record of a successfully performed migration while the database scheme misses an entity so any further attempts to re-run the migrator fail because of missed entity the migrator expects to be present.

Also the migrator is running mariadb image as a main one and grafana binaries are mounted as /usr/share/grafana. Migrator job container is running under nobody user uid.

This PS runs migrator in a safe way:
- prepares database backup
- runs a single instance of grafana as migrator with log file as a background process in a loop
- constantly checks the log file in the main process
- in case of the migrations completed it stops grafana-server process and completed the job
- in case of a migration error it restores the previously prepared backup so the grafana-server that is running in a background loop can re-try the migration
- the database operations are prefixed with code that makes sure the database is reachable.

Change-Id: I4e1542b62777f25c08ddd2cb74f0a0e7bfea5145
2023-01-05 10:27:37 -06:00
2021-10-06 01:02:28 +00:00
2021-10-06 01:02:28 +00:00
2022-08-25 11:40:33 +08:00
2022-11-22 15:12:03 -05:00
2022-09-01 10:57:25 -04:00
2021-10-06 01:02:28 +00:00
2021-10-06 01:02:28 +00:00
2022-05-19 16:13:12 +00:00
2022-10-22 04:22:50 +00:00
2019-04-19 19:34:11 +00:00
2022-04-04 20:37:07 +00:00
2021-06-02 01:52:39 +00:00
2021-04-06 18:44:59 +00:00
2018-05-15 13:04:28 -05:00

Openstack-Helm-Infra

Mission

The goal of OpenStack-Helm-Infra is to provide charts for services or integration of third-party solutions that are required to run OpenStack-Helm.

For more information, please refer to the OpenStack-Helm repository.

Communication

  • Join us on IRC: #openstack-helm on oftc
  • Community IRC Meetings: [Every Tuesday @ 3PM UTC], #openstack-meeting-alt on oftc
  • Meeting Agenda Items: Agenda
  • Join us on Slack
    • #openstack-helm

Contributing

We welcome contributions. Check out this document if you would like to get involved.

Description
Repository for OpenStack Helm infrastructure-related code
Readme 67 MiB
Languages
Smarty 85.6%
Shell 12.1%
Python 1.8%
Jinja 0.3%
Makefile 0.2%