qpidd fails to start with ncat > 6.40
During installation/upgrade of foreman/katello, the file:
Writes out the erb template found at:
To the location:
This file causes the startup script for qpidd to wait for the port to show as open before marking the service as started by using ncat's -z switch using the command:
ExecStartPost=/bin/bash -c 'while ! nc -z 127.0.0.1 <%= scope['qpid::ssl_port'] %>; do sleep 1; done'
The issue however is that the "-z" switch has been deprecated in (at least) version 6.47 of ncat. Thus, another way to achieve this objective is needed. While this is not an issue for a default CentOS/RHEL 7 installation, the problem will presumably arise with RHEL/CentOS 8 and will show up for any who use the atomic repo.
- Configure the Atomic repo as a source for yum: https://wiki.atomicorp.com/wiki/index.php/Atomic
- Run yum -y update nmap-ncat
- Attempt to restart qpidd or perform an upgrade or install of foreman
#4 Updated by Ewoud Kohl van Wijngaarden 3 months ago
The source is at https://github.com/theforeman/puppet-qpid/blob/master/templates/wait-for-port.conf.erb and a patch is highly welcome.