Commit Graph

51 Commits

Author SHA1 Message Date
Andreas Jaeger eb837bc991 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I7c7a84b65a9d1efd9393d8f0bdb18778e9add445
2019-12-18 09:45:27 +01:00
OpenDev Sysadmins 56116510d2 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:12 +00:00
Artur Zarzycki 733e71bb63 Fix database-backup dependencies
Change-Id: I2d232749b764e9ae83da51fb014b98614d2d6447
2017-03-20 23:52:51 +01:00
Jenkins f32a18db14 Merge "Add action for database backup" 2017-03-20 12:27:07 +00:00
Jenkins 72dc063b7e Merge "Increase liveness timeout" 2017-03-17 09:04:19 +00:00
Proskurin Kirill 2da033eee5 Fix cleanup of the leader record
Change-Id: I53ed458729ea2f492242d8e253b388756132306f
2017-03-16 12:14:40 +00:00
Proskurin Kirill b6ddb83ee3 Increase liveness timeout
Change-Id: Ic8ff2d55fc4971918cc9f32de930eb19d17cee49
2017-03-14 12:35:31 +03:00
Sergey Reshetnyak 6bdc186bc4 Add action for database backup
This action adds support to backup databases using the following command:

  ccp action run backup-db -p db=<your-database-name>

Change-Id: Ia84b3eb99f817256c338a94b6baaa72b3cf50fd7
Depends-on: Ic0d13c92827b12edd720b772195eaca8fcfc5ede
2017-03-14 11:38:21 +03:00
Anastasiya 74b76de1fa Merge global and secrets configs in galera_checker
Change-Id: I7aadc894b1350a99e534fd77fd07e0060e91a9b3
2017-03-07 10:22:49 +04:00
Jenkins 094e264e6a Merge "Store sensitive configs in secret" 2017-03-06 14:57:42 +00:00
Andrey Pavlov d3f58c4dd4 Store sensitive configs in secret
Change-Id: Ie29d984ad50bce7d1fac2e3218f27575f1bbc281
Depends-On: Ie6a9833cdf73b076e24204d47e5898dfb24de43e
2017-03-06 14:39:39 +00:00
Andrey Pavlov adae1cbe10 Remove unused service.database config
Change-Id: I52e0ce65d3abf8e21dec487b6bb91f6e4f371eca
2017-03-03 14:12:00 +00:00
Jenkins 7b845f072c Merge "Adjust to per-service configuration" 2017-03-03 13:54:40 +00:00
Sergey Kraynev 9106e828cc Enable SSl for Galera by default
The root cause was found and it was related with eventlet bug.
Patch with fix was proposed on review.

Change-Id: I2d67d97ce7c9938120f0a01729500a50dffa90bf
Depends-On: I1cc350eb9cf1ae988e36a9b2c6ff5ed40b39c2e3
2017-03-01 09:20:23 +00:00
Andrey Pavlov f70d714dd1 Adjust to per-service configuration
Change-Id: I211ac3ab22b6fa12b5618f18fbbb5ca4028fb2c6
Depends-On: Ia4d29167cea6dfd19a1970706aafda51a31d5b24
2017-02-28 11:05:05 +00:00
Jenkins f16d871eba Merge "Add an option to enable general and slow logs" 2017-02-27 12:30:52 +00:00
Sergey Kraynev a313303f44 Temporary disabling SSL for Galera
Last tests discovered the issue, that some nova and neutron commands
don't work properly with Galera under SSL.
It's related with pymysql lib, so we disable SSl for Galera till fix for
pymysql be merged.

Change-Id: I755d9238e81af127576fc34bb18f8bf1540ff024
2017-02-27 12:06:54 +00:00
Proskurin Kirill 4fb7cc7402 Add an option to enable general and slow logs
Change-Id: Icd7907bee8c96b9002958da9bc93b429779b43b0
2017-02-27 11:57:41 +00:00
Andrey Pavlov 8d805174bc Removing percona.tls option
Change-Id: I177d59c2fdb5c8864b52ca8363f8da4765fd6a49
2017-02-21 07:07:03 +00:00
Jenkins 9c5d6a52d1 Merge "Adding tls flag to db group" 2017-02-20 15:26:19 +00:00
Andrey Pavlov dda80232a0 Adding tls flag to db group
tls flag will be removed from percona with the next
commit

