Igor Raits
4d0de9de3d
kiwi: Bind-mount /dev into the buildroot for old-chroot
...
The OEM images can't be build with nspawn as they require mocking with
device-mapper which is near to impossible to properly to set up in the
container so those ones have to be built in old chroot where /dev can
and must be bind-mounted. In opposite for nspawn, bind-mounting /dev
breaks build completely.
Let's just dynamically decide based on the chroot type what to do.
2022-11-16 11:36:15 +01:00
Tomas Kopecek
05851ac0c9
Revert "PR#3568: kiwi: don't bind builders's /dev"
...
This reverts commit 56cea9adc2 , reversing
changes made to e9b5ec215d .
mock was changed meanwhile to automatically bind device mapper into the
buildroot.
Related: https://pagure.io/koji/issue/3567
https://pagure.io/koji/pull-request/3585
https://github.com/rpm-software-management/mock/pull/1005
2022-11-15 14:20:22 +01:00
Tomas Kopecek
1ece0d459e
PR#3586: Fix logout when hub is older than CLI
...
Merges #3586
https://pagure.io/koji/pull-request/3586
Fixes : #3396
https://pagure.io/koji/issue/3396
Simultaneous Session Logons
2022-11-15 12:24:16 +01:00
Jana Cupova
e5367b088f
Fix logout when hub is older than CLI
...
https://pagure.io/koji/issue/3396
2022-11-15 12:19:31 +01:00
Tomas Kopecek
1b8a73e67c
PR#3407: build policy
...
Merges #3407
https://pagure.io/koji/pull-request/3407
Fixes : #3323
https://pagure.io/koji/issue/3323
Do not build if you cannot tag
2022-11-11 09:25:36 +01:00
Tomas Kopecek
e9ebe2250d
build policy
...
New 'build' policy replacing 'build_from_srpm' and 'build_from_repo_id'.
Related: https://pagure.io/koji/issue/3323
Author: Tomas Kopecek <tkopecek@redhat.com>
2022-11-10 15:47:44 +01:00
Tomas Kopecek
07536056e8
PR#3555: fix include path
...
Merges #3555
https://pagure.io/koji/pull-request/3555
Fixes : #3553
https://pagure.io/koji/issue/3553
kiwi plugin include processor doesn't construct include paths correctly
2022-11-10 13:21:45 +01:00
Tomas Kopecek
8b1030f863
better error for wrong include xml format
2022-11-10 13:21:39 +01:00
Tomas Kopecek
b8b52884b5
fix include path
...
Related: https://pagure.io/koji/issue/3553
2022-11-10 13:21:39 +01:00
Tomas Kopecek
fcee31ab0e
PR#3426: header-based sessions
...
Merges #3426
https://pagure.io/koji/pull-request/3426
Fixes : #3393
https://pagure.io/koji/issue/3393
Used vs. Accepted Session ID Exchange Mechanisms
2022-11-10 11:07:09 +01:00
Tomas Kopecek
4c4f2c0496
fix tests
2022-11-10 11:07:03 +01:00
Tomas Kopecek
eca9ac0282
remove unused code
2022-11-10 11:07:03 +01:00
Tomas Kopecek
dbb6d60e4f
separate headers
2022-11-10 11:07:03 +01:00
Tomas Kopecek
82d2d4dd55
use header-based auth
2022-11-10 11:07:03 +01:00
Tomas Kopecek
850a161e2b
cookies-based sessions
...
Related: https://pagure.io/koji/issue/3393
2022-11-10 11:07:03 +01:00
Tomas Kopecek
08a9fb8879
PR#3446: Add active sessions web page
...
Merges #3446
https://pagure.io/koji/pull-request/3446
Fixes : #3396
https://pagure.io/koji/issue/3396
Simultaneous Session Logons
2022-11-10 10:17:58 +01:00
Jana Cupova
7897628159
Add active sessions web page
...
Fixes: https://pagure.io/koji/issue/3396
2022-11-10 10:17:51 +01:00
Tomas Kopecek
b04ce33fa0
PR#3578: kojikamid: docstring for getFile method
...
Merges #3578
https://pagure.io/koji/pull-request/3578
2022-11-10 09:50:48 +01:00
Ken Dreyer
bb1d61569e
kojikamid: docstring for getFile method
...
Document the getFile method.
2022-11-10 09:50:42 +01:00
Tomas Kopecek
57e8a726da
PR#3577: kojikamid: write buildrequires files as bytes
...
Merges #3577
https://pagure.io/koji/pull-request/3577
2022-11-10 09:49:16 +01:00
Ken Dreyer
64a856f62b
kojikamid: write buildrequires files as bytes
...
Fix a TypeError when downloading buildrequires files on Python 3.
base64.b64decode() returns bytes, so we must open the file for writing
in bytes mode, not text mode.
Add a unit test that verifies this behavior.
2022-11-09 16:50:17 -05:00
Tomas Kopecek
56cea9adc2
PR#3568: kiwi: don't bind builders's /dev
...
Merges #3568
https://pagure.io/koji/pull-request/3568
Fixes : #3567
https://pagure.io/koji/issue/3567
kiwi: can't build images touching /dev
2022-11-09 14:24:09 +01:00
Tomas Kopecek
5dcf480a40
allow to set it by user
2022-11-09 14:24:03 +01:00
Tomas Kopecek
655cb9797f
kiwi: don't bind builders's /dev
...
Related: https://pagure.io/koji/issue/3567
2022-11-09 14:24:03 +01:00
Tomas Kopecek
e9b5ec215d
PR#3576: kojivmd: improve topurl example and error handling
...
Merges #3576
https://pagure.io/koji/pull-request/3576
2022-11-09 09:40:39 +01:00
Ken Dreyer
e0682ac810
kojivmd: update example topurl
...
The usual name for this location is "kojifiles", not "kojiroot". Update
the example configuration to match what users will normally expect.
2022-11-08 17:23:02 -05:00
Ken Dreyer
bf6a52c936
kojivmd: check for HTTP errors in getFile()
...
kojivmd proxies files from Koji's topurl through the getFile() RPC.
In some cases (misconfigurations), kojivmd can fail to download files
from topurl.
Prior to this change, if kojivmd failed to download a file (for example,
a 404 error), it would silently cache the 404 error HTTP body contents
and pass those on to verifyChecksum(). As a result, kojivmd would verify
the checksum of an HTML error page, rather than checksuming the intended
Koji archive file. In this scenario, it's difficult for administrators
to diagnose why checksums are not matching.
Check the HTTP response for errors before doing anything with the
response contents. With this change, winbuild tasks will fail with an
easier-to-understand "HTTP 404 not found" HTTPError, rather than a Koji
BuildError about checksums.
2022-11-08 17:12:03 -05:00
Tomas Kopecek
fdfe308284
PR#3569: Add absolute to clean sessions in koji-sweep-db
...
Merges #3569
https://pagure.io/koji/pull-request/3569
Fixes : #3571
https://pagure.io/koji/issue/3571
Absolute session
Fixes : #3394
https://pagure.io/koji/issue/3394
Renewal timeout
2022-11-08 13:26:50 +01:00
Jana Cupova
5836307056
Add absolute to clean sessions in koji-sweep-db
...
Fixes: https://pagure.io/koji/issue/3571
2022-11-08 13:26:43 +01:00
Tomas Kopecek
a848025fd5
PR#3509: Enable fetching any ref from git repo
...
Merges #3509
https://pagure.io/koji/pull-request/3509
Fixes : #3508
https://pagure.io/koji/issue/3508
Enable fetching any ref from git repo
2022-11-08 12:26:17 +01:00
Tomas Kopecek
58fb7c7ee6
fix tests
2022-11-08 12:25:10 +01:00
Tomas Kopecek
4cf59602f1
exception in case origin/ is part of ref
2022-11-08 12:15:57 +01:00
Tomas Kopecek
ab9d15b33d
Enable fetching any ref from git repo
...
Related: https://pagure.io/koji/issue/3508
2022-11-08 12:15:57 +01:00
Tomas Kopecek
e84a0fb9fe
PR#3563: Rewrite Query DB to Processors in auth.py
...
Merges #3563
https://pagure.io/koji/pull-request/3563
Fixes : #3559
https://pagure.io/koji/issue/3559
Rewrite QUERY db to processors in auth.py
2022-11-08 12:11:41 +01:00
Jana Cupova
40de4f3df0
Rewrite Query DB to Processors in auth.py
...
Fixes: https://pagure.io/koji/issue/3559
2022-11-08 12:11:34 +01:00
Tomas Kopecek
42795f1d10
fix tests
2022-11-07 14:37:44 +01:00
Tomas Kopecek
143b5ecf3f
PR#3542: cli: fix nvr sorting in list-builds
...
Merges #3542
https://pagure.io/koji/pull-request/3542
Fixes : #3416
https://pagure.io/koji/issue/3416
[koji list-builds] the output NVR should be sorted by version instead by string
2022-11-07 14:34:12 +01:00
Tomas Kopecek
be554fef99
cli: drop nvr sorting from list-builds
...
We've never prperly supported this option as it would need rpm compare
algorithm and there is also no other place in koji where we compare
NVRs. More sense makes to order builds by id (age) by default.
Related: https://pagure.io/koji/issue/3416
2022-11-07 14:34:05 +01:00
Tomas Kopecek
59f677321d
PR#3573: koji-gc: fix check for type cc_addr, bcc_addr
...
Merges #3573
https://pagure.io/koji/pull-request/3573
Fixes : #3572
https://pagure.io/koji/issue/3572
koji-gc: wrong check for type bcc_addr and cc_addr
2022-11-07 11:36:01 +01:00
Jana Cupova
26f2a4d889
koji-gc: fix check for type cc_addr, bcc_addr
...
Fixes: https://pagure.io/koji/issue/3572
2022-11-07 11:35:54 +01:00
Tomas Kopecek
5de53dbd97
PR#3531: Error on list-tagged --sigs --paths without mount
...
Merges #3531
https://pagure.io/koji/pull-request/3531
Fixes : #934
https://pagure.io/koji/issue/934
no output by`list-tagged --sigs --paths`
2022-11-07 10:00:49 +01:00
Tomas Kopecek
08809355fa
Error on list-tagged --sigs --paths without mount
...
Related: https://pagure.io/koji/issue/934
2022-11-07 09:59:06 +01:00
Tomas Kopecek
69b0bad6e5
PR#3557: Log when session ID, session key and hostip is not related
...
Merges #3557
https://pagure.io/koji/pull-request/3557
Fixes : #3395
https://pagure.io/koji/issue/3395
Session ID Guessing and Brute Force Detection
2022-11-04 15:52:06 +01:00
Jana Cupova
fea12ba5a4
Log when session ID, session key and hostip is not related
...
Fixes: https://pagure.io/koji/issue/3395
2022-11-04 15:51:58 +01:00
Tomas Kopecek
25854a4e43
PR#3558: kiwi: propagate --type option
...
Merges #3558
https://pagure.io/koji/pull-request/3558
Fixes : #3556
https://pagure.io/koji/issue/3556
kiwi: add --type option
2022-11-04 13:58:28 +01:00
Tomas Kopecek
066e7427ef
fix additional commas
2022-11-04 13:58:16 +01:00
Tomas Kopecek
6083bace39
kiwi: propagate --type option
...
Related: https://pagure.io/koji/issue/3556
2022-11-04 13:58:16 +01:00
Tomas Kopecek
125361326a
PR#3489: Rewrite DB query to Procesors
...
Merges #3489
https://pagure.io/koji/pull-request/3489
Fixes : #3511
https://pagure.io/koji/issue/3511
Rewrite DB query to Procesors
Fixes : #3493
https://pagure.io/koji/issue/3493
Query Select with 'FOR UPDATE'
2022-11-04 12:37:10 +01:00
Tomas Kopecek
31dbf67960
readability fixes
2022-11-04 12:37:00 +01:00
Jana Cupova
d0415c57b3
Fixes
2022-11-04 12:37:00 +01:00