What’s New in Beaker 0.17?¶
Beaker 0.17 includes two new scheduler features, as well as support for theming Beaker’s web UI, and experimental integration with OpenStack for dynamically creating VMs.
Harness independent system reservation¶
A new XML element <reservesys/> added to a recipe will reserve the system after all tests have been completed. The duration to reserve the system can optionally be given using the duration attribute. It is expressed in seconds. The default duration is 86400 seconds (24 hours).
Unlike the /distribution/reservesys task, which remains fully supported, this new mechanism reserves the system even if the recipe execution is aborted by the external watchdog timer or due to a kernel panic or installation failure.
Refer to the Reserving a system after testing section for more information.
(Contributed by Amit Saha in #%s639938.)
Force system scheduling¶
It is now possible to force Beaker’s scheduler to choose a specific system for a recipe, regardless of whether the system’s condition is set to Automated, Manual or Broken.
A new attribute force has been added to the <hostRequires/> element. For example:
<hostRequires force="my.host.example.com" />
will force the job to run on my.host.example.com. The force attribute is mutually exclusive with any other existing host selection criteria; the <hostRequires/> element must not contain any other content in this case.
Access policy restrictions still take effect when the force attribute is used. The job owner must have reserve permission on the system in question in order to reserve it through the scheduler.
The bkr machine-test command now accepts a new option --ignore-system-status which uses this feature. This option makes it possible to test a system or update its hardware details even if its condition is set to Manual or Broken.
(Contributed by Amit Saha in #%s851354 and #%s1093224.)
Theming the web interface¶
Administrators can apply custom styles and markup to Beaker’s web interface. For example, you can make it match a common look-and-feel for your organization, or add extra links to site-specific resources.
See Theming the web interface for details about how to use this feature.
(Contributed by Dan Callaghan in #%s1012224.)
OpenStack as dynamic virtualization backend¶
Beaker’s previous experimental oVirt integration has been ported to use OpenStack instead.
When OpenStack integration is enabled, Beaker will attempt to create a new virtual machine for each recipe when it is scheduled. If creating the virtual machine fails, Beaker will fall back to using the regular hardware pool for that recipe. Recipes with hardware requirements in <hostRequires/> which cannot be satisfied by a virtual machine are excluded from this process.
This feature is currently considered experimental and has a number of limitations: guest consoles are not logged; VM building can cause a scheduling bottleneck; and OpenStack credentials must be stored in Beaker’s database. Therefore it is currently not recommended to use this feature in production Beaker instances.
Refer to Integration with OpenStack for information about how to configure this feature in your Beaker instance.
(Contributed by Dan Callaghan in #%s1040239.)
Notable changes¶
“Removed” systems are no longer shown in search results¶
Systems whose condition is set to “Removed” are only searchable from a new page (Systems ‣ Removed). Removed systems are no longer included on any other system search pages. Before this change, removed systems matching the search criteria would also be listed along with other matching systems.
As a consequence, Removed is no longer an accepted value for the System/Status field on system search pages.
Removed systems are also excluded from the output of bkr list-systems by default. A new option --removed can be given in order to list removed systems.
(Contributed by Amit Saha in #%s1000092.)
Workflow commands ignore system selection options when --machine is given¶
If the --machine option is given, any other host selection criteria (--hostrequire, --systype, --keyvalue, or --random) are ignored and a warning is printed to stderr.
(Contributed by Amit Saha in #%s1095026.)
LDAP TLS certificate checking is no longer disabled¶
In previous versions the Beaker web application disabled TLS certificate checking for LDAP connections. The certificate checking behaviour is now inherited from the system-wide OpenLDAP configuration. By default OpenLDAP requires a trusted certificate on all connections.
If your Beaker site is using LDAP integration you should ensure that your LDAP directory’s CA is trusted by adding it to the system-wide OpenSSL trust store, or by setting the TLS_CACERT option in /etc/openldap/ldap.conf appropriately.
If necessary, TLS certificate checking can be disabled system-wide in OpenLDAP by setting the TLS_REQCERT option in /etc/openldap/ldap.conf. See ldap.conf(5) for details.
(Contributed by Dan Callaghan in #%s962639.)
beaker package renamed to beaker-common¶
The beaker package has been renamed to beaker-common. This package contains common Python modules and is required by all other Beaker packages. The new package Provides and Obsoletes the old package name, so yum will replace it during upgrade without intervention. However, any scripts which refer to the beaker package explicitly should be updated.
(Contributed by Dan Callaghan in #%s1072143.)
Other new features and enhancements¶
Job cancellations and changes to retention settings are now tracked in the job activity log, visible at the top of the job page. (Contributed by Matt Jia in #%s995012.)
A new kickstart metadata variable dhcp_networks, similar to the existing static_networks variable, allows configuring additional network devices to start on boot. (Contributed by Dan Callaghan in #%s920470.)
The --hostrequire workflow option now accepts arbitrary XML snippets. This makes it possible to express more complex host requirements, for example using <and/> and <or/> combinations. (Contributed by Dan Callaghan in #%s1014693.)
A new lab controller API resource GET /recipes/(recipe_id)/watchdog allows scripts on the test system to determine how much time is left on the watchdog timer. (Contributed by Dan Callaghan in #%s1093052.)
The beaker-provision daemon copies the PXELINUX boot loader image into place automatically if it does not exist. As a result, new Beaker installations can run recipes on x86 BIOS-based systems immediately. Previously all boot loader images had to be fetched manually or by using the cobbler get-loaders script. (Contributed by Dan Callaghan in #%s866765.)
Task and harness updates¶
Version 4.0-81 of the /distribution/virt/install task has been released, with improved logic for manipulating the --network option in the guest arguments. The task no longer injects a bridge: parameter when a type= parameter is given. This makes it possible to use the non-default network device types supported by virt-install, including macvtap devices. (Contributed by Andy Gospodarek in #%s1086285.)
Bug fixes¶
A number of bug fixes are also included in this release.
- #%s1092758: Fixed a regression preventing upload of tasks with Architectures: aarch64. (Contributed by Dan Callaghan)
- #%s1066269: Fixed a regression affecting the bkr job-watch command when watching an individual recipe or task. (Contributed by Dan Callaghan)
- #%s1073280: Fixed a regression in the --distro option to the bkr task-list command. (Contributed by Dan Callaghan)
- #%s1087727: The bkr policy-list command now authenticates to the Beaker server instead of making an anonymous request, in case the system is not visible to anonymous users. (Contributed by Dan Callaghan)
- #%s1100008: The device tree path is no longer hardcoded in the AArch64 boot loader configuration. A custom device tree can be supplied using the devicetree kernel option. By default no device tree is configured. (Contributed by Bill Peck)
- #%s1064710: Beaker now prevents multiple lab controllers from sharing a single user account. Previously the administrator could create such a configuration, but it would cause errors when the lab controller daemons authenticated to Beaker. (Contributed by Dan Callaghan)
- #%s1095010: Beaker no longer enforces uniqueness of user email addresses. This corrects an issue where Beaker would not allow an LDAP account to log in if another existing account had the same email address. (Contributed by Dan Callaghan)
- #%s997830: Usernames consisting only of whitespace characters are no longer accepted. (Contributed by Dan Callaghan)
- #%s1101402: If createrepo terminates uncleanly during a task upload, Beaker cleans up the temporary work directories left behind, in order to prevent subsequent task uploads from failing. (Contributed by Dan Callaghan)
- #%s1072192: Completed tasks with no results are now correctly displayed in the job and recipe progress bars. (Contributed by Dan Callaghan)
- #%s1085703: Deleting a group now works correctly when the group is referenced in a system access policy. (Contributed by Amit Saha)
- #%s1086505: LDAP username lookups are encoded as UTF-8. (Contributed by Dan Callaghan)
- #%s1022411: The bkr task-details command shows a more informative error when an unrecognized task name is given. (Contributed by Amit Saha)
- #%s1086506: The Access Policy tab on the system page shows a more informative error when an unrecognized username is given. (Contributed by Matt Jia)
- #%s998374: Beaker shows a more informative error when the administrator attempts to add a new lab controller with the same FQDN as an existing lab controller. (Contributed by Dan Callaghan)
- #%s967684: Beaker shows a more informative error when attempting to add a non-existent system to a group. (Contributed by Amit Saha)
- #%s978225: Beaker shows a more informative error when attempting to delete a group that has already been deleted. (Contributed by Amit Saha)
Maintenance updates¶
The following fixes have been included in Beaker 0.17 maintenance updates.
Beaker 0.17.1¶
- #%s1116722: CSV export no longer exposes system power configuration to users who do not have permission to edit the system. (Contributed by Dan Callaghan)
- #%s1084188: The beaker-pxemenu utility now generates a menu for AArch64. (Contributed by Dan Callaghan)
- #%s1099231: A new kickstart metadata variable remote_post was defined, to fetch and run a remote script during post-installation. (Contributed by Amit Saha)
- #%s1103156: The bkr system-release command now accepts more than one argument, and releases all of the given systems. (Contributed by Amit Saha)
- #%s1088761: When a recipe uses custom partitioning, Beaker now correctly defines a /boot/efi partition on x86 EFI systems which require it. (Contributed by Dan Callaghan)
- #%s1003454: The beaker-proxy daemon now rejects incoming requests larger than 10MB, to prevent exhausting available memory if a very large request is received. (Contributed by Dan Callaghan)
- #%s1094553: The beaker-provision daemon now enforces a configurable timeout (120 seconds by default) when fetching netboot images as part of the provisioning process. (Contributed by Dan Callaghan)
- #%s1097094: The History table on the system page now permits paging through all available records, and avoids issuing inefficient SQL queries in a number of circumstances. (Contributed by Dan Callaghan)
- #%s1079093: The SQL queries used to poll for watchdogs are now more efficient. (Contributed by Raymond Mancy)
- #%s1095079: aarch64 is now recognized as a valid architecture by beaker-wizard. (Contributed by Matt Jia)
- #%s1078965: Netboot files for AArch64 are written to aarch64/ instead of pxelinux/. (Contributed by Dan Callaghan)
- #%s1080285: The documentation now covers in detail the files and directories in the TFTP root which Beaker uses. (Contributed by Dan Callaghan)
- #%s1111491: Server commands now print a more helpful error message if they cannot read the server configuration file. (Contributed by Amit Saha)
- #%s1111508: Added a new menu item Systems ‣ Reserve linking to the reserve workflow. (Contributed by Dan Callaghan)
- #%s1107788: Fixed incorrectly displayed options in bkr-job-list(1). (Contributed by Dan Callaghan)
The Beah test harness was updated to version 0.7.6 in this release, with the following fixes:
- #%s908354: Beah’s internal task states are now updated correctly when a task triggers rhts-reboot, regardless of which order processes are killed during shutdown. This corrects an error where Beah would intermittently fail to run any tasks after rebooting. (Contributed by Amit Saha with assistance from Jan Stancek)
- #%s1106381: Fixed a syntax error in the systemd service unit for beah-srv which caused service dependencies not to be registered. (Contributed by Jun’ichi NOMURA)
- #%s1106405: The HOSTNAME environment variable is no longer assumed to be set. (Contributed by Dan Callaghan)
The /distribution/virt/install task was updated to version 4.0-83 in this release, with the following fixes:
- #%s1113666: Fixed an error caused by extraneous output from get_guest_info.py --kvm-num in case the HTTP request to the lab controller fails and is retried. (Contributed by Bill Peck)
- #%s1117001: Debug logs from libvirtd are no longer uploaded to Beaker by default, because of their very large size. The previous behaviour can be restored by passing a non-empty value for the LIBVIRTD_DEBUG task parameter. (Contributed by Dan Callaghan)
Beaker 0.17.2¶
- #%s1123249: Fixed a regression in the database query for expired watchdogs which caused multi-host recipe sets to be aborted too early. Multi-host recipe sets are now correctly aborted only if the watchdog has expired for all recipes in the set. (Contributed by Dan Callaghan)
- #%s1122659: Fixed a regression in the logic which injects <system_type value="Machine"/> into <hostRequires/> when no system type filter is explicitly given. As a result, Beaker now correctly restricts Reserve Workflow jobs to run on systems whose type is Machine. (Contributed by Dan Callaghan)
- #%s1120705: The Table and Keyvalue dropdowns are now sorted alphabetically. (Contributed by Dan Callaghan)
- #%s1123700: Fixed template conditionals for the systemd variable so that it takes effect when overridden in kickstart metadata. (Contributed by Dan Callaghan)
Beaker 0.17.3¶
- #%s1113816: Beaker now generates GRUB2 configuration files for ppc64, in addition to Yaboot. This allows provisioning PowerPC systems where GRUB2 is the preferred boot loader. (Contributed by Amit Saha)
- #%s1120487: ppc64le is now accepted as a valid architecture in beaker-wizard and for task metadata. (Contributed by Amit Saha)
- #%s1124756: Fixed a regression preventing the cancellation of individual tasks in a recipe. (Contributed by Matt Jia)
- #%s1121748: Fixed an issue with LDAP lookups containing whitespace, which could result in erroneous duplicate user accounts being created. (Contributed by Dan Callaghan)
- #%s1120439: Fixed an issue in the web UI where an out-of-memory condition during request handling could cause all subsequent requests to fail, due to the database connection being left in an invalid state. (Contributed by Dan Callaghan)