Commit graph

438 commits

Author SHA1 Message Date
Tomas Kopecek
f06a8c0bca fix flake8 errors 2020-08-25 13:05:02 +02:00
Yu Ming Zhu
92dd493e98 add delete_batch_size into legacy_opts 2020-07-27 08:59:40 +00:00
Yu Ming Zhu
2aa7ff67bb kojira: remove unused delete_batch_size
fixes: #2396
2020-07-27 08:58:42 +00:00
Mike McLean
7afc7628ad kojira: drop reference to krb_login
this call to krb_login was accidentally re-introduced with a merge commit.

Fixes https://pagure.io/koji/issue/2400
2020-07-24 17:21:08 -04:00
Simo Sorce
2c663f0b73 Use requests_gssapi instead of requests_kerberos
Retain ability to use the old requests_kerberos where request_gssapi is
not available yet.

Signed-off-by: Simo Sorce <simo@redhat.com>
2020-07-24 15:32:42 -04:00
Tomas Kopecek
d75a3f3b52 remove remaining options 2020-07-24 15:08:47 -04:00
Tomas Kopecek
f8419e3626 remove deprecated krbV support
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Tomas Kopecek
40a55908ab kojira: estimate better expire_ts 2020-07-24 13:40:26 +02:00
Tomas Kopecek
74f18b687e kojira: threaded repo deletion
Fixes: https://pagure.io/koji/issue/2336
2020-07-24 13:40:26 +02:00
Tomas Kopecek
19295bf7da kojira: drop kojira.sysconfig
Fixes: https://pagure.io/koji/issue/2171
2020-06-30 14:48:21 +02:00
Tomas Kopecek
dbf1d13364 koji-gc: check retagged builds correctly 2020-06-25 10:47:20 +02:00
Tomas Kopecek
7c0acaaa10 koji-gc: fix py3 compare behaviour for dicts
Fixes: https://pagure.io/koji/issue/2325
2020-06-25 10:47:20 +02:00
Tomas Kopecek
bc378d1775 more debug info for un/tracked tasks in kojira
Relates: https://pagure.io/koji/issue/2119
2020-06-24 14:56:52 +02:00
Kevin Fenzi
fa8ac96d54 clean_old option was duplicated on clean_empty
The --no-old option wouldn't work because the check was checking for
--no-empty, and --no-empty was disabling both checks. :)

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-23 12:32:51 +02:00
Tomas Kopecek
2baa24bd4e kojira: replace deprecated Thread.isAlive()
From py 2.7 exists an alias is_alive, so it is safe to replace it.

Fixes: https://pagure.io/koji/issue/2312
2020-06-18 15:35:51 +02:00
Nils Philippsen
ffd282031d Fix logic detecting directories
Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-06-16 17:39:01 +02:00
Tomas Kopecek
bf45a59bac Don't break on renamed tag
Fixes: https://pagure.io/koji/issue/1965
2020-06-16 11:21:11 +02:00
Tomas Kopecek
0f69eabee1 kojira: swap first_seen with latest mtime for repo
first_seen is measured from start of the kojira process. This is
inconsistent between runs and short-lived processes will never delete
some repos. Replace it with mtime of repo directory, it still should be
sufficient indicator of age (if it exists).

