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
btypetable tracks the known btypes [LINK] in the systemThe
build_typestable links builds to their btype(s)The
content_generatortable tracks the known content generators in the systemThe
cg_userstable tracks which users have access to which content generatorsThe
buildroottable now tracks more generic buildrootsThe
standard_buildroottable tracks data for “normal” koji buildrootsSeveral tables now have an
extracolumn that stores json dataThere are several new entries in the
archivetypestableThe
image_listingtable has been replace by the more generalarchive_rpm_componentstableThe new
archive_componentscomplements 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-taskSupports 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-taskimport-cggrant-cg-accessrevoke-cg-accessspin-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
getRPMDepsreturns optional depslistTaskssupports new selection optionsgetLoggedInUserincludes an authtype field