Commit graph

274 commits

Author SHA1 Message Date
Kevin Fenzi
0067afe12f restart docker service on iptables reloads, and set docker to not restart containers on service restarts 2017-10-12 21:46:01 +00:00
Patrick Uiterwijk
936e8b261a yum accepted pkg=, package calls it name=
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-10-09 00:38:26 +02:00
Patrick Uiterwijk
adcbf72f03 Packageize this, packageize that, packageize the world
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-10-08 22:25:52 +00:00
Adrian Reber
7146663478 mm2-crawler: reduce database load during crawling
The two crawlers used to start 25 threads (each) every 12 hours to crawl
the mirrors. The second crawler was already started two hours later to
reduce the database load. This commit increases the delay of the second
crawler to 6 hours, so that every crawler has the MM database for 6
hours on its own. At the same time the number of parallel crawlers is
reduced from 25 to 20 to also reduce the load on the database.

In addition the crawl timeout has been increased from 3 to 4 hours. This
is related to the fact the especially pub/archive has grown and
pub/fedora with the addition of the modular tree. Crawl timeouts can now
be seen more often, which can lead to mirrors being auto-disabled.

The main reason for these changes is that it can be seen in the logs that
the actual crawling of the mirrors does not always require most of time
but updating the state of all directories of each mirror in the database
can take a very long time. By reducing the number of parallel accesses to
the database, in the best case from 50 to 20, the crawling should get
faster (hopefully).

Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-10-08 13:15:48 +02:00
Adrian Reber
5864ea7d9d mm2.cfg: removed duplicated configuration option
Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-10-08 13:15:24 +02:00
Adrian Reber
45bb43590e mm-propagation: use pdc instead of pkgdb for active releases
The propagation scripts were still using pkgdb to get a list of active
releases. This switches the scripts to use pdc instead of pkgdb. One
difference between pdc and pkgdb is that pkgdb did not mark a release
as active until the actual release day. In pdc the release (in this case
f27) is already marked as active and it is not clear how to filter it
out until the official release.

As the propagation scripts are looking at the updates-released repository
it will not provide useful data for f27 until content is pushed to the
updates-released repository.

Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-10-08 12:56:36 +02:00
Kevin Fenzi
1f84bca291 Revert "Try this f26 container"
This reverts commit aed38a6fa0.
2017-08-04 23:45:34 +00:00
aed38a6fa0 Try this f26 container
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
2017-08-04 21:16:19 +00:00
Kevin Fenzi
fd72855635 Also need to add unlink so it can remove the old non compressed file. 2017-07-03 15:55:02 +00:00
Kevin Fenzi
c2b46df877 initial selinux policy to allow logrotate to rotate mirrorlist container log files 2017-07-03 15:55:02 +00:00
Kevin Fenzi
ceec6b4155 Hopefully fix the reason mirrorlist logs were not rotating 2017-06-26 18:12:27 +00:00
Adrian Reber
d7b9185c9a mirrormanager2: adapt umdl cron to new scripts
With the stat()-less umdl and adapted wrapper script the umdl check can
now run more often.

Every 30 minutes:
 * fedora
 * epel
 * fedora-secondary

Every 2 hours:
 * alt
 * archive

Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-06-18 17:23:27 +02:00
Adrian Reber
75f84107a8 mirrormanager2: remove last-sync fedmsg script
Now that umdl can run much faster and often the message bus is no
longer queried. Only the ctime of the fullfiletimelist-* is checked.

Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-06-18 17:17:32 +02:00
Adrian Reber
809bb3f2ce mirrormanager2: change umdl-required script
The umdl-required script used to query the message bus if there have
been changes on the master mirror. With the new stat()-less umdl
implementation the message bus is no longer queried but only the ctime
of the fullfiletimelist-* is checked to see if it has changed since the
last run.

Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-06-18 17:14:21 +02:00
Adrian Reber
9c995e30c3 mirrormanager2: add new options to mirrormanager config
Disable master rsync server ACL
Fedora does not use it and therefore it is set to False
    MASTER_RSYNC_ACL = False