Fixes: https://pagure.io/koji/issue/2139
2020-06-16 11:17:24 +02:00
Yu Ming Zhu
53982e3b6c koji-gc: set smtp_host to localhost by default
fixes: #2252
2020-06-16 10:04:35 +02:00
Tomas Kopecek
71edb2fa95 koji-gc: fix cc/bcc e-mail handling
Relates: https://pagure.io/koji/issue/2169
2020-06-09 10:41:40 +02:00
Tomas Kopecek
9f54386279 koji-gc: fix history order
Fixes: https://pagure.io/koji/issue/2270
2020-06-02 14:19:08 +02:00
Tomas Kopecek
9e6aabf4ff koji-gc: various typos in maven path
Fixes: https://pagure.io/koji/issue/2152
2020-05-26 09:27:14 +02:00
Tomas Kopecek
058b8d83c6 fix indentation 2020-05-18 13:30:11 +02:00
Tomas Kopecek
624229784c hide bcc addresses
Fixes: https://pagure.io/koji/issue/2169
2020-05-18 13:30:11 +02:00
Alex Iribarren
24e8cdbbf6 Add CC/BCC for email notifications 2020-05-18 13:30:11 +02:00
Ken Dreyer
25d7970c54 koji-gc: add systemd unit files 2020-05-13 13:45:30 +02:00
Tomas Kopecek
1bf711347f kojira: use cached getTag for external repos
Fixes: https://pagure.io/koji/issue/2156
2020-05-13 12:51:31 +02:00
Tomas Kopecek
c636f56526 update comments 2020-05-13 10:45:37 +02:00
Tomas Kopecek
0e5b54f32d cli: deprecate --ca
Fixes: https://pagure.io/koji/issue/2182
2020-05-13 10:45:37 +02:00
Tomas Kopecek
64640e4328 fix flake8 errors 2020-05-12 15:37:26 +02:00
Tomas Kopecek
bd59d3f985 replace krb_login with gssapi_login 2020-05-12 15:28:15 +02:00
Tomas Kopecek
b1eac8a903 koji-gc: support request_kerberos
Fixes: https://pagure.io/koji/issue/2143
2020-05-12 15:28:15 +02:00
Tomas Kopecek
919d189c2e koji-gc: test existence of trashcan tag
Fixes: https://pagure.io/koji/issue/2190
2020-05-12 15:27:02 +02:00
Ken Dreyer
819db9b642 koji-sweep-db: use "Type=oneshot" for systemd
"oneshot" is the appropriate choice for periodic cleanup scripts.
2020-05-05 11:08:11 +02:00
Yu Ming Zhu
c60080fb79 koji-utils: only requires /usr/bin/python2 on rhel<=7
fixes: #2208
2020-04-29 14:25:52 +02:00
Tomas Kopecek
58ef1338a8 fix flake8 2020-04-22 14:52:37 +02:00
Tomas Kopecek
539e024257 kojira: queue status file
Fixes: https://pagure.io/koji/issue/2023
2020-04-22 13:53:08 +02:00
Tomas Kopecek
0132313f92 replace logging.warn with warning
call is deprected in python 3.7

Fixes: https://pagure.io/koji/issue/2135
2020-04-22 13:47:15 +02:00
Ken Dreyer
b13487d34f kojira: remove duplicate Kerberos configuration boilerplate
eea730300a added a dedicated section for
Kerberos authentication to kojira.conf. It refers to the canonical
location /etc/kojira/kojira.keytab.

Prior to this change, there were two "kerberos" sections in kojira.conf.
Remove the older stale one, since that refers to the old
"/etc/kojira.keytab" file path, and
f232e49194 defaults to
/etc/kojira/kojira.keytab instead.
2020-04-22 09:51:28 +02:00
Mike McLean
08e52da156 adjust grammar 2020-04-21 08:25:04 -04:00
Tomas Kopecek
3aca7b43a6 turn off checking external repos by default
Fixes: https://pagure.io/koji/issue/2159
2020-04-21 10:31:24 +02:00
Igor Raits
f232e49194
Set default keytab for kojira
kojid and other services koji provide have default keytab, there is no
reason why kojira should not have this.

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-04-03 18:00:16 +02:00
Tomas Kopecek
713e657555 remove incomprehensible check 2020-04-02 10:35:16 +02:00
Tomas Kopecek
751862f1b1 kojira monitors external repos changes
Fixes: https://pagure.io/koji/issue/512
2020-04-02 10:35:16 +02:00
Mike McLean
208ec10f92 kojira: be tolerant of old with_src configuration option
Fixes https://pagure.io/koji/issue/2120
2020-04-02 10:31:41 +02:00
Igor Raits
e46fffe26b kojira: Allow using Kerberos without krbV
"Error: Unknown login error" message is very misleading because no
authentication is being performed when krbV is not installed.

Quit with error message if no authentication has been performed and also
update such error message in kojid to mentioned cert auth.

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-04-01 15:02:18 +02:00
Tomas Kopecek
c899049fac reverse score ordering for tags
Fixes: https://pagure.io/koji/issue/2021
2020-03-26 14:26:42 +01:00
Tomas Kopecek
02a630ec3a fix table name
Fixes: https://pagure.io/koji/issue/2055
2020-03-26 14:25:46 +01:00
Yuming Zhu
20ee6081e0 flake8: apply rules for koji-sidetag-cleanup 2020-03-03 21:38:22 +08:00
Yuming Zhu
d21083a11b still use BaseException for logging purpose 2020-03-03 21:38:22 +08:00