more 1.7 migration notes

This commit is contained in:
Mike McLean 2012-05-25 16:47:17 -04:00
parent a04d199812
commit 1df4a676a7

View file

@ -1,5 +1,5 @@
Migrating Koji 1.7
==================
Migrating to Koji 1.7
=====================
// asciidoc formatted
@ -9,6 +9,7 @@ work when updating. These changes are:
- DB schema updates to support storage volumes
- The change from mod_python to mod_wsgi
- The introduction of a separate configuration file for koji-web
- Changes to url options
DB Schema Updates
-----------------
@ -19,7 +20,7 @@ changes to tags that are not easily calculated from other tables. There is
also a new field in the +build+ table, +volume_id+, which indicates which
volume a build is stored on.
As in previous releases, we provide an migration script that updates the
As in previous releases, we provide a migration script that updates the
database.
# psql koji koji </usr/share/doc/koji-1.7.0/docs/schema-upgrade-1.5-1.7.sql
@ -36,19 +37,16 @@ configuration changes will be required.
Migrating to mod_wsgi
~~~~~~~~~~~~~~~~~~~~~
First of course you must install mod_wsgi. For many this will be as easy as
The mod_wsgi package is now required for both koji-hub and koji-web. Folks
running RHEL5 can find mod_wsgi in EPEL.
# yum install mod_wsgi
Folks running RHEL5 can find mod_wsgi in EPEL.
Secondly, you will need to adjust your http config for both koji-hub and
koji-web. Our example config files default to mod_wsgi. To adapt your
existing config, you will need to:
You will need to adjust your http config for both koji-hub and koji-web. Our
example config files default to mod_wsgi. To adapt your existing config, you
will need to:
- For both the koji-hub and koji-web/scripts directories:
* add +Options ExecCGI+
* change +SetHandler+ from mod_python to wsgi-script
* add +Options ExecCGI+
* change +SetHandler+ from mod_python to wsgi-script
- Ensure that the koji-web Alias points to wsgi_publisher.py
- If you have not already, migrate all koji-hub PythonOptions to hub.conf
- Migrate all koji-web PythonOptions to web.conf (see later section)
@ -64,7 +62,7 @@ a few configuration changes you will need to make.
The koji-hub http config should continue to function without modification.
The koji-web http config will at minimum, require the following changes:
The koji-web http config will, at minimum, require the following changes:
- Ensure that the koji-web +Alias+ points to wsgi_publisher.py
- Change koji-web's +PythonHandler+ setting to wsgi_publisher
@ -93,9 +91,8 @@ accepted in web.conf. Please see the example web.conf file.
Custom Config File Location
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The location of web.conf can be specified in the httpd configuration. For
systems staying on mod_python, it _must_ be. To specify the location under
mod_wsgi, use:
The location of web.conf can be specified in the httpd configuration. To
specify the location under mod_wsgi, use:
SetEnv koji.web.ConfigFile /path/to/web.conf
@ -105,8 +102,40 @@ Under mod_python, use:
If you opt to stay on mod_python, the server will continue to process the old
PythonOptions. To ease migration, it does so by default unless the
koji.web.ConfigFile PythonOption is specified.
koji.web.ConfigFile PythonOption is specified. In order to use web.conf under
mod_python, you _must_ specify koji.web.ConfigFile in your http config.
We strongly recommend moving to web.conf. The server will issue a warning at
startup if web.conf is not in use.
Changes to url options
----------------------
The pkgurl option has been removed from the koji command line tool and from
the build daemon (kojid). The url for packages is deduced from the topurl
option, which should point to the top of the /mnt/koji tree.
Any config files that specify pkgurl (e.g. ~/.koji/config, /etc/koji.conf, or
/etc/kojid/kojid.conf) will need to be adjusted.
Similarly, the kojiweb config options KojiPackagesURL, KojiMavenURL, and
KojiImagesURL have been dropped in favor of the new option KojiFilesURL.
Additional Notes
----------------
Split Storage
~~~~~~~~~~~~~
Apart from the schema changes, no other migration steps are required for the
split storage feature. By default, builds are stored in the normal location.
Web Themes
~~~~~~~~~~
Using the old method (httpd aliases for koji static content) should continue
to work. For (brief) instructions on the new method, see the README file under
koji-web/static/themes.