Bug 852509
Summary: | aeolus-check-services always returns 0, no $RETVAL | ||
---|---|---|---|
Product: | [Retired] CloudForms Cloud Engine | Reporter: | jliberma <jliberma> |
Component: | aeolus-configure | Assignee: | Steve Linabery <slinaber> |
Status: | CLOSED ERRATA | QA Contact: | Rehana <aeolus-qa-list> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.1.0 | CC: | athomas, dajohnso, dmacpher, jlaska, morazi, rlandy |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
aeolus-check-services always returned 0, even if a service failed. This fix checks for any failed Cloud Engine service and returns 1 if any service failed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-12-04 15:18:05 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: |
Description
jliberma@redhat.com
2012-08-28 18:17:54 UTC
040c5eff4d810b2a2a41f255eeea6bc5e0f008fa on master, in nightly build Testing rpms:
>> rpm -qa |grep aeolus
aeolus-configure-2.8.6-1.el6cf.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
rubygem-aeolus-cli-0.7.1-1.el6cf.noarch
aeolus-conductor-0.13.8-1.el6cf.noarch
aeolus-conductor-daemons-0.13.8-1.el6cf.noarch
aeolus-conductor-doc-0.13.8-1.el6cf.noarch
aeolus-all-0.13.8-1.el6cf.noarch
- Modified /etc/sysconfig/deltacloud-core and stopped the service
- Ran aeolus-check-services
- echo $? returns 1
- Test results are included below:
.................
[root@qeblade39 sysconfig]# aeolus-check-services
Checking mongod ...
Success: mongod (pid 26739) is running...
Checking iwhd ...
Success: iwhd (pid 26763) is running...
Checking postgresql ...
Success: postmaster (pid 26802) is running...
Checking httpd ...
Success: httpd (pid 26823) is running...
Checking deltacloud-core ...
FAILURE: deltacloud-core is stopped
Checking libvirtd ...
Success: libvirtd (pid 26875) is running...
Checking aeolus-conductor ...
Success: thin (pid 26960) is running...
Checking conductor-delayed_job ...
Success: delayed_job.0 (pid 27008) is running...
delayed_job.1 (pid 27010) is running...
Checking conductor-dbomatic ...
Success: dbomatic (pid 27026) is running...
Checking imagefactory ...
Success: imagefactory (pid 27043) is running...
Checking ntpd ...
Success: ntpd (pid 27060) is running...
[root@qeblade39 sysconfig]# echo $?
1
.... Restarting services
[root@qeblade39 sysconfig]# aeolus-restart-services
# service ntpd stop ...
Success: Shutting down ntpd: [ OK ]
# service imagefactory stop ...
Success: Stopping imagefactory: [ OK ]
# service conductor-dbomatic stop ...
[ OK ]: Shutting down conductor-dbomatic: [ OK ]
# service conductor-delayed_job stop ...
/usr/share/aeolus-conductor/config/../app/util/deployable_xml.rb:210: warning: already initialized constant DEPLOYABLE_VERSION
Success: Shutting down conductor-delayed_job: Using gem require instead of bundler
delayed_job: trying to stop process with pid 27010...
delayed_job: trying to stop process with pid 27008...
delayed_job: process with pid 27008 successfully stopped.
delayed_job: process with pid 27010 successfully stopped.
[ OK ]
# service aeolus-conductor stop ...
Success: Shutting down thin: [ OK ]
# service libvirtd stop ...
Success: Stopping libvirtd daemon: [ OK ]
# service deltacloud-core stop ...
FAILURE: Shutting down deltacloud-core: [FAILED]
# service httpd stop ...
Success: Stopping httpd: [ OK ]
# service postgresql stop ...
Success: Stopping postgresql service: [ OK ]
# service iwhd stop ...
[ OK ]: Stopping iwhd daemon: [ OK ]
# service mongod stop ...
Success: Stopping mongod: [ OK ]
# service mongod start ...
Success: Starting mongod: [ OK ]
# service iwhd start ...
Success: waiting for mongod to listen on localhost:27017[ OK ]
Starting iwhd daemon: [ OK ]
# service postgresql start ...
Success: Starting postgresql service: [ OK ]
# service httpd start ...
Success: Starting httpd: [ OK ]
# service deltacloud-core start ...
Success: Starting deltacloud-core-mock: [ OK ]
# service libvirtd start ...
Success: Starting libvirtd daemon: [ OK ]
# service aeolus-conductor start ...
Success: Starting thin: [ OK ]
# service conductor-delayed_job start ...
/usr/share/aeolus-conductor/config/../app/util/deployable_xml.rb:210: warning: already initialized constant DEPLOYABLE_VERSION
Success: Starting conductor-delayed_job: Using gem require instead of bundler
delayed_job.0: process with pid 27745 started.
delayed_job.1: process with pid 27747 started.
[ OK ]
# service conductor-dbomatic start ...
[ OK ]: Starting conductor-dbomatic: [ OK ]
# service imagefactory start ...
Success: Starting imagefactory: [ OK ]
# service ntpd start ...
Success: Starting ntpd: [ OK ]
# service mongod status ...
Success: mongod (pid 27476) is running...
[root@qeblade39 sysconfig]# echo $?
0
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/RHEA-2012-1516.html |