Commit Graph

458 Commits

Author SHA1 Message Date
Jakub Kadlcik
742f68d258 I've added some templates, but forgot to install them 2019-06-11 02:17:13 +02:00
Pavel Raiskup
b22fd62355 Enable yum/dnf caches again
We now have copr-rpmbuild 0.29 on our builder VMs, and that
version automatically removes caches after each build.

This reverts commit 1bde1869f8.
2019-06-10 08:28:50 +02:00
Jakub Kadlčík
d95e62fd67 copr-be-dev: automatize cert renewal with certbot-renew.timer 2019-06-07 00:01:06 +02:00
Pavel Raiskup
1bde1869f8 copr: builders: temporarily disable yum_caches again
This causes problems to @python/python3.8 project, where is too
heavy re-use of VMs (several hundreds of builds on one VM).

This reverts commit 9988126185.
2019-06-06 10:54:10 +02:00
Pavel Raiskup
618c1be2fe copr: backend: flip resalloc against postgresql 2019-06-06 09:11:42 +02:00
Pavel Raiskup
03cd3234a2 copr: backend: install start postgresql server for resalloc 2019-06-06 08:45:54 +02:00
Pavel Raiskup
9988126185 copr: don't disable yum/dnf caches
We re-use the mock profile several times during one package build,
and it doesn't make sense to re-download the repo metadata all the
time.

We have nowadays namespaced directory under /var/cache/mock
per-build ID, so there's no risk that we'll use some very old
caches because of 'max_age_days' or 'max_metadata_age_days' config
options.
2019-06-05 10:28:28 +02:00
Pavel Raiskup
8963287ddd copr: provision: disable systemd-resolved
TODO: find the reason why this is even enabled
2019-05-30 09:44:08 +02:00
Pavel Raiskup
00a07f94e4 copr: backend: provisioning hacks to make bootstrap chroot work 2019-05-28 06:33:29 +02:00
Pavel Raiskup
6cae0779ee copr: builder: fix bootstrap_chroot feature?
Put 'elfutils-libelf', otherwise
devtoolset-3-elfutils-libelf-0.161-1.el7.x86_64 from scl
repositories might be installed by dnf into bootstrap chroot.
2019-05-27 19:07:29 +02:00
Pavel Raiskup
abffb6b3b3 copr: backend: install virt stuff for spawning aarch64 boxes 2019-05-27 15:59:56 +02:00
Pavel Raiskup
4bc27555b7 copr: enable aarch64 builders in production 2019-05-27 15:32:23 +02:00
Pavel Raiskup
27c64331b1 copr: provision: move to F30 2019-05-27 15:04:54 +02:00
Pavel Raiskup
b37182fcc8 copr: provision - install ethtool again
This one is fedora-copr-only hack, and as such the ethtool package
isn't supposed to be put as Requires: into copr-builder.  To not
C&P between x86_64/ppc64le playbooks, put the ethtool hack into
separate tasks file.
2019-05-27 07:38:30 +02:00
Pavel Raiskup
6d834e67c4 copr: builderpb_nova, no need to explicitly install nosync
It is installed as copr-builder's dependency.
2019-05-27 07:14:03 +02:00
Jakub Kadlčík
725fa14bf1 Fix a typo 2019-05-19 15:10:50 +02:00
Pavel Raiskup
6f5c9fbb76 copr: run /usr/bin/copr-update-builder again
But this time (correctly) only for staging...
2019-05-18 20:48:04 +02:00
Jakub Kadlčík
4de28816da Do not run /usr/bin/copr-update-builder script
No such script is currently provided by `copr-builder` package
and therefore the playbook fails and we are not able to spawn
builders for Copr
2019-05-18 15:20:41 +02:00
Pavel Raiskup
d6b0349846 copr: backend: fix selinux context for letsencrypt 2019-05-15 12:03:49 +02:00
Pavel Raiskup
49a2ca17a7 copr: stg-backend: fix lighttpd config for certbot
- server.document-root is not needed /.well-known/
- alias.url needs mod_alias loaded
2019-05-15 10:25:34 +02:00
Pavel Raiskup
acd01d8519 copr: builder: add infra repo only when preparing image
This is because on aarch64 builders we handle this a little bit
differently, and it would result in having the repo enabled twice.
2019-05-14 09:36:51 +02:00
Pavel Raiskup
346868d45a copr: don't enforce yum-deprecated on builder
.. so we don't fail if yum-deprecated isn't available (F30 builder
case).  If the 'yum.rpm' package that provides /bin/yum-deprecated
script _is_ available => mock would use it anyways (it's the case
on F28 builder).
2019-05-13 22:10:31 +02:00
Pavel Raiskup
8edcf08f36 copr: backend provision c&p fix 2019-05-13 16:19:56 +02:00
Pavel Raiskup
1fd3dc0ca5 copr: builders: remove yum on F30+ 2019-05-13 15:58:41 +02:00
Pavel Raiskup
91825fa419 copr: distribute devel/production to spawn/terminate playbooks 2019-05-13 15:44:57 +02:00
Pavel Raiskup
6842ba7df8 copr: rpkg.conf needs to go to files/ dir 2019-05-13 13:18:29 +02:00
Pavel Raiskup
88ffbff08a copr: aarch64 spawner needs rpkg config as well 2019-05-13 13:11:04 +02:00
Pavel Raiskup
1d8de61b6d copr: resalloc homedir again 2019-05-13 13:05:23 +02:00
Pavel Raiskup
58f75e10a2 copr: aarch64 spawner needs rpmbuild config 2019-05-13 13:02:58 +02:00
Pavel Raiskup
006ccfe283 copr: run ansible through Python 3 also on aarch64 builders 2019-05-13 12:53:47 +02:00
Pavel Raiskup
59eb1bf221 copr: be: resalloc needs nova_cloud_vars.yml 2019-05-13 12:44:00 +02:00
Pavel Raiskup
dcc6854236 copr: vm-aarch64-new: resalloc home dir fix once more 2019-05-13 12:30:47 +02:00
Pavel Raiskup
9b375e79e5 copr: fix resalloc home dir in vm-aarch64-new
roles/copr/backend/files/resalloc_provision/vm-aarch64-new
2019-05-13 12:28:32 +02:00
Pavel Raiskup
e3f121fe87 copr: remove '-' typo 2019-05-13 12:14:52 +02:00
Pavel Raiskup
897334fc94 copr: don't use colon in task 'name' 2019-05-13 12:13:52 +02:00
Pavel Raiskup
4f58067295 copr: aarch64 spawning via resalloc-server
For now enable this only on stg.  Imported from:
https://github.com/praiskup/fedora-copr-spinup-aarch64
2019-05-13 11:09:14 +02:00
Pavel Raiskup
f0b6182aeb copr: don't install dnf-utils in provision builder
The dnf-utils package is not installable together with yum-utils
on Fedora 28, so even though it's needed for F30 - it would break
F28 spinup scripts.

