Randy Barlow
b8eb958251
Use Python 3 in Bodhi's staging sync playbook.
...
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
2018-11-08 17:29:40 +00:00
Mikolaj Izdebski
7193f05083
Koji stg sync: remount /mnt/koji on ODCS frontend too
2018-11-06 09:54:43 +00:00
Mikolaj Izdebski
64d1054912
Fix a typo in SQL
2018-11-01 01:34:03 +00:00
Mikolaj Izdebski
23c535975e
Delete host_config entries before deleting host
2018-11-01 01:32:02 +00:00
Mikolaj Izdebski
1c65b0c624
Koji host_channels is now a versioned table too
2018-11-01 01:26:04 +00:00
Mikolaj Izdebski
83267309be
Fix a typo
2018-11-01 01:20:19 +00:00
Mikolaj Izdebski
eba9bd03ea
Koji host arches belong in host_config now
2018-11-01 01:17:38 +00:00
Mikolaj Izdebski
5dfd44ca88
Koji host configuration was split to versioned host_config table
2018-11-01 01:08:30 +00:00
Mikolaj Izdebski
4321755fb3
staging-sync/koji: Fail on psql errors
2018-11-01 01:00:21 +00:00
Rick Elrod
4a60ddc875
Nuke pkgdb some more... and probably break everything.
...
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-07-19 20:40:14 +00:00
Mikolaj Izdebski
30533d7315
Create /mnt/koji/compose/updates in stg koji
2018-05-22 21:33:35 +00:00
Mikolaj Izdebski
0891cde047
Fix bodhi principal in stg koji
2018-05-22 21:22:13 +00:00
Mikolaj Izdebski
8fc148dfec
koji-sync: stop nfs before nuking /mnt/fedora_koji
2018-05-22 20:47:13 +00:00
Mikolaj Izdebski
bfd5c44862
Revert "Install mbuffer on db-koji.stg"
...
This reverts commit 631c617764
.
2018-05-22 19:23:37 +00:00
Mikolaj Izdebski
631c617764
Install mbuffer on db-koji.stg
2018-05-22 14:51:56 +00:00
Mikolaj Izdebski
56526fbbb5
Fix wrong task name
2018-05-22 14:49:38 +00:00
Randy Barlow
005c9e1dee
Bodhi's staging-sync playbook now also uses the openshift_pods var.
...
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
2018-05-17 18:37:22 +00:00
Mikolaj Izdebski
29f3682334
Koschei doesn't need to know dist-git branches any longer
2018-05-17 08:45:01 +00:00
Mikolaj Izdebski
746b086e78
Create collection during non-BDR Koschei sync
2018-05-17 08:42:55 +00:00
Mikolaj Izdebski
a8a0166171
Try to fix syntax
2018-05-17 07:18:38 +00:00
Mikolaj Izdebski
55c4cadb0d
Comment out Koschei BDR sync for now
2018-05-17 07:17:28 +00:00
Mikolaj Izdebski
411998beb7
Make Koschei staging sync work with both BDR and non-BDR DBMS
2018-05-17 07:14:21 +00:00
Patrick Uiterwijk
070e889cf4
When running oc commands, make sure to pass namespace (project)
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-05-07 15:57:26 +02:00
Randy Barlow
eedee73479
Stop/start openshift bodhi services when syncing database.
...
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
2018-04-16 17:59:06 +00:00
Mikolaj Izdebski
ded045181f
Add buildvm-stg hosts to container channel
2018-03-28 09:39:38 +00:00
Mikolaj Izdebski
a3c6fb1061
Fix another typo
2018-03-08 03:36:54 +00:00
Mikolaj Izdebski
823e3efb37
Fix a typo
2018-03-08 03:34:46 +00:00
Mikolaj Izdebski
beb0966299
Allow staging mbs to use koji content generator
2018-03-08 03:21:16 +00:00
Mikolaj Izdebski
e4eec6ddea
In staging koji grant admin perm to mbs.stg
2018-03-08 03:06:09 +00:00
Mikolaj Izdebski
c7c272ca89
Fix kojira staging principal
2018-03-03 09:00:25 +00:00
Mikolaj Izdebski
8036100108
fix quotation
2018-03-03 05:43:18 +00:00
Mikolaj Izdebski
833c2340d0
koji stg sync: remount nfs, restart kojid
2018-03-03 05:40:49 +00:00
Mikolaj Izdebski
fcc48ee1a9
create /mnt/fedora_koji/koji directory too
2018-03-03 05:25:12 +00:00
Mikolaj Izdebski
07afb0e009
nuke old staging koji date during sync with production
2018-03-03 05:21:48 +00:00
Mikolaj Izdebski
fa7975df4b
Switch koji staging sync back to db-koji01.stg
2018-03-03 01:53:06 +00:00
Mikolaj Izdebski
bc32f6f367
After stg koji sync NFS on composer.stg needs to be remounted too
2018-02-28 23:52:59 +00:00
Mikolaj Izdebski
b9a6da7eeb
Try some pipe buffering for faster db-koji stg sync
2018-02-28 18:27:23 +00:00
Mikolaj Izdebski
32a9204273
koji01.stg is not supposed to run kojid
2018-02-28 17:41:29 +00:00
Mikolaj Izdebski
7150a81a04
Add empty buildvm-s390x-stg inventory group
2018-02-28 17:37:12 +00:00
Mikolaj Izdebski
9a12f6bf79
Run koji-reset-staging.sql in a single db transaction
...
If the script fails for some reason, we want DB to be in consistent
state so that the script can be fixed and re-ran more easily.
2018-02-28 17:31:33 +00:00
Mikolaj Izdebski
a97de30d27
Koji stg sync: run vacuum in a separate task
2018-02-28 17:30:20 +00:00
Mikolaj Izdebski
38786f14cf
De-duplicate builder setup code in koji-reset-staging.sql
2018-02-28 17:16:52 +00:00
Mikolaj Izdebski
d0b9678cbb
Staging koji hub is not supposed to be builder
2018-02-28 16:53:34 +00:00
Mikolaj Izdebski
0e632b2f51
Add more koji stg sync steps to be ansiblized later
2018-02-28 16:27:27 +00:00
Mikolaj Izdebski
1aa06f2fa9
Make sure koji role is set up before syncing db
2018-02-28 01:06:12 +00:00
Mikolaj Izdebski
a2899a7817
Use postgresql_db module to recreate koji stg db
2018-02-28 00:48:22 +00:00
Mikolaj Izdebski
d1b11e0dbc
Run koji staging sync on db-koji02.stg for now
2018-02-28 00:28:30 +00:00
Mikolaj Izdebski
1b78a55604
Koji sync: try downloading DB dump in parallel to restoring it
2018-02-28 00:24:57 +00:00
Mikolaj Izdebski
1f694e6b5b
Don't sync Koji buildroot listings in staging
...
buildroot_listing is by far the biggest table in koji db (>100 GB for
table data, plus indexes) and it's rarely used - skipping it saves us
some considerable amount of time. If the table turns out to be
needed, the playbook can always be updated not to exclude it.
2018-02-10 03:29:50 +00:00
Mikolaj Izdebski
4891cfb03e
Clean imageinfo listings during Koji staging sync
2018-02-10 03:14:01 +00:00