Commit graph

21067 commits

Author SHA1 Message Date
Nils Philippsen
51a4fa8639 logging: Make FM config be owned by countme user
This is so the various scripts running under the countme user actually
can read it and send messages on the bus.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-08-11 15:11:24 +00:00
Aurélien Bompard
56440ef994
Build the new datanommer on python 3.9
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2021-08-11 15:28:38 +02:00
Michal Konečný
98ea6b11fc distgit: Add pull_request_close ACL
Currently it's not possible to create token with pull_request_close ACL
for user (see https://pagure.io/pagure-dist-git/issue/144).

This commit will allow users to add pull_request_close ACL to their
token. The user is still validated if it has the permission, so adding
this ACL to user token doesn't allow user to use API to close any PR
currently opened in dist-git.

Thanks @pingou for helping me with this.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2021-08-11 15:22:42 +02:00
Lenka Segura
bc57a02675 datanommer: porting to openshift 2021-08-11 12:40:38 +00:00
Adam Saleh
db936062b3 Add more message-based tracing to log01 scripts 2021-08-11 11:18:17 +00:00
David Kirwan
b7be2d3c40 metrics-for-apps: commeting out the bootstrap node for ocp4stg
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2021-08-11 12:46:46 +09:00
Kevin Fenzi
38fa66b00b Revert "metrics-for-apps: commenting out ocp4 bootstrap node from proxy configs"
This reverts commit 849b729578.
2021-08-10 19:31:42 -07:00
David Kirwan
849b729578 metrics-for-apps: commenting out ocp4 bootstrap node from proxy configs
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2021-08-11 10:14:18 +09:00
Kevin Fenzi
ad2d0a4a4e haproxy: Try dropping ssl here.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-08-10 18:02:45 -07:00
Clement Verna
ea2354658f Remove fpdc playbooks and config.
Signed-off-by: Clement Verna <cverna@tutanota.com>
2021-08-10 20:37:12 +00:00
Tomas Hrcka
e15133639e Branching f35 from rawhide
Signed-off-by: Tomas Hrcka <thrcka@redhat.com>
2021-08-10 15:17:02 +00:00
František Zatloukal
92f195d899 Revert "oraculum: Use extremly WIP branch on stg"
This reverts commit 2400b318f4.
2021-08-10 15:31:24 +02:00
Pavel Raiskup
d3f399275b copr-be: put the copr-ping.log back to /var/log 2021-08-10 13:46:27 +02:00
Pavel Raiskup
881764b345 copr-be: copr-ping: fix wrong indentation 2021-08-10 12:51:54 +02:00
Pavel Raiskup
eb4c6fd073 copr-be: copr-ping: logging to stdout 2021-08-10 11:22:11 +02:00
Pavel Raiskup
d8872b6300 copr-be: copr ping :-( fix no-op increment 2021-08-10 11:06:13 +02:00
Pavel Raiskup
11b27cd156 copr-be: copr-ping: INFO level in check script 2021-08-10 11:00:29 +02:00
Pavel Raiskup
a0628a6c37 copr-be: copr-ping: print OK status, and more info upon failure 2021-08-10 10:57:15 +02:00
Aurélien Bompard
73f19b84e3
Use import instead of include
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2021-08-10 10:54:18 +02:00
Pavel Raiskup
cec8ae4147 cpor-be: copr-ping: run restorecon even when log is created 2021-08-10 10:42:46 +02:00
Pavel Raiskup
2cda9ec28d copr-be: copr-ping: selinux issue #1, fix #2 2021-08-10 10:38:13 +02:00
Aurélien Bompard
76d3ead677
Deploy TimescaleDB on staging datanommer DB
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2021-08-10 10:37:24 +02:00
Pavel Raiskup
0df8c3564b copr-be: copr-ping: selinux issue #1 2021-08-10 10:34:33 +02:00
Pavel Raiskup
5a17f06a45 copr-be: copr-ping: give nagios group r-x permissions 2021-08-10 10:15:58 +02:00
Pavel Raiskup
6062eec80b nagios: drop copr_external.cfg from services 2021-08-10 09:59:23 +02:00
Pavel Raiskup
d2f9b772e9 nagios: move copr-ping to internal 2021-08-10 08:51:55 +02:00
Kevin Fenzi
ecbda7c851 haproxy: add staging ocp cert for api-int
haproxy needs to terminate ssl for the api part of the ocp cluster.
We can't do this in apache without listening for non standard ports and
that could be a mess, so terminate ssl here and talk into the cluster

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-08-09 10:51:13 -07:00
David Kirwan
d78d1070f8 metrics-for-apps: terminate tls for api/api-int in haproxy
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2021-08-09 17:48:38 +00:00
Pavel Raiskup
ff215ea2b9 nagios: external: define copr_* hostgroups 2021-08-09 15:25:19 +02:00
Pavel Raiskup
f76859775c nagios: pick up copr_external.cfg services 2021-08-09 13:50:30 +02:00
Jakub Kadlcik
9a8acc79ae nagios: enable disk monitoring for copr instances
I think that / monitoring should work by default just by
setting `nrpe: true` because of

    define service {
      hostgroup_name	all, !mincheckgrp
      service_description   Disk_Space_/
      check_command		check_by_nrpe!check_disk_/
      use                   disktemplate
    }
2021-08-09 11:45:53 +00:00
Pavel Raiskup
73ba7d25b1 copr-be: fixup copr-ping nagios mapping 2021-08-09 13:34:25 +02:00
Pavel Raiskup
54c5c85eaa copr-be: copr-ping: fix log destination 2021-08-09 12:21:05 +02:00
Pavel Raiskup
77e072a0b4 copr-be: copr-ping: missing touch 2021-08-09 12:12:39 +02:00
Pavel Raiskup
f4ab3f6999 copr-be: copr-ping: fix variable name clash 2021-08-09 12:09:31 +02:00
Pavel Raiskup
b16a5e3411 copr-be: add forgotten vars file 2021-08-09 12:01:02 +02:00
Pavel Raiskup
0771b0e4ad copr-be: install ping nrpe task 2021-08-09 11:59:03 +02:00
Pavel Raiskup
06f2e4b236 copr-be: copr-ping: use system paths
So NRPE can execute/read those files.  Also update the log file format a
bit.
2021-08-09 11:45:22 +02:00
David Kirwan
46d54fbb35 metrics-for-apps: Reverting recent changes 2021-08-06 22:45:22 +09:00
David Kirwan
a1a8c5405c metrics-for-apps: adding next-server config for ocp01-03 nodes
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2021-08-06 12:53:06 +09:00
David Kirwan
ae3e5fedc2 metrics-for-apps: dhcp conf ocp controlplane vms
Signed-off-by: David Kirwan <dkirwan@redhat.com>
2021-08-06 12:05:48 +09:00
Nils Philippsen
f703e7a771 Add and use optimized http log syncing script
The previous one synced all hosts serially and ran rsync for each log
file. This reimplements the shell script in Python, with these changes:

- Run rsync on whole directories of log files, with much reduced
  overhead.
- Use a pool of five workers which process hosts in parallel.

Additionally, remove download-rdu01.vpn.fedoraproject.org from the list
of synced hosts.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-08-05 16:44:47 +00:00
Pavel Raiskup
ea1c19d522 copr-be: copr-ping: fix the checker 2021-08-05 16:36:31 +02:00
Pavel Raiskup
29d9c262e2 copr-be: copr-ping: ping checker 2021-08-05 16:33:21 +02:00
Pavel Raiskup
b91a40cf6e copr-be: copr-ping: ping the stating only daily
Not each half-an-our.
2021-08-05 15:35:21 +02:00
Pavel Raiskup
5e9ee1e814 copr-be: copr-ping: setup both prod/stg instances 2021-08-05 15:32:30 +02:00
Pavel Raiskup
6a582f9ef9 copr-be: copr-ping: always replace the ping script 2021-08-05 15:19:32 +02:00
Pavel Raiskup
cd64609f96 copr-be: copr-ping: I wanted to add a tag there 2021-08-05 15:18:21 +02:00
Pavel Raiskup
616364d1c6 copr-be: copr-ping: new script
Use the cli to submit the build, and dump the exit status to log that
will be later parsed.
2021-08-05 15:17:10 +02:00
Pavel Raiskup
c2c169bb33 copr-be: copr-ping: we don't need quotes for comments 2021-08-05 15:17:10 +02:00