689 Commits

Author SHA1 Message Date
Daniel Black
05a08752af tests; improved cleanup, IP for galera sst + titles 2023-09-21 11:55:31 +10:00
Daniel Black
1f165423dd Add PROXY priv for root@MARIADB_ROOT_HOST
Thanks Matthieu Gusmini for testing with mariadb-dump --system=users
and helping me find this bug.
2023-09-20 14:26:35 +10:00
Daniel Black
1792faf931 healthcheck.sh add --galera_online
For the MariaDB operator that uses this expression.

https://github.com/mariadb-operator/mariadb-operator/blob/v0.0.20/pkg/builder/statefulset_container_builder.go#L357C1-L357C17
2023-09-15 18:31:36 +10:00
Daniel Black
2e2a692808 Revert "disable-ssl-verify-server-cert for 11.3+"
This reverts commit dd35aac1600bdcd09889d6e1cf2c17ac557d8c4a.
2023-09-15 09:54:27 +10:00
Daniel Black
10010b3fff tests back to using unix socket by default
tcp socket used when needed.

Always have a password set for TCP as without it on 11.3
there is self signed certificate errors.
2023-09-15 09:53:35 +10:00
Daniel Black
9704b7e2b7 test: fail on MYSQL_ALLOW_EMPTY_PASSWORD empty if started successfully 2023-09-15 07:50:19 +10:00
Daniel Black
dd35aac160 disable-ssl-verify-server-cert for 11.3+ 2023-09-14 19:17:54 +10:00
Daniel Black
f27308cc14 11.2.1 update 2023-09-14 19:17:16 +10:00
Daniel Black
7e499a97c0 tests: die does logs, do master_host logs as well 2023-09-14 17:38:25 +10:00
Daniel Black
03b06b8455 test: galera_sst native execution only 2023-09-01 13:49:37 +10:00
Daniel Black
0238d9d251 fix test 2023-09-01 09:09:00 +10:00
Daniel Black
3fb9801bbf tests: galera SST 2023-08-31 18:08:47 +10:00
Daniel Black
c697a87d88 11.3 version add 2023-08-30 06:58:01 +10:00
Daniel Black
70d8c97f48 11.1 now stable 2023-08-29 16:19:20 +10:00
Daniel Black
5169d8f196 11.3 now in development 2023-08-29 16:17:46 +10:00
faust
1b4ec9411a
Merge pull request #526 from fauust/2023-q3-release
Second Q3 2023 release
2023-08-22 12:57:42 +02:00
Faustin Lammler
71a2ef521e
Second Q3 2023 release 2023-08-22 12:39:56 +02:00
Daniel Black
73a6fc045e 2023 August release 2023-08-15 07:53:46 +10:00
Daniel Black
28adeb9071 REPOSITORY to include debug section by default
This is so someone that wants debug info packages just
needs to apt-get install mariadb-server-core{-10.X}-dbgsym to
get the right packages after and apt-get update.
2023-07-18 09:43:03 +10:00
Daniel Black
0999b7e4d6 MDEV-31714: remove mysqld/mariadb_safe.cnf file
The 50-mariadb_safe.cnf file exposed a syslog configuration
that got picked up by Galera SST scripts. These would push
output to /dev/log which doesn't exist in containers.
2023-07-18 09:42:48 +10:00
Daniel Black
edb71b0a87 test: remove 10.3 compat, fix binlog replication tests to use healthcheck
Use built-in replica initialization
2023-07-05 08:48:04 +10:00
Daniel Black
fbb2d9a742 test: ipv4 or v6 is ok 2023-06-23 11:47:07 +10:00
Daniel Black
4277fc20d6 fix tests 2023-06-23 11:47:07 +10:00
Daniel Black
51c2b915a1 MDEV-31529: MariaDB docker pipeline is failing
s390x database initialization was slow (thanks @tianon).

We don't use it, so fake its existance so debian install scripts
don't consume the intensive part of the installation.

[1] https://github.com/docker-library/official-images/issues/14923
2023-06-23 11:47:07 +10:00
Daniel Black
f353d3dffe Merge branch 'master' into next 2023-06-23 11:02:47 +10:00
Daniel Black
148b0e5d33 Allow healthcheck@{127.0.0.1,::1,localhost} to exist to facilitate healthcheck --connect
healthcheck@{127.0.0.1,::1,localhost} users are granted USAGE by default, which
is enough for the non-replication healthchecks in healtcheck.sh.

The env variable MARIADB_HEALTHCHECK_GRANTS can replace USAGE with any
comma separated set of grants.

On initialization a generated password is created and saved in
$DATADIR/.my-healthcheck.cnf along with the server port and socket. If the
command args or default configuration file changes this may become out
of date. Because the password is generated in configuration file the
'#', comment, and '=' characters cannot be part of this password.

The healthcheck.cnf configuration file also sets protocol=tcp to
enforce indirectly that --connect being a standard part of the test. This is
required as starts of the service under --skip-networking should
never be considered healthy.

The healthcheck script also has the --defaults-extra-file set to this
.my-healthcheck.cnf file, if it exists (backwards compatible on
previously created datadirs), so that all new healthcheck invokations
use the authentication here by default.

The compatibility with old instances, without the .my-healthcheck.cnf is
preserved by non setting --defaults-extra-file.

The healthcheck --connect will increment the server status variable Aborted_connects
for each check, however now connection_error* counts are changed.

This also prevents any invalid password errors showing up in the
container log.

