Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1187014 - katello-installer failed on rhel7 with error: Could not enable postgresql: Execution of '/sbin/chkconfig --add postgresql' returned 1:
katello-installer failed on rhel7 with error: Could not enable postgresql: Ex...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Installer (Show other bugs)
Nightly
Unspecified Unspecified
unspecified Severity high (vote)
: Unspecified
: Unused
Assigned To: Katello Bug Bin
Sachin Ghai
http://projects.theforeman.org/issues...
: Reopened, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-29 02:31 EST by Sachin Ghai
Modified: 2017-02-23 15:37 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:22:34 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
installer logs are attached (948.10 KB, text/plain)
2015-01-29 02:31 EST, Sachin Ghai
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 9163 None None None 2016-04-22 12:19 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Sachin Ghai 2015-01-29 02:31:48 EST
Created attachment 985450 [details]
installer logs are attached

Description of problem:
katello installer failed on rhel7 with:

Could not enable postgresql: Execution of '/sbin/chkconfig --add postgresql' returned 1:

Version-Release number of selected component (if applicable):
nightly on rhel7

* candlepin-0.9.38-1.el7.noarch
* candlepin-common-1.0.18-1.el7.noarch
* candlepin-selinux-0.9.38-1.el7.noarch
* candlepin-tomcat-0.9.38-1.el7.noarch
* elasticsearch-0.90.10-7.el7.noarch
* foreman-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* foreman-compute-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* foreman-gce-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* foreman-libvirt-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* foreman-ovirt-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* foreman-postgresql-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* foreman-proxy-1.8.0-0.develop.201501280951gite1bc928.el7.noarch
* foreman-release-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* foreman-selinux-1.8.0-0.develop.201412151103gite2863e4.el7.noarch
* foreman-vmware-1.8.0-0.develop.201501281301gitf8a56f5.el7.noarch
* katello-2.1.0-1.201411061509gitb0b8f43.el7.noarch
* katello-certs-tools-2.0.1-1.el7.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-2.2.0-1.201501272021gitf707d62.el7.noarch
* katello-installer-base-2.2.0-1.201501272021gitf707d62.el7.noarch
* katello-repos-2.1.1-1.el7.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-3.el7.x86_64
* pulp-docker-plugins-0.2.1-0.2.beta.el7.noarch
* pulp-katello-0.3-3.el7.noarch
* pulp-nodes-common-2.5.1-1.el7.noarch
* pulp-nodes-parent-2.5.1-1.el7.noarch
* pulp-puppet-plugins-2.5.1-1.el7.noarch
* pulp-puppet-tools-2.5.1-1.el7.noarch
* pulp-rpm-plugins-2.5.1-1.el7.noarch
* pulp-selinux-2.5.1-1.el7.noarch
* pulp-server-2.5.1-1.el7.noarch
* python-ldap-2.4.6-6.el7.x86_64
* ruby193-rubygem-ldap_fluff-0.3.3-1.el7.noarch
* ruby193-rubygem-net-ldap-0.10.0-1.el7.noarch
* ruby193-rubygem-runcible-1.3.0-1.el7.noarch
* rubygem-hammer_cli-0.1.4-1.201501260908gitf44b8c5.el7.noarch
* rubygem-hammer_cli_foreman-0.1.4-1.201501221305git706b057.el7.noarch
* rubygem-hammer_cli_foreman_bootdisk-0.1.2-1.el7.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410git163c264.git.0.988ca80.el7.noarch
* rubygem-hammer_cli_import-0.10.4-1.el7.noarch
* rubygem-hammer_cli_katello-0.0.7-1.201501281312git793226f.git.0.7c94372.el7.noarch


How reproducible:
always

Steps to Reproduce:
1. katello-installer
2.
3.

Actual results:


Expected results:
installer should succeed

