Bug 908325

Summary: rlService* functions should provide more debugging information
Product: [Fedora] Fedora Reporter: Petr Šplíchal <psplicha>
Component: beakerlibAssignee: Filip Holec <fholec>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fholec, ohudlick, pmuller, psplicha, zmraz
Target Milestone: ---Keywords: FutureFeature, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: beakerlib-1.8-1.fc19 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 971929 (view as bug list) Environment:
Last Closed: 2013-06-29 18:03:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch providing more debugging information in rlService* functions none

Description Petr Šplíchal 2013-02-06 12:45:22 UTC
Description of problem:

Currently, when a service start fails on a system with systemd
there is not much details shown about the failures itself. The
output can look like this:

> Redirecting to /bin/systemctl start  httpd.service
> Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
> :: [   LOG    ] ::[ ERROR   ] :: rlServiceStart: Starting service httpd failed
> :: [   FAIL   ] :: Running 'rlServiceStart httpd' (Expected 0, got 1)

In such cases it would be useful to run commands suggested above
to get additional information about why the service action failed.

Version-Release number of selected component (if applicable):
beakerlib-1.6-2.el7

Comment 2 Filip Holec 2013-02-15 14:00:18 UTC
The patch I attach adds this feature to beakerlib (it shows status of the failed service, the reason why the service failed is in the status report)

Comment 3 Filip Holec 2013-02-15 14:01:20 UTC
Created attachment 697808 [details]
patch providing more debugging information in rlService* functions

Comment 4 Petr Muller 2013-04-30 14:33:22 UTC
Should not be MODIFIED, it was not commited yet.

Comment 5 Petr Muller 2013-06-07 15:31:51 UTC
I have applied the patch and extended it so it provides more information even in the BeakerLib log

Comment 7 Fedora Update System 2013-06-10 12:15:48 UTC
beakerlib-1.8-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/beakerlib-1.8-1.fc19

Comment 8 Fedora Update System 2013-06-10 14:38:27 UTC
Package beakerlib-1.8-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing beakerlib-1.8-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-10465/beakerlib-1.8-1.fc19
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2013-06-29 18:03:12 UTC
beakerlib-1.8-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.