Beaker

What’s New in Beaker 27?

Beaker 27 has Python 3 support for beaker-common and beaker-client, AMQ messaging, several changes for outdated packages and some other features.

Moving towards new distros and Python 3

Python 2 is going to be discontinued in upstream soon, and there is a need to move the Beaker code to Python 3. In this release, the code for Common and Client is adapted to run in both versions of Python. It is the first step towards the upcoming upgrade of the whole Beaker project.

Projects as RHTS were also ported to Python 3 to solve compatibility issues.

Some distributions, such as the newer Fedoras, do not even have Python2 installed. RHEL8 has packages for Python 3. This version of Beaker, with the Python 3 code, can be built on Fedora 30+ and RHEL8.

Due to package updates (see below) the system requirements for the build have RHEL 7.7 as a minimum, to ensure that we have all the packages for compatibility, as well as DNF and full support for Python 3 itself.

(Contributed by Martin Styk in #1455424 and Renan Rodrigo Barbosa in #1750646)

AMQP and new features

Until now it was necessary to pool job(s) to get the current status.

We decided to implement a complementary solution to get the latest status updates in your Beaker instance. Now, you can read AMQP messages in your topic. Messages are emitted automatically after scheduler updates status for Recipe/Job/RecipeSet/Recipe/Task.

It is expected that AMQP bus is already running in your infrastructure. Integration can be configured in server.cfg.

(Contributed by Martin Styk in #1370383)

GRUB2 functionality is extended

We are expanding our functionality with menus. In Beaker 27 we added a new menu for PPC64(LE) architecture. The menu can be used as the default option for GRUB2 PPC64(LE) configuration.

You can find the new menu in <tftp_folder>/boot/grub2/beaker_menu_ppc64.cfg or beaker_menu_ppc64le.cfg.

Besides that, the configuration for the bootloader folder was improved to be more reliable. Support for x86_64 architecture and fixes to PXELINUX boot were added.

For more information refer to the TFTP Configuration guide.

(Contributed by Martin Styk in #1779202 and #1778839)

Moving repositories to Github

All of the repositories for the Beaker code base are being migrated to Github. Some pieces are already there, and the Beaker repository itself is going to leave Gerrit as well.

Examples of repositories that have Github fully enabled are the the meta tasks, core tasks and Beaker infrastructure.

Now we have templates for issues and configuration for Stickler to lint the code on pull requests for the Beaker repository.

(Contributed by Martin Styk)

Outdated packages were replaced

Many older packages are being updated to newer versions or replaced by up-to-date equivalents. Those changes may be smaller, such as the jinja2 version update, but also may include bigger changes such as removing TurboGears from the kickstarts.

Tests are updated with the removal of the unittest2 dependency and adaptation to the unittest package. cracklib was changed to pwquality, aiming at RHEL7 servers. python-krbV was replaced by python-gssapi.

The Auth module now is driven by a flask API. Also, all of the YUM dependencies are removed, and Beaker can use DNF to manage the RPMs. Besides the DNF API being more concise, YUM is EOL’d and might be removed for newer versions of Fedora.

(Contributed by Martin Styk in #1642145, #1120434, #1455425 and #1455425 and Renan Rodrigo Barbosa in #1597956 and #1622791.)

BEAH is sunsetted

With the adoption of restraint and after the release of Beaker 26 which defined it as the default test harness for newer distributions, the next step is to sunset BEAH. Users should start migrating BEAH based jobs to restraint.

BEAH is marked as EOL’d and will neither receive new patches nor get support anymore.

Bug fixes

A number of bug fixes are also included in this release:

  • #1777817: Job and Recipe whiteboards now have a bigger character limit.
    (Contributed by Martin Styk)
  • #1662898: Beaker is now properly ignoring SSL certificate verification when the --insecure switch is provided in the command line.
    (Contributed by Martin Styk)
  • #1723692: Beaker-client is now providing the way how to check the machine history of activity. You can use bkr system-history-list <FQDN>.
    (Contributed by Martin Styk)
  • #1703371: Tests were updated to convert a list of Arch instances to the respective Arch names in unicode format, as SQLAlchemy versions greater than 1.1
    will need this for comparison.
    (Contributed by Martin Styk)
  • #1703367: Group passwords now need 8 characters on Fedora systems to be compliant with the PWQuality version.
    (Contributed by Martin Styk)
  • #1671054: Change integration tests to use sessions to connect to Openstack.
    (Contributed by Martin Styk)
  • #1776324: The bash-completion script for the beaker client has been rewritten. Changes include speed improvements using a cache directory, ability to specify file names for commands which take files and option parsing.
    (Contributed by John L. Villalovos)
  • #1776325: Update Frontend for OpenStack integration
    (Contributed by Martin Styk)
  • #1776327: Set the correct MIME type for the kickstart endpoint.
    (Contributed by Martin Styk)
  • #1404909: Added visibility support for iPXE image creation, enabling users to create and upload private images, for instance.
    (Contributed by Martin Styk)
  • #1776332: OpenStack flavors are now correctly filtered according to disk size: should now be greater or equal to 10G.
    (Contributed by Martin Styk)
  • #1384903: RNC schemas for task and job XML files were added to beaker-common.
    (Contributed by Martin Styk)
  • #1776337: Beaker will now pick the appropriate Kerberos credentials cache when authenticating.
    (Contributed by Martin Styk)
  • #1758124: When provisioning a Fedora 31 machine, the root user can use SSH to log in to the machine, using a password or key.
    (Contributed by Martin Styk)
  • #1698383: The Import Distro Tree web page and the distro-import CLI now behave the same, using the same code: duplicates are being handled correctly and URL checking works for both versions.
    (Contributed by Matej Dujava and Tomas Klohna)
  • #1761195: The way beakerd chooses an OpenStack flavor applies smallest disk size and RAM memory as criteria. As there may be more than one flavor with the same disk size and RAM, the smallest flavor ID is now also used.
    (Contributed by Georgii Karataev)
  • #1748307: When deleting a job by clicking the “delete” button on the jobs list, the ID of the job will be shown on the title of the message box.
    (Contributed by Renan Rodrigo Barbosa)
  • #719536: All of the “excluded families” page was redesigned. Previously, any excluded major distributions and the respective minors had to be clicked individually, on a potentially huge list of checkboxes. This list has been reorganized and categorized, toggle buttons were added to ease the selection, and the major distro families can be filtered through user input.
    (Contributed by Renan Rodrigo Barbosa)
  • #662517: The Reserve Workflow page now shows a warning about available lab controllers which don’t support any of the selected distro trees.
    (Contributed by Renan Rodrigo Barbosa)
  • #657559: When user specific variant but no arch on command line, he would incorrectly get all arches across all variants. This has now been fixed and variant will correctly output only possible arches that are present.
    (Contributed by Tomas Klohna)
  • #1694004: The Beaker inventory_osmajors defaults were updated: systems as Fedora 21, Fedora 22, CentOS5 and RHEL5 are out of the list and Fedora 29, Fedora 30, Fedora 31 and RHEL8 were added.
    (Contributed by Georgii Karataev)

Beaker 27.1

  • #1761589: Added new option ‘no_networks’ to ks_meta. This option can be useful when user already defines IP stack on kernel options.
    (Contributed by Martin Styk)
  • #1793655: Updated default Apache configuration for deployment.
    (Contributed by Martin Styk)
  • #1791205: Fixed status code for task status update endpoint. Instead of returning 500 endpoint will return 409 in case status is already updated.
    (Contributed by Martin Styk)
  • #1795234: Added support for enabling/disabling firstboot in kickstart.
    (Contributed by Martin Styk)
  • #1780909: Fixed upstream spec file. DNF is now installed as part of Lab Controllers.
    (Contributed by Martin Styk)
  • #1795912: Improved proxy logging in Lab Controllers. All traffic is captured in logs instead of XMLRPC only.
    (Contributed by Martin Styk)
  • #1778643: Improved kernel panic detection.
    (Contributed by Renan Rodrigo Barbosa)

Beaker 27.2

  • #1807755: Added support to remove OpenStack Keystone Trust even when OpenStack integration is disabled.
    (Contributed by Martin Styk)
  • #1793655: Beaker-client is now using distribution/check-install task for all OS distributions. This is a replacement for distribution/install.
    (Contributed by Martin Styk)

Beaker 27.3

  • #1814761: Updated default values for kickstart. This change is necessary to enable provision on Fedora 32+.
    (Contributed by Martin Styk)
  • #1814784: Improved stability in beaker-proxy. Now, WSGI layer of beaker-proxy is capable of closing all sockets imminently after request is finished.
    (Contributed by Martin Styk)

Beaker 27.4

  • #1816102: New command for beaker-client introduced. Beaker-client is providing the way how to remove a task from task library based on the name. This feature is limited to administrators. You can execute as following bkr task-remove <name>.
    (Contributed by Martin Styk)
  • #1795917: Added support to use different variable for kickstart on kernel cmdline. Now user can define new ks_meta with name ks_keyword.
    (Contributed by John Villalovos)
  • #1818070: Now, distribution RHVH is imported by default with additional ks_meta variable ks_keyword=’inst.ks’. This mitigates problems with an older version of RHVH where ks do not trigger the installation process in RHVH, instead of that, it is considered an upgrade.
    (Contributed by Martin Styk)