Closes #430
2023-06-21 07:30:58 +10:00
Daniel Black
1b4b2584a4 Use SHOW REPLICA[S} STATUS for healthcheck.sh 2023-06-21 07:30:36 +10:00
Daniel Rudolf
cd7489a9ff Run update.sh 2023-06-21 07:30:36 +10:00
Daniel Rudolf
0514a0768a Add versions.json
'versions.json' contains information about the versions available in this repo. It is managed by `./update.sh`; there's no need to edit this file manually, just run `./update.sh`.
2023-06-21 07:30:36 +10:00
Daniel Rudolf
0faba6a576 update.sh: Fix usage of jq
- Using `jq -r` makes removing quotes from strings unnecessary
- Overhaul jq script of mariaversion() to identify a milestone's latest version
2023-06-21 07:30:36 +10:00
Daniel Rudolf
041f5dff04 Run update.sh 2023-06-20 07:58:08 +10:00
Daniel Rudolf
582fdd1929 Add versions.json
'versions.json' contains information about the versions available in this repo. It is managed by `./update.sh`; there's no need to edit this file manually, just run `./update.sh`.
2023-06-20 07:58:08 +10:00
Daniel Rudolf
0ffaf22760 update.sh: Fix usage of jq
- Using `jq -r` makes removing quotes from strings unnecessary
- Overhaul jq script of mariaversion() to identify a milestone's latest version
2023-06-20 07:58:08 +10:00
Faustin Lammler
e56b3a008e 2023 Q2 2 Releases 2023-06-09 17:39:47 +10:00
Daniel Black
4c502ce68d 10.3 simplification 2023-05-11 12:11:51 +10:00
Daniel Black
c879f8a71c no more old stable 2023-05-11 12:04:53 +10:00
Daniel Black
43220a07ba Merge branch 'master' into next 2023-05-11 12:04:14 +10:00
Daniel Black
b937daac76 less naughty
best practices is no use of latest except on its own

https://github.com/docker-library/official-images#tags-and-aliases

Also no more "Old Stable"
2023-05-11 11:51:48 +10:00
Daniel Black
683c010c3f EOL for 10.3 / 10.8 2023-05-11 11:39:00 +10:00
Daniel Black
dd766e6f20 add 11.2 2023-05-11 11:35:18 +10:00
Daniel Black
4e6c2b5172 Revert "11.1 not released yet"
This reverts commit dc7b6c57d195f9fd939adae1cfe7fea44470f568.
2023-05-11 11:34:13 +10:00
Daniel Black
8368b90798 bump bashbrew 2023-05-11 11:13:38 +10:00
Daniel Black
dc7b6c57d1 11.1 not released yet 2023-05-11 11:13:27 +10:00
Daniel Black
b1f92f6f41 shellcheck fixes 2023-05-11 11:01:03 +10:00
Daniel Black
7a32d077e4 Q2 2023 releases 2023-05-11 09:39:47 +10:00
Daniel Black
2e00c802b8 Merge branch next 2023-05-11 09:38:35 +10:00
MdSahil-oss
4803fbb540 test: use IP from docker inspect
needed for podman-4.2.0 (or maybe just
something on the bb-rhel8-docker builder).

(which also needed: sudo systemctl start podman.socket) to
support networks.
2023-05-09 17:08:55 +10:00
Daniel Black
7a28042cbc Create SECURITY.md
create vulnerability reporting

Reviewer: Vicențiu Ciorbaru <cvicentiu@gmail.com>
Reviewer: Andrew Hutchings <andrew@mariadb.org>
2023-05-09 16:24:25 +10:00
MdSahil-oss
98c792140d MDEV-29762: Add capability for replication
These are controled by:
* MARIADB_MASTER_HOST - if specified, the master, and the container is a replica
* MARIADB_REPLICATION_PORT - port number
* MARIADB_REPLICATION_USER - create or use this user
* MARIADB_REPLICATION_PASSWORD - create or use this password
* MARIADB_REPLICATION_PASSWORD_HASH (on master only)

If MARIADB_MASTER_HOST isn't specified, the container is a master. In
this case, the MARIADB_REPLICATION_USER is created, with password{,hash},
and given the REPLICATION REPLICA grant, or REPLICATION SLAVE (for
10.3, 10.4).

If the MARIADB_MASTER_HOST is specified, CHANGE MASTER TO is used to
connect to the MARIADB_MASTER_HOST:MARIADB_MASTER_PORT(default 3306)
using the MARIADB_REPLICATION_USER. As the password is needed
MARIADB_REPLICATION_PASSWORD_HASH cannot be used on a replica.
CHANGE MASTER TO is executed with MASTER_CONNECT_RETRY=10 and the
replica is started by default.

The creation of the replication user is replicated along with the
master's /docker-entrypoint-initdb.d/ contents and MARIADB_DATABASE
/MARIADB_USER. The MARIADB_MYSQL_LOCALHOST_USER isn't replicated and
neither is the timezone data.

Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Reviewed-by: Daniel Black <daniel@mariadb.org>
2023-05-09 09:21:37 +10:00
Daniel Black
2517c69128 Add support tags to generated release
e.g.:

Tags: 10.11.2-jammy, 10.11-jammy, 10-jammy, 10-lts-jammy, jammy, lts-jammy, 10.11.2, 10.11, 10, 10-lts, latest, latest-lts
Architectures: amd64, arm64v8, ppc64le, s390x
GitCommit: ab852935f30af154f36020cafd9d5dbaf1fad4f6
Directory: 10.11
2023-05-08 12:04:08 +10:00