To be precise - from F30 we should move to `copr-builder` package
anyways, which will bring all the necessary deps with itself; so
we'll remove the list entirely.
2019-05-13 09:16:32 +02:00
Pavel Raiskup
8b1e3d8d93 copr: BE builderpb* playbooks can use Python 3 interpreter
It's actually needed once we move to Fedora 30 builders.
2019-05-13 08:05:34 +02:00
Pavel Raiskup
4040efd455 copr: don't use absolute reference to /copr/provision 2019-05-09 10:52:19 +02:00
Pavel Raiskup
50419c7122 copr: install dnf-utils, not yum-utils
The yum-utils package is not installable on F30, while 'yum-utils'
is provided by dnf-utils for some time.
2019-05-09 10:52:19 +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
Pavel Raiskup
c7e2748a55 copr: ensure the newest python-srpm-macros is on builders
Resolves: rhbz#1700028
2019-04-18 09:35:17 +02:00
Pavel Raiskup
2c88e936ac copr: shut down broken ssh connection to builder after 3x60s 2019-04-18 09:35:17 +02:00
Jakub Kadlčík
f8060b5a90 Allow 'copr' user to run 'sign' command
See https://pagure.io/copr/copr/issue/636

By default only root can run the `sign` command. This
check is applied within obs-signd code. We need to
allow regular user in the config, see `man sign.conf`.

Also /usr/bin/sign is owned by root:obsrun with
-rwsr-x--- hence we need to add a user to the obsrun group.
2019-04-05 09:52:28 +02:00
Pavel Raiskup
7459bed158 copr: quote with_items
This seems to be caused by some asynchronous update of ansible package
on copr backend:

    The error appears to have been in
    '/home/copr/provision/provision_builder_tasks.yml': line 45,
    column 7, but may
    be elsewhere in the file depending on the exact syntax problem.
    The offending line appears to be:

      with_items:
        - @copr/copr
          ^ here
2019-04-02 19:08:26 +00:00
Miroslav Suchý
44650c688e copr: squash_actions is deprecated 2019-04-02 10:27:39 +02:00
Jakub Kadlčík
cd53f6e192 Enable both copr and copr-dev repos for staging Copr builders 2019-03-12 10:16:12 +01:00
Miroslav Suchý
4659d4ae7d copr: remove rawhide and suse config
no need to copy them, they are already in mock-core-config and in fact the rawhide config in this directory is old one - not updated after branching
2019-03-08 16:40:53 +01:00
clime
d4537f57cf copr-builder: remove mirrors.fp.o ~ proxy01 alias so that we don't rely on just a single proxy
historically proxy01 worked the best for us but now after
https://pagure.io/fedora-infrastructure/issue/7553, the situation
could be better.

alternative would be to use proxy01 and proxy10 which are both
in phx2 that would require something else than /etc/hosts alias.
2019-02-15 13:35:59 +01:00
Miroslav Suchý
3604128d55 copr: we are using python3 now 2019-02-15 11:27:27 +01:00