879 Commits

Author SHA1 Message Date
Daniel Black
38dfbc5997 MariaDB 2025 Q1 maintence release
For 10.5, 10.6, 10.11 and 11.4
2025-02-05 14:31:26 +11:00
Daniel Black
e7aeffc4d8 ubi: util-linux-core was missing
As highlighted in #630 a healthcheck.sh --mariadbuprade test
will use flock that is provided by util-linux-core on ubi systems.
2025-02-05 14:28:18 +11:00
Daniel Black
9824707d74 update.sh - handle trailing / in path 2024-11-04 10:13:20 +11:00
Daniel Black
9e9da8e3ef 11.5 EOL 2024-09-19 16:44:23 +10:00
Daniel Black
e50c40eea0 Replication fix - updates for 11.6 2024-09-19 16:43:28 +10:00
Daniel Black
d5561744cc healthcheck.sh add --no-connect option
There is an implicit --connect option in healthcheck
so that a normal use can be sure MariaDB is running
on a tcp socket.

There is a case in /docker-entrypoint-initdb.d where
its desirable to perform healthchecks for components
without a --connect. In this case, use --no-connect
in the healthcheck to avoid an implicit --connect test.
2024-09-17 17:29:54 +10:00
Daniel Black
5947241c87 MDEV-34943 Disable replication start on initialization
START REPLIA was issued during initializing which mean that
even before /docker-entrypoint/initdb.d there was initializtion
going on.

Entrypoints that needed data initialzation didn't complete with
this nicely. Also if there wasn't any initialization there
would be little time for the replication to acheive anything
before being shutdown ready for the final start.

Moved --skip-slave-start to the default docker_temp_server_start
implementation.

Technically this is a compaibility break that is likely to be
of significants if:
* /docker-entrypoint/initdb.d contains a script waiting
  for replication to catch up.

The recitifcation to the previous behaviour is:
/docker-entrypoint/initdb.d contains a SQL to START REPLICA.
Recommend also having another script that is:

until healthcheck.sh --replication_io \
                     --replication_sql \
                     --replication_seconds_behind_master=0 \
                     --replication
                     --no-connect;
do
  sleep 1
done

Closes #614
2024-09-17 17:29:54 +10:00
Daniel Black
615f812b00 main: 11.7 currently 2024-09-16 17:39:47 +10:00
Daniel Black
afb3ee58c7 11.1 EOL 2024-09-03 15:33:45 +10:00
Daniel Black
97c2acc171 test: break config file 2024-09-03 13:54:31 +10:00
Daniel Black
0d5a14e4e0 Merge branch 'master' into next 2024-09-03 13:01:21 +10:00
Daniel Black
275297af91 Manually hack release status/support status
As API unnormalized.
2024-09-03 12:32:52 +10:00
Daniel Black
e80852449e shellcheck excludes for backticks in single quote 2024-09-03 12:17:54 +10:00
Daniel Black
cea8a6798d Bump default timeout to 15 seconds to start container 2024-09-03 12:17:54 +10:00
Daniel Black
27fdd4260e add test case for healthcheck.sh variants 2024-09-03 12:17:54 +10:00
Daniel Black
ee80a97d5c healthcheck correct connect result
Based on user reports, a `connect` test can observer a non-"Can't
connect" error message.

Because this passes other tests, like innodb_initialized might
succeeded.

The final test -z "$connect_s" is also true, leaving the user
with an incorrect test result.

Maybe the healthcheck cnf hasn't been created yet?

Either way, ruggardise the final test to ensure a healthy connect
test occured.

Narrow down the scope of healthcheck --connect failures
to the mariadb client errors "Can't connect".

May as well look at same @skip-networking system variable
on TCP just in case.

28000 errors, per
https://mariadb.com/kb/en/mariadb-error-code-reference/ are client
errors after a connection, indicating that the start of a tcp
connection occured.

