Project

General

Profile

Bug #11249

"katello-service list" doesn't work on Satellite 6 installed on RHEL7

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

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1213382
Description of problem:
katello-service list has discrepancy in listing the output of "katello-service list" as the script check for output of chkconfig for the all the katello services, which of course wouldn't work on the EL7 system as it uses systemd to list unit-files.

Version-Release number of selected component (if applicable):
Satellite 6.0.x and Satellite 6.1
katello-service scripts

How reproducible:
100%

Steps to Reproduce:
1. Install Satellite 6.0.x or Satellite 6.1 Beta
2. Execute "katello-service list"

Actual results:
"katello-service list" command is broken on EL7, which perfectly works in EL6

Expected results:
"katello-service list" should work in EL7 as well.

Additional info:
Checking the /usr/bin/katello-service file we see the below section which checks for the output of chkconfig for list command
chkconfig() {
RET=0
E_STAT=0
for service in $SERVICES; do
if [ -e /etc/init.d/$service -o -e /lib/systemd/system/$service.service ]; then
/sbin/chkconfig $service "$@"
E_STAT=$?
fi
if [ $E_STAT -ne 0 ]; then
RET=$E_STAT
fi
done
return $RET
}

Associated revisions

Revision 370c3e1a (diff)
Added by Stephen Benjamin over 7 years ago

fixes #11249 - return `katello list` command

Revision 3d6125e3
Added by Stephen Benjamin over 7 years ago

Merge pull request #34 from stbenjam/11249

fixes #11249 - return `katello list` command

History

#1 Updated by Eric Helms over 7 years ago

  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

#2 Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/34 added
  • Pull request deleted ()

#3 Updated by Stephen Benjamin over 7 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF