Commit graph

5327 commits

Author SHA1 Message Date
Yu Ming Zhu
bfbaca100e upgrade-sql: fix backward compatibility 2020-07-14 23:35:56 -04:00
Mike McLean
d0bfda257d PR#2369: hub: make sure checksum_type is int for DB
Merges #2369
https://pagure.io/koji/pull-request/2369

Fixes: #2368
https://pagure.io/koji/issue/2368
hub: archive's checksum_type should be always integer in DB
2020-07-14 23:35:01 -04:00
Yu Ming Zhu
f68f277ee6 hub: make sure checksum_type is int for DB
fixes: #2368
2020-07-13 06:16:24 +00:00
Tomas Kopecek
f031ca11cf PR#2306: Provide task-based data to volume policy
Merges #2306
https://pagure.io/koji/pull-request/2306

Fixes #2305
Fixes: https://pagure.io/koji/issue/2305
2020-07-02 16:54:29 +02:00
Mike McLean
1305fe8cf2 also consider task data in apply_volume_policy() 2020-07-02 16:54:22 +02:00
Mike McLean
da8fe93755 policy_get_build_tags: use target data if available
Fixes https://pagure.io/koji/issue/2305
2020-07-02 16:54:22 +02:00
Mike McLean
c90a6ced65 fix handling of indirectionimage in policy_data_from_task_args() 2020-07-02 16:54:22 +02:00
Mike McLean
e1a53b971a use policy_data_from_task in complete*Build calls 2020-07-02 16:54:22 +02:00
Mike McLean
9a90a3edf5 split off "policy data from task" logic 2020-07-02 16:54:22 +02:00
Tomas Kopecek
9beaac9561 PR#2346: cli: --wait for download-task
Merges #2346
https://pagure.io/koji/pull-request/2346

Fixes: #2052
https://pagure.io/koji/issue/2052
[RFE] make "koji download-task" wait for unfinished tasks to complete
2020-07-02 14:23:52 +02:00
Tomas Kopecek
1cbc9340db cli: --wait for download-task
If task is not finished yet, wait for it and download output then.

Fixes: https://pagure.io/koji/issue/2052
2020-07-02 14:23:42 +02:00
Tomas Kopecek
074d61ff05 PR#2342: fix simple_error_message encoding
Merges #2342
https://pagure.io/koji/pull-request/2342

Fixes: #1977
https://pagure.io/koji/issue/1977
koji-web should log an error if it cannot read /etc/kojiweb/web.conf

Fixes: #2341
https://pagure.io/koji/issue/2341
web: simple_error_message has wrong encoding for py3
2020-07-02 10:28:55 +02:00
Tomas Kopecek
60048297dc fix simple_error_message encoding
Fixes: https://pagure.io/koji/issue/2341
2020-07-02 10:28:44 +02:00
Tomas Kopecek
53ff792a53 PR#2358: web: remove "GssapiLocalName off" setting
Merges #2358
https://pagure.io/koji/pull-request/2358
2020-07-02 09:12:30 +02:00
Ken Dreyer
0923a2eae2 web: remove "GssapiLocalName off" setting
mod_auth_gssapi already defaults GssapiLocalName to off. Simplify our
configuration and just remove this line.
2020-07-01 16:29:34 -06:00
Tomas Kopecek
7d5798fe20 PR#2354: fix error message
Merges #2354
https://pagure.io/koji/pull-request/2354
2020-07-01 14:05:18 +02:00
Tomas Kopecek
c13bcecbc7 fix error message 2020-07-01 14:01:01 +02:00
Tomas Kopecek
c8e6fbef96 PR#2351: hub: remove "GssapiLocalName off" setting
Merges #2351
https://pagure.io/koji/pull-request/2351
2020-07-01 11:40:40 +02:00
Ken Dreyer
c1511ae182 hub: remove "GssapiLocalName off" setting
mod_auth_gssapi already defaults "GssapiLocalName" to "off". Simplify
our configuration and just remove this line.
2020-07-01 11:40:29 +02:00
Tomas Kopecek
27be72a637 PR#2350: doc: improve hub selinux instructions
Merges #2350
https://pagure.io/koji/pull-request/2350
2020-07-01 11:39:12 +02:00
Ken Dreyer
39d55aac9b doc: improve hub selinux instructions
Make the Server HowTo SELinux instructions simpler and easier to read.
Describe each step for users to copy-and-paste.

Use semanage and restorecon instead of chcon in order to make the
changes persist across relabling operations.

Only recommend httpd_can_network_connect_db=1 if the user is using a
TCP/IP connection to PostgreSQL. If koji-hub is using a local Unix
socket connection, Apache does not need this setting.
2020-07-01 11:39:05 +02:00
Tomas Kopecek
bd3ecc7455 PR#2352: doc: update test suite dependency list for py3
Merges #2352
https://pagure.io/koji/pull-request/2352
2020-07-01 11:35:11 +02:00
Ken Dreyer
e4382d8364 doc: update test suite dependency list for py3
Update the documentation with the list of packages required to run `make
test3` on Fedora 32.
2020-06-30 17:19:22 -06:00
Tomas Kopecek
cc29bcc9f6 PR#2348: fix option order
Merges #2348
https://pagure.io/koji/pull-request/2348

Fixes: #2086
https://pagure.io/koji/issue/2086
list-tags glob is slow
2020-06-30 14:53:28 +02:00
Tomas Kopecek
dd4f39208e fix option order
Related: https://pagure.io/koji/issue/2086
2020-06-30 14:51:23 +02:00
Tomas Kopecek
54dbe5afa8 PR#2339: kojira: drop kojira.sysconfig
Merges #2339
https://pagure.io/koji/pull-request/2339