The netblock size parameters define which netblock sizes can be
added by a site administrator. Larger networks can only be added by
mirrormanager admins.
    MM_IPV4_NETBLOCK_SIZE = '/16'
    MM_IPV6_NETBLOCK_SIZE = '/32'

Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-06-17 13:39:54 +02:00
Adrian Reber
edb1cbdd27 mirrormanager2: also define UMDL_PREFIX in production
Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-06-17 13:34:44 +02:00
Kevin Fenzi
600bde4aac try 2 more threads here 2017-05-17 22:01:56 +00:00
Kevin Fenzi
2272cdd249 try out new mirrorlist-container, first in stg, then in prod 2017-04-26 17:49:05 +00:00
Kevin Fenzi
0acfaa2a7e Fix handlers, roles, and tasks to be handlers_path, roles_path and tasks_path so as not to conflict with ansible variables.
Fix duplicate definition of become default that was in group_vars/all as well as vars/global.
2017-04-13 15:46:14 +00:00
Adrian Reber
0b2e306561 mirrormanager: adapt statistics script to new logfiles
Signed-off-by: Adrian Reber <adrian@lisas.de>
2017-04-07 12:16:14 +00:00
Kevin Fenzi
f59a705675 fix mirrorlist-container logrotate to work with stats 2017-04-06 19:26:43 +00:00
Kevin Fenzi
e6a9eeabed ok, try 30 and if that does not work will have to figure something better out 2017-02-13 23:25:01 +00:00
Kevin Fenzi
dd014ea9f3 try 25 seconds 2017-02-13 22:19:45 +00:00
Kevin Fenzi
9bd7c0fb11 increase this to 20 sec 2017-02-13 20:51:10 +00:00
Kevin Fenzi
f362525f73 move this cron job to 15 after to give more time for sync 2017-02-13 20:07:37 +00:00
Kevin Fenzi
7fe9ad348e setup mirrorlist containers to report stats and add a mirrorlist-proxy group for easier handling 2017-02-13 17:36:50 +00:00
Kevin Fenzi
85cb5f4281 looks like sometimes 90s is not enough to stop a container service 2017-02-10 23:48:31 +00:00
Patrick Uiterwijk
839bc15371 Enable proxy05 local mirrorlist
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-09 22:47:41 +00:00
Kevin Fenzi
e192879482 add logrotate for container mirrorlist logs 2017-02-09 22:40:22 +00:00
Patrick Uiterwijk
2b8337972d Get rid of the mirrorlist-proxy logs
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-09 22:38:14 +00:00
Kevin Fenzi
0c46d0e4a1 drop newlines from nc in restart container script 2017-02-09 19:33:14 +00:00
Kevin Fenzi
0fd8d4045d use : here as continue does not make sense 2017-02-09 01:30:05 +00:00
Patrick Uiterwijk
2160e9be1e Also drain local2
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 23:49:06 +00:00
Patrick Uiterwijk
790b229039 Drain local mirrorlist1 when we go update
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 23:45:01 +00:00
Patrick Uiterwijk
445ad6aaff Fail on status >=400
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 23:19:19 +00:00
Patrick Uiterwijk
ad58a2b0fa Turns out this was invalid syntax
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 23:13:22 +00:00
Patrick Uiterwijk
b5f498e51a Skip the Continue tags, as they're useless
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 22:59:26 +00:00
Patrick Uiterwijk
78b1fe0087 Move mirrorlist service stuff into template and deploy -2 image
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 22:43:15 +00:00
Patrick Uiterwijk
0b97892782 Bump to 3.7-2
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 22:36:32 +00:00
Kevin Fenzi
fe60ef5d15 fix mode on mirrorlist-proxy restart script 2017-02-08 21:04:14 +00:00
Kevin Fenzi
5d963eb31b add proxy02 to get pkl synced from mm-backend01 2017-02-08 20:46:23 +00:00
Kevin Fenzi
41528495d7 fix file invocation 2017-02-08 20:43:28 +00:00
Kevin Fenzi
4b59b4cd0b add missing tag 2017-02-08 20:39:39 +00:00
Kevin Fenzi
92a478245e add some vars 2017-02-08 20:14:50 +00:00
Kevin Fenzi
c21c4384e3 initial setup for syncing pkl to mirrorlist containers on proxies 2017-02-08 20:02:37 +00:00
Kevin Fenzi
35450d4a73 add in cron job for hourly restart/pkl reloads of mirrorlist containers 2017-02-08 19:46:30 +00:00
Kevin Fenzi
240379428a initial rough draft container reload script 2017-02-08 19:22:04 +00:00
Patrick Uiterwijk
db049bf744 Fix exit codes
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-02-08 18:49:24 +00:00
Kevin Fenzi
ecdb0eb06c make mirrorlist containers use seperate pkls 2017-02-08 18:43:07 +00:00
Kevin Fenzi
87f785d315 have mirrorlist container use real build 2017-02-07 21:44:35 +00:00