Page MenuHomePhabricator

patchdemo staging: Creation of new demos with catalyst backend fails on connecting to db
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Failed here while testing ecccd7f75 in staging:

https://staging-patchdemo.wmcloud.org/edit.php?wiki=14914c89a5

logs from the container:

+ mariadb -uroot -pREDACTED -hwiki-14914c89a5-50-mariadb -P3306 -e ''
ERROR 1130 (HY000): Host '10.42.2.204' is not allowed to connect to this MariaDB server
+ sleep 10
+ create_database wiki_14914c89a5_50__main
+ local DB_NAME=wiki_14914c89a5_50__main
+ mariadb -uroot -pREDACTED -hwiki-14914c89a5-50-mariadb -P3306 -e 'CREATE DATABASE IF NOT EXISTS wiki_14914c89a5_50__main DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;'
ERROR 1130 (HY000): Host '10.42.2.204' is not allowed to connect to this MariaDB server

services:

NAME                           TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
wiki-14914c89a5-50-mariadb     ClusterIP   10.43.252.179   <none>        3306/TCP         30m
wiki-14914c89a5-50-mediawiki   NodePort    10.43.107.35    <none>        8080:32352/TCP   30m

Works fine tested locally (with standalone db) and in production (shared db), assuming something is up with staging specifically.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
remove `resources` block from standalone MariaDBrepos/test-platform/catalyst/ci-charts!127jnucheT421181main
use init container to wait on standalone MariaDBrepos/test-platform/catalyst/ci-charts!126jnucheT421181main
Customize query in GitLab

Event Timeline

thcipriani triaged this task as Low priority.

I can't reproduce the issue on staging anymore after my changes. No error during the creation of ~20 envs.

Tentatively declaring victory

jnuche set the point value for this task to 1.Thu, Apr 16, 1:49 PM