Commit graph

215 commits

Author SHA1 Message Date
Kevin Fenzi
c84b99223c osbs: raise a glass for it's service
This removes osbs and allmost all it's associated playbooks and files.

It served long and well, but we no longer need it.
flatpaks are building with a koji-flatpak plugin.
base/minimal/toolbox containers are building with kiwi.
We aren't building any other containers right now, and we did they could
be added to kiwi.

This is the end of an era... I look with nostolga on
ansible-ansible-openshift-ansible (a role to setup ansible on a control
host and run it from our ansible).

Good bye osbs!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-03-28 12:52:07 -07:00
Kevin Fenzi
ff6dbdbd6d data-analysis: looks like we are using the python3.11 version of this package now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-01-09 11:37:25 -08:00
Stephen Smoogen
aa5fd4cc4f Move graph dates to 2024-06-30
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2024-01-09 19:23:16 +00:00
Seddik Alaoui Ismaili
5529ede252 drop output message. START and FINISH 2023-11-29 23:48:33 +00:00
Nils Philippsen
a95808355c Make scripts to sync log files more robust
Previously, an expired certificate on log01 made sending messages out of
the scripts fail, which caused a couple days worth of lost logs.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2023-11-28 00:02:59 +00:00
Seddik Alaoui Ismaili
246cc76260 keeps only errors on logging 2023-11-16 14:08:35 +00:00
Kevin Fenzi
3808d867de value01/value01.stg: retire
These are old rhel7 instances. The only thing left on them is fedmsg-irc
(sending to one irc channel, fedora-releng). Move everything to use the
newer rhel8 value02 instead.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-11-15 12:13:38 -08:00
Nils Philippsen
aac912e4c9 Set nullglob for combining HTTP log files
This can cause files named '*' in places where you wouldn’t expect it
otherwise.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2023-11-09 20:42:31 +00:00
Pedro Moura
ec843a62c1 Reformatted main.yml
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2023-07-17 23:36:22 +00:00
Pedro Moura
bae7c13024 Added quotes to avoid errors due to version of find
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2023-07-17 23:36:22 +00:00
Pedro Moura
b0bfe39e7d Add a randomized start time before running compress_logs.sh
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2023-07-17 23:36:22 +00:00
Pedro Moura
00141350c9 Replaced xz with pxz
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2023-07-17 23:36:22 +00:00
Pedro Moura
1b05dd52ba Add script to compress log files every month to reduce storage
Signed-off-by: Pedro Moura <pmoura@redhat.com>
2023-07-17 23:36:22 +00:00
Timothée Ravier
3a79d45596 Remove standalone Kinoite website
Replaced by https://fedoraproject.org/kinoite/
Needs: https://pagure.io/fedora-infra/ansible/pull-request/1479
2023-07-05 23:56:38 +00:00
Kevin Fenzi
a6cafe28ea data-analysis: don't try and get blockerbugs logs since it's in openshift now.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-02 12:18:30 -07:00
a4d2fb7107 retire arm.fedoraproject.org
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2023-05-24 23:57:33 +00:00
Kevin Fenzi
0111ccfe2d Retire old rdu2 space.
This space was in a networking cage thats going away and all the
machines there are old and out of warentee.
This space was intended for disaster recovery purposes.
For that now we have a internal vm that can access our mirrored netapp
storage, so we can sync anything off it we need to when iad2 is down.
I will be resetting up a batcave13 in another datacenter to allow us a
backup ansible/dns control host. bastion13/ns13/proxy13 will likely just
go away forever. download-rdu01 should be replaced by the new
download-cc-rdu01 once we have the new hardware in place for that.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-22 10:09:34 -07:00
Stephen Smoogen
aef2250f24 update the mirrorsdate graph to 2023 2022-12-01 12:24:11 -05:00
Kevin Fenzi
c520b42230 datagrepper has moved to openshift. Remove old ansible remnants.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-02-21 11:44:13 -08:00
Stephen Smoogen
9e2d651e09 We can do daily count data 2 days back and not 3 2022-02-08 09:31:55 -05:00
Stephen Smoogen
c863b78def update mirrors gnuplot for another 6 months 2022-02-04 13:18:11 -05:00
Stephen Smoogen
0a7ac90878 remove hotspot analysis from web-data-analysis. It has been broken for over six months with no requests to fix 2022-01-11 05:42:47 -05:00
Stephen Smoogen
bfb1320bc9 Add a countme for CentOS Stream 9 2022-01-05 13:48:34 -05:00
Stephen Smoogen
b0f46d9ce7 remove getfedora statistics. not run in over year.
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2022-01-05 13:48:34 -05:00
Nils Philippsen
337248e4eb Muffle one more cron job
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-10-04 21:45:04 +00:00
Stephen Smoogen
f79e5d1b43 Add in a message to dbus to see if we can get why files arent getting sorted
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2021-09-30 13:45:39 -04:00
Stephen Smoogen
bb9864402f For some reason we are not sorting the files even though the script says we are. Try to get a result to find out why
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2021-09-29 18:16:43 +00:00
Stephen Smoogen
3e4a02a427 Update gnuplot dates to 2021-12-31. The fact that no one asked for this says that hotspot and getfedora data is not watched 2021-09-29 18:16:43 +00:00
Stephen Smoogen
8dc88ade71 Add some of the EPEL-9 items into things. We need to clean up the code to add in -next counting at some point.
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2021-09-29 18:16:43 +00:00
Stephen Smoogen
960de34413 Fix non-zeroed data
Matthew Miller found that running the awk script over multiple days
caused newer releases than F33 would go up forever. This fix should
zero out all the new variables.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2021-09-29 18:16:43 +00:00
Stephen Smoogen
07076b9f9a Fix traceback in old mirror counting program.
When a corrupt date is found in the log file, I have the program
default of 1970-01-01 but because there is a lookup used it needed to
be 1970-Jan-01 which would then get replaced by 1970-01-01.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2021-09-29 18:16:43 +00:00
Timothée Ravier
4d43b7e377 kinoite.fedoraproject.org: Add site and pipeline
Signed-off-by: Timothée Ravier <tim@siosm.fr>
2021-09-27 19:01:44 +00:00
Nils Philippsen
a0d70d7e4f Move executable scripts into /etc/cron.daily
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-23 10:41:57 +02:00
Nils Philippsen
369487a3bb Don't write normal operational message to stderr
This prevents sending out unnecessary mails when run from the related
cron job:

   condense-mirrorlogs.cron
