From 36ad8127179a7b7f3f2fbda3be509320d5ebc967 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mon, 1 Apr 2013 17:27:15 -0400 Subject: [PATCH] 1.8 migration doc --- docs/Migrating_to_1.8.txt | 112 ++++++++++++++++++++++++++++++++ docs/schema-upgrade-1.7-1.8.sql | 1 - 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 docs/Migrating_to_1.8.txt diff --git a/docs/Migrating_to_1.8.txt b/docs/Migrating_to_1.8.txt new file mode 100644 index 00000000..82235807 --- /dev/null +++ b/docs/Migrating_to_1.8.txt @@ -0,0 +1,112 @@ +Migrating to Koji 1.8 +===================== + +// asciidoc formatted + +The 1.8 release of Koji refactors how images (livecd and appliance) are stored +in the database and on disc. These changes will require a little extra work +when updating. + +There have also been some changes to the command line. + +Finally, kojira accepts some new options. + +DB Schema Updates +----------------- + +Previous to 1.8, images were stored in separately from other builds, both in +the database and on disc. The new schema adds new tables: +image_builds+, ++image_listing+, and +image_archives+. + +The following tables are now obsolete: +imageinfo+ and +imageinfo_listing+. +However you should not drop these tables until you have migrated your image +data. + +As in previous releases, we provide a migration script that updates the +database. + + # psql koji koji DROP TABLE imageinfo_listing; + koji=> DROP TABLE imageinfo; + # rm -rf /mnt/koji/images + + +Command line changes +-------------------- + +For clarity and consistency, all of the +-pkg+ commands have been renamed to ++-build+ commands. + + latest-pkg -> latest-build + move-pkg -> move-build + tag-pkg -> tag-build + untag-pkg -> untag-build + +For backwards compatibility, the old commands names are also recognized. + +A new command has been added, +remove-pkg+. + +Several commands have been modified to support images. + +The +spin-livecd+ and +spin-appliance+ commands now require additional +arguments. These arguments specify the name and version to use for the image. + + +New kojira options +------------------ + +The following options are new to kojira: + + max_delete_processes + max_repo_tasks_maven + +Previously, kojira ran as a single process and repo deletions could potentially +slow things down (particularly for Maven-enabled repos). Now kojira spawns +a separate process to handle these deletions. The +max_delete_processes+ +determines how many such processes it will launch at one time. + +When Maven-enabled repos are in use, they can potentially take a very long time +to regenerate. If a number of these pile up it can severely slow down +regeneration of non-Maven repos. The +max_repo_tasks_maven+ limits how many +Maven repos kojira will attempt to regenerate at once. + +Also the following kojira option has been removed: + + prune_batch_size + diff --git a/docs/schema-upgrade-1.7-1.8.sql b/docs/schema-upgrade-1.7-1.8.sql index 78684330..60f5c198 100644 --- a/docs/schema-upgrade-1.7-1.8.sql +++ b/docs/schema-upgrade-1.7-1.8.sql @@ -1,5 +1,4 @@ -- schema migration from version 1.7 to 1.8 --- (in progress) -- note: this update will require additional steps, please see the migration doc BEGIN;