Foreman 2.3 test week

Foreman 2.3 RC2 has been announced and it’s the time to put our effort into making sure that all most important features are not broken hard. We need your help! It’s easy to get your hands dirty and help us with testing:

  1. Install Foreman RC version (the most up to date one)
  2. Pick a scenario from this post or add your own scenario
  3. If you find an issue, file it in the RedMine and make a comment in this thread linking the issue
  4. Mark the scenario as checked in this OP (this is an editable wiki post), here is syntax of checked and unchecked lines (you can click on checkboxes directly with mouse):
    • Unchecked
    • Checked

Installation

  • Install Foreman using existing script/forklift/beaker
    • Forklift
    • My own install script
  • Install Foreman manually by following our installation guide
    • RHEL / CentOS stable
    • Debian / Ubuntu stable
  • Install Foreman manually by following our new installation guide
    • RHEL / CentOS
    • Debian / Ubuntu
  • Upgrade existing Foreman deployment (advertise in RedMine it was an upgraded instance if you encounter bug)
    • RHEL / CentOS
    • Debian / Ubuntu
  • Sanity checks
    • Installation on Red Hat distro with SELinux turned on
    • Packages passenger and tfm-rubygem-passenger are from the same repo (foreman) and in the same version
    • Logging in with a user that has limited permissions works properly

Provisioning

  • Bare-metal or virtualized PXE provisioning (host exits build mode and reboots)
    • BIOS host with CentOS 8
    • BIOS host with CentOS 7
    • UEFI host with CentOS
    • BIOS host with Debian or Ubuntu
    • UEFI host with Debian or Ubuntu
    • BIOS host with Atomic OS
  • Compute Resources (VM is successfully created, finish or cloud-init is executed)
    • Create VMware host (Image Based/Network Based)
    • Create OpenStack host (Image Based)
    • Create Ovirt host (Image Based/Network Based)
    • Create Libvirt host (Image Based/Network Based)
    • Creare AWS host (Image Based)
    • Create GCE host
    • Create Azure host
  • Puppet manifest import (classes are imported, parameters recognized)
  • Puppet configuration (class is assigned to a host, agent performs changes, reports and facts appears correctly)
  • Log in using user from LDAP (user account is created from LDAP)
  • Log in using user from FreeIPA (user account is created from FreeIPA)

Foreman Discovery

  • Bare-metal or virtualized provisioning via Provision - Customize Host (host exits build mode and reboots)
    • BIOS with discovery from PXE
    • UEFI with discovery from PXE
    • BIOS with discovery PXE-less
    • UEFI with discovery PXE-less
  • Provision a host via discovery rule
  • Provision a host via Customize UI button
  • Provision a host without hostgroup via Customize UI button
  • Provision a host via hammer via hostgroup
  • Provision a host via hammer via auto provisioning rule

Foreman Bootdisk

  • Bootdisk basic provisioning (host exits build mode and reboots)
    • Full host image BIOS
    • Host image BIOS
    • Generic image BIOS
    • Full host image EFI
    • Host image EFI
    • Generic image EFI

Foreman Ansible

  • Import Roles
    • With/From Smart-Proxy
  • Assign Roles
    • Hostgroup
    • Hosts
  • Play Roles
    • Hostgroup
    • Hosts
  • Run shipped Ansible playbook (job), e.g. to install ansible role from galaxy

Foreman Remote Execution

  • Run some job, e.g. ‘ls /etc’ on a system that was provisioned from Foreman, it should work out of the box
  • Run some job against the Foreman host itself, only key configuration should be needed

Foreman Puppet run

  • Trigger Puppet run on host through SSH

Foreman Openscap

  • Create new content file, define a policy, assign it to a host and deploy the foreman_scap_client using puppet
  • Verify ARF report gets uploaded upon foreman_scap_client run and full version of it can be rendered
  • Create tailoring file, assign it to the policy and rerun client with the tailoring file

Foreman Virt Who Configure

  • Create a configuration definition and run it e.g. through REX on some provisioned host. It should succeed as long as it has access to sat tools repo on RHEL, epel (I think) on centos.
    note: plugin works, the configuration requires new virt-who that is currently in fedora 30, not in epel

Foreman Templates

  • hammer import-templates --lock true # sync newest templates from community-templates repo, see audits
  • mkdir /repo; chown foreman /repo; hammer export-templates --repo /repo # may need setenforce 0

This page is a wiki, feel free to update it and add new scenarios as you test them. Thanks for your help!

2 Likes

Dynflow does not start, even after the version bump to 0.3.1 of core, this is probably new:

# rpm -qa | grep dynflow
tfm-rubygem-smart_proxy_dynflow-0.3.0-2.fm2_3.el7.noarch
tfm-rubygem-smart_proxy_dynflow_core-0.3.1-1.fm2_3.el7.noarch
tfm-rubygem-dynflow-1.4.7-1.fm2_3.el7.noarch
foreman-dynflow-sidekiq-2.3.0-0.7.rc2.el7.noarch

2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:51 rc.nat.lan systemd[1]: Starting Foreman smart proxy dynflow core service...
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/output.rb:13:in `strict_err': Gem loading error: cannot load such file -- logging/journald (RuntimeError)
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:52:in `rescue in rescue in block in system_require'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:43:in `rescue in block in system_require'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:39:in `block in system_require'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in `each'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in `system_require'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:19:in `block in system_require'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `each'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `system_require'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.3.1/lib/smart_proxy_dynflow_core/bundler_helper.rb:22:in `require_groups'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.3.1/lib/smart_proxy_dynflow_core/launcher.rb:36:in `load_settings!'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.3.1/lib/smart_proxy_dynflow_core/launcher.rb:18:in `start'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.3.1/lib/smart_proxy_dynflow_core/launcher.rb:13:in `launch!'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow_core-0.3.1/bin/smart_proxy_dynflow_core:32:in `<top (required)>'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /usr/bin/smart_proxy_dynflow_core:23:in `load'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan smart_proxy_dynflow_core[21420]: from /usr/bin/smart_proxy_dynflow_core:23:in `<main>'
2020-11-20 06:48:09 [ERROR ] [configure] Nov 20 06:44:52 rc.nat.lan systemd[1]: smart_proxy_dynflow_core.service: main process exited, code=exited, status=1/FAILURE

This fixes it:

yum install tfm-rubygem-logging-journald

My guess is that Puppet installs dynflowcore first while Foreman is not yet there and it fails to start due to missing dependency.

1 Like

The above is fixed in tfm-rubygem-smart_proxy_dynflow_core 0.3.2.