Commit graph

15 commits

Author SHA1 Message Date
Jakub Kadlcik
07ed75c445 copr: upgrade also python3-copr-common on copr-keygen 2023-01-24 16:23:06 +01:00
Pavel Raiskup
35664cc9a3 copr-be-upgrade: upgrade also copr-cli
Which is needed nowadays for the copr-ping cronjob.
2021-08-26 09:37:49 +02:00
Pavel Raiskup
5628b8d2a5 copr-fe: log alembic upgrade log
The migration time we expect in the following upgrade is somewhere
around 5 minutes.  So it's good to see progress somewhere.
2020-06-10 07:29:26 +02:00
Pavel Raiskup
84cb1a0061 copr-fe: easier logic for upgrade playbook 2020-06-09 20:42:31 +02:00
Pavel Raiskup
ea69eebfe6 copr-fe: make copr-frontend-upgrade.yml more usable
Without shutting httpd down, sometimes - when there's high enough load -
post scriptlet of copr-frontend takes too long to finish (restarging
httpd, gently waiting for existing connections).  But that makes the
outage window larger as httpd doesn't accept the new connections when
shutting down.

So automatize (forced) shutdown of httpd first (when there's existing
frontend update) -> upgrade the package -> run the migrations -> and
make httpd started again.
2020-06-09 20:32:37 +02:00
Pierre-Yves Chibon
fb4bc2cf84 Fix some problems found by ansible-review.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-05-29 10:28:49 +00:00
Pavel Raiskup
164d3d1548 copr: fix hosts specs in upgrade playbooks 2020-04-24 21:34:25 +02:00
Pavel Raiskup
6d32ca5431 copr: backend: assure createrepo_c >= 0.15.5 2020-04-24 21:34:20 +02:00
Pavel Raiskup
17961dc5ce copr: upgrades: add missing packages for upgrade, update dnf-plugins-core 2020-04-24 21:34:20 +02:00
Pavel Raiskup
b2ddae76b5 copr: be: upgrade also prunerepo
https://pagure.io/copr/copr/issue/1139
2020-04-24 21:34:19 +02:00
Pavel Raiskup
96e1c7382a copr: frontend: try to make upgrade script idempotent
https://pagure.io/copr/copr/issue/1138
2020-04-24 21:34:19 +02:00
Pavel Raiskup
8614b33e64 copr: manual playbooks to update copr-common and copr-messaging 2020-04-24 21:34:09 +02:00
Kevin Fenzi
3a907f13bd ansible: Try and mass fix all the manual playbooks to use _ instead of - in group names.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-21 14:49:37 +00:00
Jakub Kadlčík
0ddd5823f8 Update cache before trying to update Copr packages 2019-05-05 20:14:26 +02:00
Jakub Kadlčík
96de11a1bf Create manual playbooks for upgrading Copr instances
There is a problem with our current playbooks, that they can be
executed automatically without us knowing about it. That is an issue
particularly during release process because we can prepare new
packages into infra-tags repo or bodhi and a nightly reprovision
can upgrade to them outside of an outage window or any of us being
prepared for it.

Therefore `groups/copr-*.yml` playbooks *should not* upgrade any
packages, but only ensure, that those packages are installed. For
upgrade, there should be separate `manual/copr/copr-*-upgrade.yml`
playbooks. Because they are located under `manual` directory, it
is secured, that they can't be run automatically.
2019-05-01 18:39:27 +02:00