Release notes¶
v4.0.0¶
This is a major release with many backwards incompatible changes.
Backwards incompatible changes¶
- Values NULL and 0 are not allowed in update’s stable_karma and unstable_karma (#1029).
- Updates no longer have a
titleattribute. This affects many elements of Bodhi’s REST API, including URLs (update titles can no longer be used to reference updates, only aliases), REST API data structures, and Bodhi’s messages (#1542). - The
prefer_sslsetting has been renamed tolibravatar_prefer_tlsand now defaults toTrueinstead ofNone(#1921). - Integration with pkgdb is no longer supported (#1970).
- The
/admin/API has been removed (#1985). - The relationship between Packages and Users was dropped. As a result, the
packagesparameter in users query API has also been removed (#1997). - Support for CVE tracking was dropped. It was technically not possible to use the feature, so it is unlikely to affect any deployments (#1998).
- The
processingupdate status has been removed (#1999). - The
/masherAPI has been removed (#2024). - Default sqlalchemy.url setting points to PostgreSQL instead of SQLite (#2040).
- The
Masherwas renamed toComposer. As a result, thebodhi-clean-old-mashesscript was renamed tobodhi-clean-old-composes, notification topicsmashtask.start,mashtask.mashing,mashtask.complete,mashtask.sync.waitandmashtask.sync.donewas renamed tocompose.start,compose.composing,compose.complete,compose.sync.waitandcompose.sync.done, configuration settingsmash_dir,mash_stage_dirandmax_concurrent_masheswas renamed tocompose_dir,compose_stage_dirandmax_concurrent_composes(#2151). - The
bodhi-monitor-composesscript has been removed (#2171). - The stacks feature has been removed (#2241).
- The
bodhi-manage-releasesscript has been removed (#2420). - Support for anonymous comments was dropped. As a result, the
anonymousfield on the Comment object was removed and comments query API parameteranonymouswas droped. Allcaptcha.*settings were removed (#2700). - Bodhi client and server no longer support Python 2. Python 3.6+ are the only supported Python releases (#2759).
- Support for the
ci_urlon theBuildobject was dropped (#2782). - Support for
active_releasesparameter in updates query API was droped (#2815). - The
/updates/ALIAS/TITLEAPI has been removed (#2869). - Support for update’s old_updateid was dropped (#2903).
- Support for update’s greenwave_unsatisfied_requirements was dropped (#2958).
- The batching feature was dropped, and thus updates can no longer be in the batched request state. As a result, the bodhi-dequeue-stable CLI has also been removed (#2977).
- Support for obsolete scripts in
toolsfolder was dropped (#2980). - Support for update’s greenwave_summary_string has been dropped (#2988).
- Bug objects no longer include a
privatefield (#3016). - The CLI now defaults to the
--waitflag when creating or editing buildroot overrides. The old behavior can be achieved with the--no-waitflag. - All of Bodhi’s fedmsgs have been changed. A new bodhi.messages packages has been added with new published message schemas. Note that only the fields listed in the documented schemas are supported in Bodhi 4, even though Bodhi still sends messages similar to the messages it sent in the past. Message consumers should not rely on any undocumented fields in these messages. If you need information that is not included in the supported schema, please work with the Bodhi project to get the schema adjusted accordingly. Bodhi’s messages are now documented in Bodhi Server APIs.
- All messages and API responses that serialize updates no longer have a
submitterfield. This was redundant with the includeduser.namefield, and was only in place for compatibility with Bodhi 1 which was EOL many years ago.
Dependency changes¶
- pkgdb is no longer required (#1970).
- cryptography is no longer required (#2700).
- Fonts are no longer required for the captcha (Bodhi previously defaulted to using liberation-mono-fonts, but this wasn’t a strict requirement since the font was configurable) (#2700).
- pillow is no longer required (#2700).
- six is no longer required for the client or server (#2759).
- kitchen is no longer required.
Server upgrade instructions¶
The Bodhi server must be upgraded from Bodhi 3.13.0 or newer to 4.0.0 (i.e., it is not supported to upgrade a server older than 3.13.0 directly to 4.0.0 as 4.0.0 has trimmed database migrations from the older releases.
This release contains database migrations. To apply them, run:
$ sudo -u apache /usr/bin/alembic -c /etc/bodhi/alembic.ini upgrade head