Change-Id: I2ff95f7a1cbb14cb1cd9e35677f95c30a4523340
2017-02-20 14:22:34 +00:00
Proskurin Kirill 3bb9d71a95 We do not need client certificate to work with etcd SSL
Change-Id: I0411618dbe241313d5b7ff239c594dc57dc46884
2017-02-17 14:33:18 +00:00
Proskurin Kirill 702b56a486 Initila cluster node shouldnt expire during long bootstrap
Change-Id: I44a57ae899a6b03457f66829971f751ebbf653d3
2017-02-17 11:32:57 +00:00
Proskurin Kirill 05282a410d Add scheme key
Change-Id: Ia3e1f42e4d74877785b90ba290a3f1872d6bc659
2017-02-15 15:21:45 +00:00
Proskurin Kirill a760305ede Add SSL encryption to galera
Change-Id: I9e6d9ee439cab734eba02320d58ccfcd73e23106
2017-02-13 12:59:26 +00:00
Jenkins 909d165c5e Merge "Configure sql_mode options" 2017-01-31 14:42:52 +00:00
Ruslan Kamaldinov 11e1172bac Configure sql_mode options
In order to get Gerrit working with Galera we need to modify
sql_mode options. With default options following SQL query
fails with "Invalid default value for 'added_on'":

CREATE TABLE account_group_by_id_aud (
  added_by INT DEFAULT 0 NOT NULL,
  removed_by INT,
  removed_on TIMESTAMP NULL DEFAULT NULL,
  group_id INT DEFAULT 0 NOT NULL,
  include_uuid VARCHAR(255) BINARY DEFAULT '' NOT NULL,
  added_on TIMESTAMP NOT NULL
  ,PRIMARY KEY(group_id,include_uuid,added_on)
)

Change-Id: Ic44192712512bb824890285b27eb353e4a37f4f4
2017-01-31 17:40:04 +04:00
Proskurin Kirill 1db76f7d4e Add SST sync detection
This allows us to make a bit more sane mysql start time timeout

Change-Id: I5c071a5f4e0112d6e9b0bf4a8e6901c70dcd4adf
2017-01-31 09:15:25 +00:00
Proskurin Kirill 168ad0d266 Avoid, if possible, choosing current leader as donor node
We'll fallback to leader if there is no other options left.

Change-Id: Icd52612e47b455dc9efad5e183e60b225f1be777
2017-01-30 14:48:57 +00:00
Proskurin Kirill 2080d918cc Remove wsrep_sst_auth from the cmd line
We already have it in my.cnf

Change-Id: I872c86ba54ba620640027b543a4978ae3af09588
2017-01-30 13:49:05 +00:00
Proskurin Kirill e5d4a8679a Converted readiness check to httpget
Change-Id: I4030fc54dd187a997483c7d045ce0921f11af03d
2017-01-30 10:30:50 +00:00
Proskurin Kirill 100c479844 Increase timeout for mysql waiting
Current one is way too low, even for empty DB.
Proper fix will be added in the following patches.

Change-Id: I4ac3917d947daa8b525d446f85b6077887ee4163
2017-01-24 14:55:59 +00:00
Proskurin Kirill 9a3ee32d48 Use FQDN domain name for etcd connection
Plus fix PEP8 issues.

Change-Id: Ifb0d0acc441317fe8521654f436fd923e195f2e1
2017-01-20 16:37:13 +00:00
Proskurin Kirill a2be6ede7e Enable gcache.recover feature
Change-Id: I335d65b2b6cbaeb8be9af6b26d2f1309ad83e9de
2017-01-20 13:56:00 +00:00
Proskurin Kirill 6b2820c21f Add force-bootstrap feature
Two features was added:
1) Ability to set a specific node to be a initial galera node.
2) Galera 3.19 requires to set bootstrap flag in datadir, overwise it will
refuse to boostrap from this node.
3) Bugfix: Added sorted to the get_oldest_node_by_seqno() to fetch same results
on all node

