2021-09-03 11:17:49 +02:00
|
|
|
= Koji Archive SOP
|
|
|
|
|
2021-07-26 10:39:47 +02:00
|
|
|
This SOP documents how to archive Fedora EOL'd builds from the DEFAULT
|
|
|
|
volume to archived volume.
|
|
|
|
|
|
|
|
Before archiving the builds, identify if any of the EOL'd release builds
|
|
|
|
are still being used in the current releases. For example. to test if
|
|
|
|
f28 builds are still being using in f32, use:
|
|
|
|
|
2021-09-03 11:17:49 +02:00
|
|
|
....
|
2021-07-26 10:39:47 +02:00
|
|
|
$ koji list-tagged f32 | grep fc28
|
2021-09-03 11:17:49 +02:00
|
|
|
....
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2021-09-03 11:17:49 +02:00
|
|
|
Tag all these builds to koji's _do-not-archive-yet_ tag, so that they wont
|
2021-07-26 10:39:47 +02:00
|
|
|
be archived. To do that, first add the packages to the
|
2021-09-03 11:17:49 +02:00
|
|
|
_do-not-archive-tag_
|
|
|
|
....
|
2021-07-26 10:39:47 +02:00
|
|
|
$ koji add-pkg do-not-archive-yet --owner <username> pkg1 pkg2 ...
|
2021-09-03 11:17:49 +02:00
|
|
|
....
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2021-09-03 11:17:49 +02:00
|
|
|
Then tags the builds to _do-not-archive-yet_ tag
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2021-09-03 11:17:49 +02:00
|
|
|
....
|
2021-07-26 10:39:47 +02:00
|
|
|
$ koji tag-build do-not-archive-yet build1 build2 ...
|
2021-09-03 11:17:49 +02:00
|
|
|
....
|
2021-07-26 10:39:47 +02:00
|
|
|
|
|
|
|
Then update the archive policy which is available in releng repo
|
2021-09-03 11:17:49 +02:00
|
|
|
(https://pagure.io/releng/blob/main/f/koji-archive-policy)
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2025-07-04 11:55:02 +02:00
|
|
|
Run the following from _compose-x86-01.rdu3.fedoraproject.org_
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2021-09-03 11:17:49 +02:00
|
|
|
....
|
|
|
|
$ cd $ wget https://pagure.io/releng/raw/master/f/koji-archive-policy
|
|
|
|
$ git clone https://pagure.io/koji-tools/
|
|
|
|
$ cd koji-tools
|
|
|
|
$ ./koji-change-volumes -p compose_koji -v ~/archive-policy
|
|
|
|
....
|
2021-07-26 10:39:47 +02:00
|
|
|
|
|
|
|
In any case, if you need to move a build back to DEFAULT volume
|
2021-09-03 11:17:49 +02:00
|
|
|
....
|
|
|
|
$ koji add-pkg do-not-archive-yet --owner <username> pkg1
|
|
|
|
$ koji tag-build do-not-archive-yet build1
|
|
|
|
$ koji set-build-volume DEFAULT <n-v-r>
|
|
|
|
....
|