Forcefully stop hanging Foreman tasks

After a system crash I recently had the problem that Foreman had several orphaned tasks that could not be stopped from the web interface: Because I planned a Foreman upgrade this was pretty bad as it prevented the pre-upgrade check: # foreman-rake katello:upgrade_check … Checking upgradeability… Checking for running tasks… [ERROR] – There are 8
Continue reading...

Short tip: my Foreman/Katello blog post series

No Comments

I’m currently working on a blog post series about Foreman, Katello and Red Hat Satellite 6. Here’s the link collection for beginners: “Introduction and installation” (also published on Pro-Linux ) (this list will be updated regularly) Here is a recording of my presentation about the topics from above at the FrOSCon 12 conference (German): English slides of my
Continue reading...

Simple REST application with Python and Flask

Currently I’m spending a lot of time on automating complex application scenarios; during training I also starting learning about creating customized REST applications. The result was a tutorial which covers all stages of developing a small “RESTful” application: Concept/Definition Development Tests and documentation But, let’s start with the basics first… Crash course: REST in Peace REST
Continue reading...

System management with Foreman/Katello – Part 1: Introduction and installation

The last couple of years I spent a lot of time in managing Linux systems with Spacewalk and Red Hat Satellite 5. Because the application was superseded by the vendor, I investigated on migrations to the successor. Back in 2008, Spacewalk was published as upstream project to Red Hat Network Satellite. Since then, a lot of development happened thanks to the numerous
Continue reading...

Report VMware vSphere RHEL guests to RHSM using Red Hat Satellite 6.2

If you’re utilizing Red Hat Satellite 6 for managing virtual Red Hat Enterprise Linux instances, you will need to leverage Red Hat Subscription Management (RHSM) for maintaining licenses. In comparison with the former Red Hat Network Classic licensing, signed manifest certificates are used. For bigger system landscapes it is easier to list required and needed licenses as RHSM can integrate seamlessly into
Continue reading...

Short tip: Removing orphaned SAN multipath devices under Enterprise Linux

Recently, I had to remove a SAN LUN on a physical Enterprise Linux system. The first step was to alter the multipath service configuration file (/etc/multipath.conf) and make the daemon reload its configuration: # vi /etc/multipath.conf … ESC ZZ # service multipathd reload Afterwards, the device was removed from the multipath topology: # multipath -l
Continue reading...

Monitoring Foreman, Katello and Red Hat Satellite 6

Foreman, Katello and Red Hat Satellite 6 users have multiple possibilities to monitor infrastructure health. Beside the Foreman host, also managed systems and defined software content are worth monitoring. Foreman dashboard Foreman/Katello and Red Hat Satellite offer a dashboard with some widgets that can be used for monitoring hosts and products. The widgets can be ordered and removed.
Continue reading...

Authenticate GitLab against FreeIPA using LDAP

GitLab can utilize LDAP to authenticate against a variety of directory services such as Microsoft Active Directory Domain Services or FreeIPA and Red Hat Identity Management. This post describes configuring and integrating into FreeIPA. By clicking Identity > User Groups > Add within the FreeIPA interface, an assistant for creating new groups is started. Create
Continue reading...

Manage VMware Photon OS containers with Foreman and Red Hat Satellite 6

Photon OS is minimalistic RPM-based Linux distribution which is focussed on running Docker containers. It was optimized for VMware platforms (Workstation, Fusion, vSphere, vCloud Air) – e.g. its Linux kernel offers a caching mechanism optimized for vSphere. Another characteristic is the customized package manager tdnf (Tiny Dandified YUM) which is similar to YUM but has also supports managing OSTree content (git-like versioned kickstartable filesystem content).
Continue reading...

CentOS 7 and the incorrect dist RPM macro

When creating RPM packages recently, I had the effect that package names on CentOS 7 were set incorrectly. For example, a package had the name pinkepank-0.6-1.el7.centos.x86_64.rpm but should have set pinkepank-0.6-1.el7.x86_64.rpm instead. As Enterprise Linux derivates (CentOS, Scientific Linux,…) offer binary compatibility to Red Hat Enterprise Linux, I prefer omitting distribution-specific tags in package names. In the RPM spec
Continue reading...