Project

General

Profile

Actions

Bug #16912

closed

All services are set to start on runlevel 2 in EL6 environments

Added by Stephen Benjamin over 7 years ago. Updated almost 4 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1217821
Description of problem:

In EL6 environments, when you list chkconfig info for the system you'll see the foreman/katello/pulp services are all set to start at runlevel 2. Network doesn't start until runlevel 3, so I expect all services to be off for runlevels 0,1,2,6 and on for 3,4,5. Here is the current output from a sat 6.1 QA box:

$>sudo chkconfig --list
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
blk-availability 0:off 1:on 2:on 3:on 4:on 5:on 6:off
certmonger 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cgconfig 0:off 1:off 2:off 3:off 4:off 5:off 6:off
cgred 0:off 1:off 2:off 3:off 4:off 5:off 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dhcpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dhcpd6 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dhcrelay 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dhcrelay6 0:off 1:off 2:off 3:off 4:off 5:off 6:off
elasticsearch 0:off 1:off 2:on 3:on 4:on 5:on 6:off
foreman 0:off 1:off 2:off 3:off 4:off 5:off 6:off
foreman-proxy 0:off 1:off 2:on 3:on 4:on 5:on 6:off
foreman-tasks 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
htcacheclean 0:off 1:off 2:off 3:off 4:off 5:off 6:off
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ipmi 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ipmievd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ktune 0:off 1:off 2:off 3:on 4:on 5:on 6:off
libvirt-guests 0:off 1:off 2:on 3:on 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
mongod 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ntpdate 0:off 1:off 2:off 3:off 4:off 5:off 6:off
oddjobd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ovirt-guest-agent 0:off 1:off 2:on 3:on 4:on 5:on 6:off
portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
postgresql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
pulp_celerybeat 0:off 1:off 2:on 3:on 4:on 5:on 6:off
pulp_resource_manager 0:off 1:off 2:on 3:on 4:on 5:on 6:off
pulp_workers 0:off 1:off 2:on 3:on 4:on 5:on 6:off
puppet 0:off 1:off 2:on 3:on 4:on 5:on 6:off
puppetmaster 0:off 1:off 2:off 3:off 4:off 5:off 6:off
qemu-ga 0:off 1:off 2:on 3:on 4:on 5:on 6:off
qpidd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rhnsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rhsmcertd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sssd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
tomcat6 0:off 1:off 2:on 3:on 4:on 5:on 6:off
tuned 0:off 1:off 2:off 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

xinetd based services:
chargen-dgram: off
chargen-stream: off
daytime-dgram: off
daytime-stream: off
discard-dgram: off
discard-stream: off
echo-dgram: off
echo-stream: off
rsync: off
tcpmux-server: off
tftp: on
time-dgram: off
time-stream: off

Version-Release number of selected component (if applicable): 6.0.z

How reproducible:
Always

Steps to Reproduce:
1) Install Sat6 on EL6
2) list chkconfig output with `sudo chkconfig --list`
3) Observe the foreman/pulp/katello services are all enabled for runlevel 2

Actual results:

Observe a line like this one for all sat6 services

pulp_workers 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Expected results:

I expected it to look the way Pulp upstream looks on EL6. In Pulp upstream I can do:
0) a fresh pulp install on EL6
1) I add pulp_workers to chkconfig using `sudo chkconfig --add pulp_workers`
2) I then list the chkconfig services `sudo chkconfig --list`
3) observe the correct line is there:

pulp_workers 0:off 1:off 2:off 3:on 4:on 5:on 6:off

Additional info:

This was discovered on a customer case where there system wouldn't boot because sat6 services were being started before networking and were preventing the systsem to boot. So there's been at least 1 customer issue related to this problem.

Also I suspect it works in many places today because many init scripts have a Required-Start line like this one:

  1. Required-Start: $network

$network can be redefined, and if it is it could cause satellite 6 services on misconfigured machines to start before networking does which caused sat6 to break on the customer case.

This seems to be getting set by this line in the installer: https://github.com/Katello/katello-installer/blob/master/modules/mongodb/manifests/server/service.pp

Actions #1

Updated by Justin Sherrill over 7 years ago

  • Subject changed from All services are set to start on runlevel 2 in EL6 environments to All services are set to start on runlevel 2 in EL6 environments
  • translation missing: en.field_release set to 114
Actions #2

Updated by Bryan Kearney about 7 years ago

  • Status changed from New to Rejected

Downstream bug is closed.

Actions #3

Updated by Jonathon Turel almost 4 years ago

  • Target version changed from Katello Backlog to Katello Recycle Bin
Actions

Also available in: Atom PDF