!gbYfCmRFdiprAcsClG:matrix.org

gerritcodereview

335 Members
5 Servers

Load older messages


SenderMessageTime
19 Apr 2024
@jim:acmegating.comcorvusand... the database migration is failing due to a bad foreign key20:56:20
@clarkb:matrix.orgClarkanother db combo we didn't anticipate may cause issues?20:57:35
@jim:acmegating.comcorvusmaybe, or maybe just randomly corrupt data in this particular dataset20:57:58
@jim:acmegating.comcorvusi've stopped zuul, i'll work on getting a db shell now20:58:24
@jim:acmegating.comcorvus kubectl -n mariadb exec -it mariadb-mariadb-0 -- mysql -u zuul -n zuul -p works for that 21:03:40
@jim:acmegating.comcorvusServer version: 10.3.20-MariaDB-1:10.3.20+maria~stretch-log mariadb.org binary distribution for the record21:03:52
@paladox:matrix.orgPaladox none joined the room.21:04:02
@paladox:matrix.orgPaladox noneOh, we should probably upgrade the OS to bullseye from stretch. (Although another time if it's time consuming)21:05:00
@paladox:matrix.orgPaladox nonealso hi21:05:12
@jim:acmegating.comcorvushi! i think that's the google-semi-managed mariadb thing; so i think that's getting updated according to googles schedules21:05:34
@paladox:matrix.orgPaladox noneah21:05:45
@jim:acmegating.comcorvusi'm... not sure that's the way i would set it up today from scratch, but it's what i did so many years ago... so... :)21:05:59
@jim:acmegating.comcorvusprobably taking it under our full control is a better plan, but i don't think it's urgent21:06:22
@paladox:matrix.orgPaladox noneyeh that's not urgent.21:06:39
@jim:acmegating.comcorvusERROR 1823 (HY000): Failed to add the foreign key constraint 'zuul/zuul_build_new_buildset_id_fkey' to system tables 21:14:49
@jim:acmegating.comcorvusthat's where it's failing...21:14:56
@jim:acmegating.comcorvusoh nope that's a red herring sorry21:17:15
@jim:acmegating.comcorvus
MariaDB [zuul]> alter table zuul_build
    ->             rename index zuul_build_new_buildset_id_idx
    ->             to zuul_build_buildset_id_idx;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'index zuul_build_new_buildset_id_idx
            to zuul_build_buildset_id_idx' at line 2
21:19:22
@jim:acmegating.comcorvusthat's the problem21:19:25
@jim:acmegating.comcorvusso i think we are looking at a too-old mariadb for this sql21:19:33
@jim:acmegating.comcorvusi think the best way through this is for me to manually finish the migration with whatever syntax this mariadb wants; then i guess maybe we really should upgrade it21:20:06
@clarkb:matrix.orgClarkI think there was a path to add a new key and delete the old key in those migrations21:20:11
@clarkb:matrix.orgClark++21:20:16
@jim:acmegating.comcorvushttps://mariadb.com/kb/en/alter-table/#rename-indexkey21:21:57
@jim:acmegating.comcorvusthat was added in 10.521:22:01
@paladox:matrix.orgPaladox noneIs there anyway to select a mariadb version or is it google forces you to use x version as it's managed by them21:24:25
@jim:acmegating.comcorvusi'm honestly not sure21:25:02
@jim:acmegating.comcorvusi'm starting to get the feeling that "managed" may be a generous term21:25:25
@jim:acmegating.comcorvusand probably what we should do is just copy the mariadb config we use in opendev and translate it to some k8s, then we'll all be in the same boat :)21:25:53
@jim:acmegating.comcorvus Clark: did some research and we decided that we should run mariadb container images with the "auto-upgrade" flag set, so we can easily periodically bump mariadb versions and it will handle the upgrade 21:26:36

Show newer messages


Back to Room ListRoom Version: 9