Additional info:
installer logs on console
[ INFO 2015-01-29 02:24:41 verbose] Executing hooks in group post
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/katello-installer/katello-installer.log
[ INFO 2015-01-29 02:24:41 verbose] All hooks in group post finished
[ERROR 2015-01-29 02:24:41 verbose] Repeating errors encountered during run:
[ERROR 2015-01-29 02:24:41 verbose]  Could not enable postgresql: Execution of '/sbin/chkconfig --add postgresql' returned 1: error reading information on service postgresql: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  /Stage[main]/Postgresql::Server::Service/Service[postgresqld]/enable: change from false to true failed: Could not enable postgresql: Execution of '/sbin/chkconfig --add postgresql' returned 1: error reading information on service postgresql: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  Could not enable mongod: Execution of '/sbin/chkconfig --add mongod' returned 1: error reading information on service mongod: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  /Stage[main]/Mongodb::Server::Service/Service[mongodb]/enable: change from false to true failed: Could not enable mongod: Execution of '/sbin/chkconfig --add mongod' returned 1: error reading information on service mongod: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  Could not enable puppet: Execution of '/sbin/chkconfig --add puppet' returned 1: error reading information on service puppet: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  /Stage[main]/Puppet::Agent::Service/Service[puppet]/enable: change from false to true failed: Could not enable puppet: Execution of '/sbin/chkconfig --add puppet' returned 1: error reading information on service puppet: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  Could not enable foreman-proxy: Execution of '/sbin/chkconfig --add foreman-proxy' returned 1: error reading information on service foreman-proxy: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  /Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]/enable: change from false to true failed: Could not enable foreman-proxy: Execution of '/sbin/chkconfig --add foreman-proxy' returned 1: error reading information on service foreman-proxy: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  Could not enable qpidd: Execution of '/sbin/chkconfig --add qpidd' returned 1: error reading information on service qpidd: No such file or directory
[ERROR 2015-01-29 02:24:41 verbose]  /Stage[main]/Qpid::Service/Service[qpidd]/enable: change from false to true failed: Could not enable qpidd: Execution of '/sbin/chkconfig --add qpidd' returned 1: error reading information on service qpidd: No such file or directory
[root@qe-foreman-rhel7 ~]#
Comment 1 RHEL Product and Program Management 2015-01-29 02:34:48 EST
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Comment 3 Stephen Benjamin 2015-01-29 07:31:29 EST
Created redmine issue http://projects.theforeman.org/issues/9163 from this bug
Comment 4 Brad Buckingham 2015-01-29 13:46:19 EST
Sachin, is this a dupe of bug 1187206 ?
Comment 5 Brad Buckingham 2015-01-30 11:32:36 EST
Sachin, I am going to close this one as a dupe of bug 1187206.  If you feel this is a unique issue, please reopen.  Thanks!

*** This bug has been marked as a duplicate of bug 1187206 ***
Comment 6 Sachin Ghai 2015-02-02 02:08:46 EST
Hey Brad,

Actually katello-installer is failing on rhel7 while enabling all services via chkconfig. See this bz's description for errors. And StephenB suggested a workaround of this issue is to downgrade puppet from 3.7.4 to 3.7.3.

See here the reply from mailing list:

> [1] katello-installer failed on rhel7 with error: Could not enable
> postgresql: Execution of '/sbin/chkconfig --add postgresql' returned 1
> https://bugzilla.redhat.com/show_bug.cgi?id=1187014

Thanks, it appears katello-installer is broken in puppet 3.7.4. We have
a custom service provider that inherits from Puppet's :redhat provider,
which this commit broke by adding 'chkconfig -add':

  https://github.com/puppetlabs/puppet/commit/fdfbcc06101d8b7bb9112321952ecbb01ee773b6

For now, if you need to get a working install, downgrade puppet to
3.7.3.


Also, this issue still appears in recent nightly. So I'm opening this issue.
Comment 7 Sachin Ghai 2015-02-02 02:10:22 EST
Also, rhel7 should use systemd to enable the services instead of using chkconfig. The error logs clearly shows how chkconfig being used to enable services. So I filed this bz  "https://bugzilla.redhat.com/show_bug.cgi?id=1187206"  to use systemd instead of chkconfig for all services being enabled by katello-installer.
Comment 8 Bryan Kearney 2015-02-03 14:05:02 EST
Moving to POST since upstream bug http://projects.theforeman.org/issues/9163 has been closed
-------------
Stephen Benjamin
The service-wait provider inherits from Puppet's :redhat provider, which this commit
broke by adding 'chkconfig -add':

  https://github.com/puppetlabs/puppet/commit/fdfbcc06101d8b7bb9112321952ecbb01ee773b6

For now, if you need to get a working install, downgrade puppet to 3.7.3.


-------------
dustin tsang
tested seems to be fixed by #8478.
installer: output https://gist.github.com/3dc986eb9ce41dc32dc8
(for katello-installer @ 0c126a368f2e37755aa0d2fada2c54f51ea33f09)
Comment 11 Sachin Ghai 2015-02-13 06:15:30 EST
Verified with:
Satellite-6.1.0-RHEL-6-20150210.0
Sat6.1.0 beta snap2

I didn't get this issue while installing Sat6.1.0 beta snap2 compose. Moving this to verified. And puppet version here we are using 3.6.2. puppet-server-3.6.2-1.el6sat.noarch

If I get this again, will file another bz.
Comment 12 Sachin Ghai 2015-02-13 06:15:30 EST
Verified with:
Satellite-6.1.0-RHEL-6-20150210.0
Sat6.1.0 beta snap2

I didn't get this issue while installing Sat6.1.0 beta snap2 compose. Moving this to verified. And puppet version here we are using 3.6.2. puppet-server-3.6.2-1.el6sat.noarch

If I get this again, will file another bz.
Comment 13 Bryan Kearney 2015-08-11 09:24:17 EDT
This bug is slated to be released with Satellite 6.1.
Comment 14 errata-xmlrpc 2015-08-12 01:22:34 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592

Note You need to log in before you can comment on or make changes to this bug.