Bug 814024 - rhc-idler does NOT work
rhc-idler does NOT work
Status: CLOSED CURRENTRELEASE
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
2.x
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Jhon Honce
libra bugs
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-18 23:32 EDT by Johnny Liu
Modified: 2015-05-14 18:53 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-04-27 16:46:00 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)

  None (edit)
Description Johnny Liu 2012-04-18 23:32:24 EDT
Description of problem:
This bug is introduced by 10797174f2686396ea75c8bc687ee21ac8112c04.

[root@ip-10-118-203-101 stickshift]# rhc-idler -u 7ae27dfb799c4c83b688d60886d6a1d1
[root@ip-10-118-203-101 stickshift]# rhc-idler -l
[root@ip-10-118-203-101 stickshift]# sh -x rhc-idler -u 7ae27dfb799c4c83b688d60886d6a1d1
+ TRUE=0
+ FALSE=1
+ getopts u:dl OPTION
+ case $OPTION in
+ uuid=7ae27dfb799c4c83b688d60886d6a1d1
+ getopts u:dl OPTION
+ '[' '!' -z '' ']'
+ '[' -z 7ae27dfb799c4c83b688d60886d6a1d1 ']'
+ '[' -d /var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1 ']'
+ source /var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/.env/OPENSHIFT_GEAR_DIR
++ export OPENSHIFT_GEAR_DIR=/var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/redmine/
++ OPENSHIFT_GEAR_DIR=/var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/redmine/
+ source /var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/.env/OPENSHIFT_RUNTIME_DIR
++ export OPENSHIFT_RUNTIME_DIR=/var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/redmine/runtime/
++ OPENSHIFT_RUNTIME_DIR=/var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/redmine/runtime/
++ is_idled 7ae27dfb799c4c83b688d60886d6a1d1
++ appid=7ae27dfb799c4c83b688d60886d6a1d1
++ grep -q ' #ProxyPass' /etc/httpd/conf.d/stickshift/7ae27dfb799c4c83b688d60886d6a1d1_jialiu_redmine.conf
++ return 1
++ is_stopped 7ae27dfb799c4c83b688d60886d6a1d1
+++ get_state 7ae27dfb799c4c83b688d60886d6a1d1
+++ source /var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/.env/OPENSHIFT_RUNTIME_DIR
++++ export OPENSHIFT_RUNTIME_DIR=/var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/redmine/runtime/
++++ OPENSHIFT_RUNTIME_DIR=/var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/redmine/runtime/
+++ cat /var/lib/stickshift/7ae27dfb799c4c83b688d60886d6a1d1/redmine/runtime//.state
++ _test=started
+++ test stopped = started
++ return
+ '[' -o ']'
+ exit 0

After I use
if `is_idled "$uuid"` || `is_stopped "$uuid"` ; then
to replace
if [ `is_idled "$uuid"` -o `is_stopped "$uuid"` ]; then
it works fine.

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

How reproducible:
Always

Steps to Reproduce:
1. 
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Jhon Honce 2012-04-19 12:16:19 EDT
Suggested changes made in commit 45e70e22e42b479f8607809adb5edcfa75fa8595
Comment 2 Meng Bo 2012-04-19 22:33:57 EDT
verified on devenv_1732, issue has been fixed.

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