Project

General

Profile

Actions

Bug #13268

closed

[Katello 2.4] Capsule installer creates invalid qdrouterd.conf file which causes service to fail to start

Added by Nathan Peters almost 9 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Category:
Installer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Fresh installation of Katello 2.4 on a Fresh install of CentOS 7.2.1511. The capsule installer produces and invalid configuration file that prevents qdrouterd service from starting :

[root@katello1-ops-prod-nvan ~]# capsule-installer --parent-fqdn "katello1-ops-int-nvan.mydomain.net"\

--register-in-foreman "true"\
--foreman-oauth-key <key>\
--foreman-oauth-secret <secret>\
--pulp-oauth-secret <secret>\
--certs-tar "~/katello1-ops-prod-nvan.mydomain.net-certs.tar"\
--puppet "true"\
--puppetca "true"\
--pulp "true"\
--freeipa-remove-dns "false"\
--realm "true"\
--realm-principal ""\
--tftp "true"\
--templates "true"\
--foreman-proxy-http "false"

Installing Done [100%] [....................................]
Success! * Capsule is running at https://katello1-ops-prod-nvan.mydomain.net:9090
The full log is at /var/log/capsule-installer/capsule-installer.log
[root@katello1-ops-prod-nvan ~]# systemctl
UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System A
sys-devices-pci0000:00-0000:00:07.1-ata2-host2-target2:0:0-2:0:0:0-block-sr0.device loaded active plugged VMware_Vir
sys-devices-pci0000:00-0000:00:10.0-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged Virtual_di
sys-devices-pci0000:00-0000:00:10.0-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged Virtual_di
sys-devices-pci0000:00-0000:00:10.0-host0-target0:0:0-0:0:0:0-block-sda-sda3.device loaded active plugged Virtual_di
sys-devices-pci0000:00-0000:00:10.0-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged Virtual_disk
sys-devices-pci0000:00-0000:00:11.0-0000:02:00.0-net-ens32.device loaded active plugged 82545EM Gigabit Ethernet Con
sys-devices-platform-floppy.0-block-fd0.device loaded active plugged /sys/devices/platform/floppy.0/block/fd0
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-pnp0-00:09-tty-ttyS0.device loaded active plugged /sys/devices/pnp0/00:09/tty/ttyS0
sys-devices-pnp0-00:0a-tty-ttyS1.device loaded active plugged /sys/devices/pnp0/00:0a/tty/ttyS1
sys-module-configfs.device loaded active plugged /sys/module/configfs
sys-subsystem-net-devices-ens32.device loaded active plugged 82545EM Gigabit Ethernet Controller (Copper) (P
-.mount loaded active mounted /
boot.mount loaded active mounted /boot
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
run-user-0.mount loaded active mounted /run/user/0
run-user-1156800010.mount loaded active mounted /run/user/1156800010
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
brandbot.path loaded active waiting Flexible branding
systemd-ask-password-plymouth.path loaded active waiting Forward Password Requests to Plymouth Directory
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Wat
session-1.scope loaded active running Session 1 of user root
session-2.scope loaded active running Session 2 of user npeters
auditd.service loaded active running Security Auditing Service
crond.service loaded active running Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
foreman-proxy.service loaded active running Foreman Proxy
loaded active running Getty on tty1
goferd.service loaded active running Gofer Agent
httpd.service loaded active running The Apache HTTP Server
irqbalance.service loaded active running irqbalance daemon
kdump.service loaded active exited Crash recovery kernel arming
kmod-static-nodes.service loaded active exited Create list of required static device nodes for
mongod.service loaded active running High-performance, schema-free document-oriented
network.service loaded active exited LSB: Bring up/down networking
NetworkManager.service loaded active running Network Manager
nfs-config.service loaded active exited Preprocess NFS configuration
ntpd.service loaded active running Network Time Service
oddjobd.service loaded active running privileged operations for unprivileged applicat
polkit.service loaded active running Authorization Manager
postfix.service loaded active running Postfix Mail Transport Agent
pulp_celerybeat.service loaded active running Pulp's Celerybeat
pulp_resource_manager.service loaded active running Pulp Resource Manager
pulp_worker-0.service loaded active running Pulp Worker #0
pulp_worker-1.service loaded active running Pulp Worker #1
pulp_worker-2.service loaded active running Pulp Worker #2
pulp_worker-3.service loaded active running Pulp Worker #3
pulp_workers.service loaded active exited Pulp Celery Workers
puppet.service loaded active running Puppet agent
● qdrouterd.service loaded failed failed Qpid Dispatch router daemon
qpidd.service loaded active running An AMQP message broker daemon.
rhel-dmesg.service loaded active exited Dump dmesg to /var/log/dmesg
rhel-domainname.service loaded active exited Read and set NIS domainname from /etc/sysconfig
rhel-import-state.service loaded active exited Import network configuration from initramfs
rhel-readonly.service loaded active exited Configure read-only root support
rhsmcertd.service loaded active running Enable periodic update of entitlement certifica
rsyslog.service loaded active running System Logging Service
sshd.service loaded active running OpenSSH server daemon
sssd.service loaded active running System Security Services Daemon
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
tuned.service loaded active running Dynamic System Tuning Daemon
wpa_supplicant.service loaded active running WPA Supplicant daemon
xinetd.service loaded active running Xinetd A Powerful Replacement For Inetd
-.slice loaded active active Root Slice
system-getty.slice loaded active active system-getty.slice
system.slice loaded active active System Slice
user-0.slice loaded active active user-0.slice
user-1156800010.slice loaded active active user-1156800010.slice
user.slice loaded active active User and Session Slice
dbus.socket loaded active running D-Bus System Message Bus Socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active running Journal Socket
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
dev-disk-by\x2duuid-d5e9a3f0\x2d7536\x2d42d3\x2db9ac\x2d5eacd9a3c295.swap loaded active active /dev/disk/by-uuid/d5
basic.target loaded active active Basic System
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network-online.target loaded active active Network is Online
network.target loaded active active Network
nss-user-lookup.target loaded active active User and Group Name Lookups
paths.target loaded active active Paths
remote-fs.target loaded active active Remote File Systems
slices.target loaded active active Slices
sockets.target loaded active active Sockets
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
timers.target loaded active active Timers
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.

109 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

[root@katello1-ops-prod-nvan qpid-dispatch]# cat qdrouterd.conf ##
  1. Licensed to the Apache Software Foundation (ASF) under one
  2. or more contributor license agreements. See the NOTICE file
  3. distributed with this work for additional information
  4. regarding copyright ownership. The ASF licenses this file
  5. to you under the Apache License, Version 2.0 (the
  6. "License"); you may not use this file except in compliance
  7. with the License. You may obtain a copy of the License at ##
  8. http://www.apache.org/licenses/LICENSE-2.0 ##
  9. Unless required by applicable law or agreed to in writing,
  10. software distributed under the License is distributed on an
  11. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  12. KIND, either express or implied. See the License for the
  13. specific language governing permissions and limitations
  14. under the License ##
  1. See the qdrouterd.conf (5) manual page for information about this
  2. file's format and options.
    container {
    worker-threads: 4
    container-name: katello1-ops-prod-nvan.mydomain.net
    }

router {
mode: interior
router-id: katello1-ops-prod-nvan.mydomain.net
}

ssl-profile {
name: client
cert-db: /etc/pki/katello/certs/katello-default-ca.crt
cert-file: /etc/pki/katello/qpid_router_client.crt
key-file: /etc/pki/katello/qpid_router_client.key
}

ssl-profile {
name: server
cert-db: /etc/pki/katello/certs/katello-default-ca.crt
cert-file: /etc/pki/katello/qpid_router_server.crt
key-file: /etc/pki/katello/qpid_router_server.key
}

connector {
name: hub
addr: katello1-ops-int-nvan.mydomain.net
port: 5646
sasl-mechanisms: ANONYMOUS
role: inter-router
ssl-profile: client
idle-timeout-seconds: 0
}

linkRoutePattern {
prefix: pulp.
}

linkRoutePattern {
prefix: qmf.
}

listener {
addr: 0.0.0.0
port: 5647
sasl-mechanisms: ANONYMOUS
ssl-profile: server
}

fixed-address {
prefix: /closest
fanout: single
bias: closest
}

fixed-address {
prefix: /unicast
fanout: single
bias: closest
}

fixed-address {
prefix: /exclusive
fanout: single
bias: closest
}

fixed-address {
prefix: /multicast
fanout: multiple
}

fixed-address {
prefix: /broadcast
fanout: multiple
}

fixed-address {
prefix: /
fanout: multiple
}
[root@katello1-ops-prod-nvan qpid-dispatch]# systemctl status qdrouterd
● qdrouterd.service - Qpid Dispatch router daemon
Loaded: loaded (/usr/lib/systemd/system/qdrouterd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-01-18 20:59:20 PST; 1min 44s ago
Main PID: 13610 (code=exited, status=1/FAILURE)

Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: Started Qpid Dispatch router daemon.
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: Starting Qpid Dispatch router daemon...
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: qdrouterd.service: main process exited, code=ex...URE
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: Unit qdrouterd.service entered failed state.
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: qdrouterd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@katello1-ops-prod-nvan qpid-dispatch]# systemctl status qdrouterd -l
● qdrouterd.service - Qpid Dispatch router daemon
Loaded: loaded (/usr/lib/systemd/system/qdrouterd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-01-18 20:59:20 PST; 1min 56s ago
Main PID: 13610 (code=exited, status=1/FAILURE)

Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: Started Qpid Dispatch router daemon.
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: Starting Qpid Dispatch router daemon...
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: qdrouterd.service: main process exited, code=exited, status=1/FAILURE
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: Unit qdrouterd.service entered failed state.
Jan 18 20:59:20 katello1-ops-prod-nvan.mydomain.net systemd1: qdrouterd.service failed.
[root@katello1-ops-prod-nvan qpid-dispatch]# katello-service restart
Redirecting to /bin/systemctl stop httpd.service

Redirecting to /bin/systemctl stop pulp_resource_manager.service

Redirecting to /bin/systemctl stop pulp_celerybeat.service

Redirecting to /bin/systemctl stop pulp_workers.service

Redirecting to /bin/systemctl stop foreman-proxy.service

Redirecting to /bin/systemctl stop qdrouterd.service

Redirecting to /bin/systemctl stop qpidd.service

Redirecting to /bin/systemctl stop mongod.service

Success!
Redirecting to /bin/systemctl start mongod.service

Redirecting to /bin/systemctl start qpidd.service

Redirecting to /bin/systemctl start qdrouterd.service

Redirecting to /bin/systemctl start foreman-proxy.service

Redirecting to /bin/systemctl start pulp_workers.service

Redirecting to /bin/systemctl start pulp_celerybeat.service

Redirecting to /bin/systemctl start pulp_resource_manager.service

Redirecting to /bin/systemctl start httpd.service

Success!
[root@katello1-ops-prod-nvan qpid-dispatch]# systemctl status qdrouterd -l
● qdrouterd.service - Qpid Dispatch router daemon
Loaded: loaded (/usr/lib/systemd/system/qdrouterd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-01-18 21:04:06 PST; 27s ago
Process: 13961 ExecStart=/usr/sbin/qdrouterd -c /etc/qpid-dispatch/qdrouterd.conf (code=exited, status=1/FAILURE)
Main PID: 13961 (code=exited, status=1/FAILURE)

Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net systemd1: Started Qpid Dispatch router daemon.
Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net systemd1: Starting Qpid Dispatch router daemon...
Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net qdrouterd13961: Mon Jan 18 21:04:06 2016 ERROR (error) Python: Exception: Cannot load configuration file /etc/qpid-dispatch/qdrouterd.conf: org.apache.qpid.dispatch.connector: Unknown attribute 'idleTimeoutSeconds' for 'org.apache.qpid.dispatch.connector'
Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net qdrouterd13961: Mon Jan 18 21:04:06 2016 ERROR (error) Traceback (most recent call last):
Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net qdrouterd13961: File "/usr/lib/qpid-dispatch/python/qpid_dispatch_internal/management/config.py", line 125, in configure_dispatch
Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net systemd1: qdrouterd.service: main process exited, code=exited, status=1/FAILURE
Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net systemd1: Unit qdrouterd.service entered failed state.
Jan 18 21:04:06 katello1-ops-prod-nvan.mydomain.net systemd1: qdrouterd.service failed.
[root@katello1-ops-prod-nvan qpid-dispatch]#


Related issues 2 (0 open2 closed)

Related to Katello - Bug #13017: Integrate upstream EPEL qpid with katelloClosedJustin Sherrill01/06/2016Actions
Has duplicate Katello - Bug #13301: require specific version of qpid-dispatch-router on capsule and katello installationDuplicateJustin Sherrill01/20/2016Actions
Actions #1

Updated by Eric Helms almost 9 years ago

  • Category set to Installer
  • Assignee set to Stephen Benjamin
  • Translation missing: en.field_release set to 113
Actions #2

Updated by Nathan Peters almost 9 years ago

This is not actually a bug with the configuration file. This is due to version 0.5 of qdrouterd getting installed from the EPEL repository because katello-installer and capsule-installer do not enforce versions of qdrouterd. Version 0.4 from the katello-pulp repos works.

Actions #3

Updated by Eric Helms over 8 years ago

  • Has duplicate Bug #13301: require specific version of qpid-dispatch-router on capsule and katello installation added
Actions #4

Updated by Justin Sherrill over 8 years ago

  • Status changed from New to Rejected

we are planning on moving to the newer qpid versions in epel, and will pin the version of that. The tricky part with locking the version is that this feature is actually not in the current upstream qpid version, we've applied a patch to support it (to handle disconnections).

Actions #5

Updated by Justin Sherrill over 8 years ago

  • Related to Bug #13017: Integrate upstream EPEL qpid with katello added
Actions

Also available in: Atom PDF