Change-Id: I50e42f66ba475f809cda00c72f57787a70f66cda
2017-01-20 13:55:31 +00:00
Proskurin Kirill a248697bc0 Haproxy container for galera
We add haproxy side-cont to the galera pod. We bind galera to port 33306
and haproxy takes its place with 3306. Haproxy starts with non-working backend.
After it start, it checks for current leader in etcd, if there is none, it
set current leader to itself. After that it updates its backend to connect to
current leader.

It does polling of this logic each 5 sec and if leader is changed it will
update backend again.

Other nodes do the same, so, in the end, each node will be connected to the
same, single galera node.

Change-Id: Ieb611661857de1828259b28f54f5a0390b1dd196
2017-01-19 16:00:22 +00:00
Proskurin Kirill 613e47413a Make cluster size configurable
Change-Id: I631435d660d7078fdc18bc715bd605e515b02581
2017-01-10 17:13:03 +00:00
Proskurin Kirill 84f56e154c Made recovery scenario more reliable
1) Now we wait infinitely for needed number of nodes
2) Now we handle the SIGTERM signal(delete pod OR liveness kill) and
cleanup our etcd registrations.

Change-Id: Idf56b5b9c113d4ca69672827e54151f4bd3805fc
2017-01-10 17:12:45 +00:00
Proskurin Kirill ef8fca156c Fix logging and error level
Change-Id: I5359eb95e54b157290f17810d5f5173266976f05
2016-12-27 17:39:18 +00:00
Proskurin Kirill 3451de421f Added quoting to the mysql exec
Removed it from sql exec(it already does quoting)
Small fix in try\excpect for non existing key

Change-Id: I829fb6bf8db06c1e1c980bd204a6e68710f50076
2016-12-26 12:54:09 +00:00
Proskurin Kirill 9cd4b59e37 Small change for more readability
Change-Id: I549cdd92ae678ac6be739a7b3316818c2c76a997
2016-12-26 12:52:24 +00:00
Proskurin Kirill 11544bceac Add galera_cheker
This script implements both liveness and readiness logic.

Change-Id: Ib48f7f8a0c04b0210909ef9409c0500f11bd08fd
2016-12-23 15:34:54 +00:00
Proskurin Kirill a0c461b2bf Entrypoint rewrite in Python
Change-Id: I1d4d607b65bf0e8d52c4efd5e670e346049adde5
2016-12-23 14:48:57 +00:00
Proskurin Kirill 802dc48db0 Replace DaemonSet with anityAffinity feature
Change-Id: Ic616e8cb94e75ca55c1c7ed04df830bfdba9f98d
Depends-On: I832b00e75bc546f7de1446d660f178c58dc3b1b4
2016-12-23 14:48:57 +00:00
Proskurin Kirill f92f7d9b19 Add an ability to define gcache.size
And increase it value from 128Mb to 1G
Plus small fixes in my.cnf

Change-Id: Iaa7626b98c0ddd70be467ba743c39eee227b5c43
2016-12-02 11:20:22 +00:00
Proskurin Kirill a3a5efc3f3 Add pep8 test and gitignore
Change-Id: I87c206311083f112ff812f15cae9803753b772c1
2016-12-02 11:12:50 +00:00
Andrey Pavlov 36a8b2a84f Adding minimal dsl version for services
Change-Id: I0abe9781300c794d690b0822fc2a857db3ca8ea5
Depends-On: Iddb02f88e47e53f8f7233f76ec1afe161c185a86
2016-11-21 12:35:13 +00:00
Sergey Lukjanov 640e8bda9d Add LICENSE file
Change-Id: Ie899d5ec2195508eb99e347833d92e9e39c46d3b
2016-11-19 22:50:01 -08:00
Proskurin Kirill ada422b39e etcd registration rework with proper locking
Plus small changes in clustercheckcron

Change-Id: Id9039514d034adab5abe627f2de93a1df6d86f85
2016-11-18 14:56:17 +00:00
Proskurin Kirill bc59213349 Add percona based Galera cluster
Change-Id: I5316e30f3f960348a211189d6689ada596289d5e
2016-11-18 09:59:55 +00:00