Closes #610
2024-09-03 12:17:54 +10:00
Daniel Black
29f8caccc4 Remove Annoying root user banner
Closes #608
2024-09-02 13:20:45 +10:00
Daniel Black
10fd9ebc38 revert b34b76eb883ea262db762517947e2cb2776f112b version fix 2024-08-15 14:36:39 +10:00
Daniel Black
c822f0e060 partial revert on 0cb4378923cfd862525b12cc86db87e7917a55e3 (releaseStatus hack) 2024-08-15 14:35:30 +10:00
Daniel Black
8b9a47d054 fix < 11.5 version number due to prev release hack 2024-08-15 14:29:43 +10:00
Daniel Black
b34b76eb88 Hack 11.5/11.6 latest versions without API 2024-08-15 14:29:43 +10:00
Daniel Black
0cb4378923 Manually hack release status/support status
As API unnormalized.
2024-08-15 14:29:43 +10:00
Daniel Black
c801951f3d Remove out 11.6 vector as the primary version 2024-08-15 14:29:43 +10:00
Daniel Black
c3ab4661cf Ubi - debug - fix installation 2024-08-14 16:42:05 +10:00
Daniel Black
1637a68a19 test: compatibility with MDEV-19949 2024-08-14 13:29:28 +10:00
Daniel Black
b99c24e3ed generate-strackbrew-library - 11.6 coming soon 2024-08-12 10:05:19 +10:00
Daniel Black
598eb2bd89 Revert "Fix update.sh for 11.5 support/release status due to broken downloads API"
This reverts commit d289a87e6ce27969fa0bbb8cba2a7859271a32fa.
2024-08-12 10:04:30 +10:00
Daniel Black
768d6823a5 generate-stackbrew-library.sh dont ignore 11.5 2024-08-12 09:12:31 +10:00
Daniel Black
e730514e27 Fix 11.5 files/scripts 2024-08-12 09:11:59 +10:00
Daniel Black
d289a87e6c Fix update.sh for 11.5 support/release status due to broken downloads API 2024-08-12 09:11:27 +10:00
Daniel Black
fab24e0b32 operator test: contains rather than endsWith 2024-08-10 09:13:39 +10:00
Daniel Black
198bd2efd0 ci: different operator test for ubi 2024-08-10 09:04:00 +10:00
Daniel Black
058bd4ddb4 Revert "quick hack - test 10.* only as 11.* not on mirrors yet"
This reverts commit 90edf6e7ba006ebe1715e01eae4b5990dc4a5430.
2024-08-09 11:16:26 +10:00
Daniel Black
b0070c7201 test case - backup/restore handle docker volume without permissions on ubi 2024-08-09 11:05:33 +10:00
Daniel Black
3bc1f5ef59 test case; handle docker volume without permissions on ubi 2024-08-09 10:12:33 +10:00
Daniel Black
90edf6e7ba quick hack - test 10.* only as 11.* not on mirrors yet 2024-08-09 09:57:25 +10:00
Daniel Black
fb80850635 manually bumped version for <= 11.4 2024-08-09 09:52:24 +10:00
Daniel Black
761ec8e143 update generate-stackbrew-library.sh for 2023q3 part 1 release 2024-08-09 09:33:02 +10:00
Daniel Black
b45425dc13 Merge branch 'next' 2024-08-09 09:18:31 +10:00
Daniel Black
64decf74a7 Containerfiles for making contains with debug info 2024-08-04 10:51:49 +10:00
Daniel Black
58494e28dd ubi: Fix env variable for installation version fixing 2024-08-02 17:52:10 +10:00
Daniel Black
c6f49a502a test: jemalloc test agnositic to default USER 2024-08-02 17:50:31 +10:00
Martin Montes
c52e778360 Specify "mysql" as container user to be compliant with Red Hat container certification 2024-08-02 17:47:52 +10:00
Daniel Black
ffb4f5bd50 TMP: update.sh to use Unknwon for missing release_{support_type,status} 2024-07-25 12:56:12 +10:00
Daniel Black
05a42334c4 ubi: use ENV MARIADB_VERSION so its easier for CI 2024-07-25 12:55:30 +10:00
Daniel Black
39eeacabec initial incomplete support for main branch 2024-07-22 18:20:14 +10:00
Ian Gilfillan
3b1dd06758 SECURITY.md typo 2024-07-09 09:25:20 +10:00
Daniel Black
4b165bdcdd Revert "ci: mariadb operator incompatible with MariaDB 10.5"
This reverts commit e3e20e14ab7575cae07208c7c4d48de16c98752f.

MariaDB Operator corrected https://github.com/mariadb-operator/mariadb-operator/issues/657
2024-07-03 08:37:35 +10:00
Daniel Black
2611c396fb correct healthcheck.sh under --require-secure-transport
require-secure-transport on the server mandates that tls or
unix socket be used. The healthcheck user doesn't have explict
tls credentials, so would have failed. 11.4+ would have
tls negiotated, except in #594 it was disabled for people that
didn't configure ssl-ca correctly.

To resolve this _process_sql adds an explict --protocol socket
to get around the default configuration of 'protocol=tcp' in
.my-healthcheck.sh. The protocol=tcp was there to catch people
who put `healthcheck.sh --innodb_initialized` to discover it
checked that in the starting phase of the container, without
a tcp connection being available, it still returned true.

We work around this my making a connection test always
occur in the healthcheck.

Remove the protocol=tcp from the generation of .my-healthcheck.cnf
files.

--connect, as a method that requires to test the connection,
we add a mechanims that examines @@skip_networking and considers
that if false, the connection is viable. We made a unix socket
connection to do the test, which is active the same time as tcp
sockets are.

This alternate --connect method would have only worked the
credentials of the healthcheck user where valid. If it isn't
fall back to looking for "Can't connect".

Closes: #596
2024-06-27 12:42:21 +10:00
Daniel Black
366c041cdb @bstract sockets - do not chown 2024-06-27 12:42:06 +10:00