Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1074014 - Double OK when starting the service
Double OK when starting the service
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd (Show other bugs)
6.6
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jakub Hrozek
Kaushik Banerjee
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-07 11:26 EST by Jan Pazdziora
Modified: 2014-10-14 00:48 EDT (History)
9 users (show)

See Also:
Fixed In Version: sssd-1.11.5.1-1.el6
Doc Type: Bug Fix
Doc Text:
Cause: Bash function daemon will call 'success' or 'fail'. It is useless to call them one more time. It may cause strange behaviour with some configurations of terminal. Consequence: When running service sssd restart, the [OK] is printed three times Fix: remove rudimentary call of 'success' and 'failure' Result: [OK] is printed 2 times
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-10-14 00:48:10 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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1375 normal SHIPPED_LIVE sssd bug fix and enhancement update 2014-10-13 21:06:25 EDT

  None (edit)
Description Jan Pazdziora 2014-03-07 11:26:25 EST
Description of problem:

When running service sssd restart, the [OK] is printed three times.

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

sssd-1.9.2-129.el6.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. Have IPA-enrolled machine so that sssd starts without errors.
2. Run service sssd restart.

Actual results:

# service sssd restart
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]
#

Expected results:

# service sssd restart
Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]
#

Additional info:

Jakub suggests the culprit is

  daemon $SSSD -f -D && success || failure

because daemon itself seems to report the success.
Comment 1 Dmitri Pal 2014-03-13 08:53:20 EDT
Upstream ticket:
https://fedorahosted.org/sssd/ticket/2280
Comment 2 Lukas Slebodnik 2014-03-19 10:30:36 EDT
I was not able to reproduce it
Steps done
1. Created new RHEL6.5 VM
2. Updated all packages
3. Installed package ipa-client
4. machine was enrolled to IPA
5. Run service sssd restart.

[root@vm-049 ~]# rpm -q sssd
sssd-1.9.2-129.el6.x86_64
[root@vm-049 ~]# rpm -qa | grep sysv
sysvinit-tools-2.87-5.dsf.el6.x86_64
[root@vm-049 ~]# rpm -qa | grep upstart
upstart-0.6.5-12.el6_4.1.x86_64
[root@vm-049 ~]# 
[root@vm-049 ~]# service sssd status
sssd (pid  1962) is running...
[root@vm-049 ~]# service sssd restart
Stopping sssd:                                             [  OK  ]
Starting sssd:                                             [  OK  ]
[root@vm-049 ~]# service sssd stop
Stopping sssd:                                             [  OK  ]
[root@vm-049 ~]# service sssd restart
Stopping sssd: cat: /var/run/sssd.pid: No such file or directory
                                                           [FAILED]
Starting sssd:                                             [  OK  ]

Could you compare version of installed packages?
Comment 3 Jan Pazdziora 2014-03-20 03:27:36 EDT
[root@mgmt3 ~]# rpm -q sssd
sssd-1.9.2-129.el6.x86_64
[root@mgmt3 ~]# rpm -qa | grep sysv
ntsysv-1.3.49.3-2.el6_4.1.x86_64
sysvinit-tools-2.87-5.dsf.el6.x86_64
[root@mgmt3 ~]# rpm -qa | grep upstart
upstart-0.6.5-12.el6_4.1.x86_64
[root@mgmt3 ~]# service sssd status
sssd (pid  8006) is running...
[root@mgmt3 ~]# service sssd restart
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]
[root@mgmt3 ~]# service sssd stop
Stopping sssd: [  OK  ]
[root@mgmt3 ~]# service sssd restart
Stopping sssd: cat: /var/run/sssd.pid: No such file or directory
[FAILED]
[  OK  ] sssd: [  OK  ]
[root@mgmt3 ~]#
Comment 5 Jakub Hrozek 2014-03-20 15:41:55 EDT
Fixed upstream:
    master: 636caee5776fb062fde39bc761df142005dcb589
    sssd-1-11: d4ebaeb010645cb974aff21f00b8132ae5f2d85d
Comment 7 Amith 2014-06-26 05:06:16 EDT
Verified the bz on SSSD Version : sssd-1.11.6-1.el6.x86_64

Steps followed during verification -

# service sssd restart
Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]

# rpm -q sssd
sssd-1.11.6-1.el6.x86_64
Comment 8 errata-xmlrpc 2014-10-14 00:48:10 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.

http://rhn.redhat.com/errata/RHBA-2014-1375.html

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