-> condense-mirrorlogs.sh > /dev/null
-> mirrorlist.py

Additionally, report the failing file name in the case of an error.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-22 10:49:30 +02:00
Nils Philippsen
6ecdab22c0 Clean up messages issued from sync-http-logs.py
Previously, the script was very talkative by default. Make the default
to be silent for log levels < WARNING and allow logging (at different
level) to syslog. Additionally, configure the cronjob to log everything
of levels >= INFO to syslog.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-22 10:49:30 +02:00
Nils Philippsen
27b41a491e Deploy mirrors-countme (only) as RPM package
This also ensures that the previously cloned git repository and local
installation of the Python package and associated scripts are removed.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-15 14:41:41 +00:00
Nils Philippsen
cb61463c26 Allow presets for message bodies
This lets users of simple_message_to_bus predefine items which should be
present in all message bodies this way:

export MSGBODY_PRESET="key1=value1 key2=value2"

This doesn't work with spaces in either keys or values, any quotation
will be used verbatim.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 12:40:56 +02:00
Nils Philippsen
a3203d29d9 Get rid of implicit message topic prefix
Callers of simple_message_to_bus need to set and export MSGTOPIC_PREFIX
explicitly.

This decouples the fedora-messaging-utils and web-data-analysis roles.

Additionally, don't assume /bin/sh is /bin/bash.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 12:40:56 +02:00
Nils Philippsen
0b518a7e88 Fix typo
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 10:38:38 +00:00
Nils Philippsen
ecd8ab8383 Merge syncing and combining logs into one cronjob
This should prevent race conditions of the form that logs are attempted
to be combined while syncing those of individual hosts hasn't finished.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 10:38:38 +00:00
Nils Philippsen
a766ec6416 Merge awstats role into web-data-analysis
This is to enable running the syncing and combining scripts in
series rather than from independently scheduled cron jobs.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 10:38:38 +00:00
Nils Philippsen
5e09dce82d Import fedora-messaging-utils role
Importing the role rather than listing it in the playbook lets its tasks
have the tags used in the importing role, i.e. should ensure they are
run when the things that need simple_message_to_bus are installed.

Additionally, don't attempt to install it manually from
web-data-analysis (it isn't found because it lives in a different role).

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-08-16 06:02:37 +00:00
Nils Philippsen
6e62fcbe69 Don't drop temporary files all over the place
When renaming a file over another which is the same hard link, the
rename is a no-op. This left many temporary files in /var/log/hosts
because a file is attempted to be synced (and thus hard-linked between
dated and undated file names) over a couple of days. The solution to
this is how the `ln` command does it: rename, then unlink the temporary
file.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-08-12 09:45:49 +00:00
Adam Saleh
db936062b3 Add more message-based tracing to log01 scripts 2021-08-11 11:18:17 +00: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
Stephen Smoogen
33df23d457 this will give copies of these emails to asaleh and nils so they can see how the cron jobs are working 2021-08-05 06:46:17 -04:00
Stephen Smoogen
b78179ed3c remove an email to smooge@smoogespace.com as debug is done 2021-08-04 08:38:42 -04:00
Adam Saleh
7a013fe511 Send tracing messages to the bus in syncHttpLogs
In the course, fix a typo which reduces stdout spam.

Signed-off-by: Adam Saleh <asaleh@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-07-28 11:23:10 +02:00
Nils Philippsen
c782eceae1 Move syncHttpLogs.sh into web-data-analysis role
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-07-23 13:06:23 +02:00
Stephen Smoogen
9a54f23d1e Fix a lot of unknown arches in mirrorlist.py. Take a stab at fixing some of the graphs in mirrors-data.gp. Let the team figure out a better way to fix the rest. 2021-07-15 05:06:56 -04:00