Migrating to Koji 1.11¶
The 1.11 release of Koji includes a several changes that you should consider when migrating.
DB Updates¶
- There are a number of new tables and columns to support content generators. Here is a summary:
The
btype
table tracks the known btypes [LINK] in the systemThe
build_types
table links builds to their btype(s)The
content_generator
table tracks the known content generators in the systemThe
cg_users
table tracks which users have access to which content generatorsThe
buildroot
table now tracks more generic buildrootsThe
standard_buildroot
table tracks data for “normal” koji buildrootsSeveral tables now have an
extra
column that stores json dataThere are several new entries in the
archivetypes
tableThe
image_listing
table has been replace by the more generalarchive_rpm_components
tableThe new
archive_components
complements this and tracks non-rpm components
As in previous releases, we provide a migration script that updates the database.
# psql koji koji </usr/share/doc/koji-1.11.0/docs/schema-upgrade-1.10-1.11.sql
- Note: prior to this release, we had some interim update scripts:
schema-update-cgen.sql
schema-update-cgen2.sql
Most users should not need these scripts. The new schema upgrade script includes those changes.
Command line changes¶
The help
command now shows a categorized list of commands.
The hello
command now reports the authentication type.
Several commands support new arguments. Here are the notable changes:
add-tag
--extra
: Set an extra option for tag at creation
watch-task
Supports several new task selection options
download-build
--rpm
: Used to download a particular rpm by name
runroot
--new-chroot
: Run command with the –new-chroot (systemd-nspawn) option to mock
And there are five new commands
assign-task
import-cg
grant-cg-access
revoke-cg-access
spin-livemedia
Client configuration options¶
- The command line and several other tools support the following new configuration options:
use_old_ssl
: Use the old ssl code instead of python-requestsno_ssl_verify
: Disable certificate verification for https connectionsupload_blocksize
: Override the blocksize for uploads
The ca
option is deprecated and no longer required for ssl authentication (serverca
is still required).
Even if not using ssl authentication, the serverca
option, if specified, is used to verify the certificate of the
server.
Other Configuration changes¶
- The Koji web interface supports the following new configuration options:
KrbRDNS
: Use the fqdn of the server when authenticating via kerberosLoginDisabled
: Hide the login link at the top of the page
RPC API Changes¶
- New rpc calls:
CGImport
: Used by content generatorsgetBuildType
: Returns typeinfo for a buildlistBTypes
: List the known btypes for the systemaddBType
: Adds a new btypegrantCGAccess
: Grants a user content generator accessrevokeCGAccess
: Revokes content generator access
- Changes to calls
Several information calls now return additional fields
getRPMDeps
returns optional depslistTasks
supports new selection optionsgetLoggedInUser
includes an authtype field