Fixes: #2171
https://pagure.io/koji/issue/2171
koji-utils packaging on el7+ does not include /etc/sysconfig/kojira
2020-06-30 14:48:31 +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
98601ff11a PR#2320: hub: allow glob matching for listTags
Merges #2320
https://pagure.io/koji/pull-request/2320

Fixes: #2086
https://pagure.io/koji/issue/2086
list-tags glob is slow
2020-06-30 14:20:41 +02:00
Tomas Kopecek
03b55bf39e hub: allow glob matching for listTags
server-side filtering would be better than CLI/client side filtering.

Fixes: https://pagure.io/koji/issue/2086
2020-06-30 14:20:32 +02:00
Tomas Kopecek
580577ae8a PR#2344: runroot: basic docs
Merges #2344
https://pagure.io/koji/pull-request/2344

Fixes: #2111
https://pagure.io/koji/issue/2111
runroot tasks end up in default channel
2020-06-30 09:03:53 +02:00
Tomas Kopecek
ae7f686e05 runroot: basic docs
Fixes: https://pagure.io/koji/issue/2111
2020-06-30 09:02:55 +02:00
Tomas Kopecek
cfe70c21bd PR#2345: builder: document plugin callbacks
Merges #2345
https://pagure.io/koji/pull-request/2345

Fixes: #2091
https://pagure.io/koji/issue/2091
Document builder plugin callbacks
2020-06-30 08:59:38 +02:00
Tomas Kopecek
db3170da49 builder: document plugin callbacks
Fixes: https://pagure.io/koji/issue/2091
2020-06-26 15:10:28 +02:00
Tomas Kopecek
f8d20f6c21 PR#2327: koji-gc: fix py3 compare behaviour for dicts
Merges #2327
https://pagure.io/koji/pull-request/2327

Fixes: #2325
https://pagure.io/koji/issue/2325
koji-gc traceback in trash action
2020-06-25 10:47:28 +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
c0b05c0770 PR#2338: hub: fix typo
Merges #2338
https://pagure.io/koji/pull-request/2338

Fixes: #1969
https://pagure.io/koji/issue/1969
API getChangelogEntries - typo error message
2020-06-24 15:11:58 +02:00
Tomas Kopecek
76cf735aed hub: fix typo
Fixes: https://pagure.io/koji/issue/1969
2020-06-24 15:10:35 +02:00
Tomas Kopecek
2f4688d55b PR#2334: hub: fix index so it gets used by planner
Merges #2334
https://pagure.io/koji/pull-request/2334

Fixes: #2333
https://pagure.io/koji/issue/2333
hub: unused index sessions_active_and_recent
2020-06-24 15:02:15 +02:00
Tomas Kopecek
6d41344d38 hub: fix index so it gets used by planner
Fixes: https://pagure.io/koji/issue/2333
2020-06-24 15:02:05 +02:00
Tomas Kopecek
241bb6f1b6 PR#2137: more debug info for un/tracked tasks in kojira
Merges #2137
https://pagure.io/koji/pull-request/2137

Fixes: #2119
https://pagure.io/koji/issue/2119
kojira saying it's reached max tasks when it hasn't
2020-06-24 14:59:57 +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
Tomas Kopecek
5c7a465b70 PR#2161: doc: update documentation for SSLCACertificateFile
Merges #2161
https://pagure.io/koji/pull-request/2161
2020-06-24 14:49:44 +02:00
Ken Dreyer
bc129afe12 doc: update documentation for SSLCACertificateFile
Be more specific about the exact Apache directive to configure the CA
that will validate client certificates (SSLCACertificateFile).
2020-06-24 14:49:34 +02:00
Tomas Kopecek
3ab5d672f5 PR#2162: hub: remove "GssapiSSLonly Off" option
Merges #2162
https://pagure.io/koji/pull-request/2162
2020-06-24 14:49:00 +02:00
Ken Dreyer
9014fac420 hub: remove "GssapiSSLonly Off" option
mod_auth_gssapi already defaults "GssapiSSLonly" to "off", and in fact
this is not something we want to recommend to users.
2020-06-24 14:48:51 +02:00
Tomas Kopecek
b93cff4837 PR#2287: doc: rewrite PostgreSQL authorization instructions
Merges #2287
https://pagure.io/koji/pull-request/2287
2020-06-24 14:44:51 +02:00
Ken Dreyer
14daa94d82 doc: rewrite PostgreSQL authorization instructions
Rewrite the PostgreSQL authorization instructions in the Server HowTo
guide.

Provide two complete examples: the "all-in-one localhost" option, and
the "separate postgres over the network" option. This reduces the
decision trees and makes it easier to copy and paste the entire
pg_hba.conf file. Explain what each mystery setting does and link to the
PostgreSQL documentation.

Only set listen_addresses to "*" if we need it, and turn it off if we
don't.

Simplify the instructions so that the user only restarts the postgresql
daemon once.

Clarify that koji-web does not need DB access, and the hub is the only
service that requires direct DB access.

Remove the example of authorizing the apache system user, because that
implies that the admin must run a series of complicated GRANT
instructions to allow both koji and apache to write to the DB. Just
grant the koji user full trust access for simplicity.
2020-06-24 14:44:44 +02:00
Tomas Kopecek
9887a4f408 PR#2290: vm: clone mac address via xml
Merges #2290
https://pagure.io/koji/pull-request/2290

Fixes: #2289
https://pagure.io/koji/issue/2289
vm: new libvirt refuse to clone same mac addr in some cases
2020-06-24 14:43:28 +02:00
Tomas Kopecek
bb0ea0d6d5 vm: clone mac address via xml
Fixes: https://pagure.io/koji/issue/2289
2020-06-24 14:43:17 +02:00