Bug 867242

Summary: Doesn't have meaningful error message when trying to idle nonexistent UUID
Product: OKD Reporter: Wei Sun <wsun>
Component: ContainersAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: mfisher, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-06 18:49:51 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 Wei Sun 2012-10-17 06:33:27 UTC
Description of problem:

Log in an instance,run "rhc-idler -u " with nonexistent UUID,don't show meaningful error message,only list the command's usage.Should give a prompt like "UUID does not exist".

Version-Release number of selected component (if applicable):
devenv_2340
rhc 0.99.7 on devenv_2340

How reproducible:
always

Steps to Reproduce:
1.Try to idle nonexistent UUID
  rhc-idler -u c2892

  [root@ip-10-42-103-131 ~]# rhc-idler -u c2892
Usage: /usr/bin/rhc-idler
  -u UUID       idles the app
  -l            list all idled apps
  -n            don't restart httpd

Actual results:

Expected results:
Give a meaningful error message

Additional info:

Comment 1 Rob Millner 2012-10-27 00:00:40 UTC
# oo-idler  -u blahblahblah
Unknown gear UUID: blahblahblah
Usage: ./oo-idler
  -u UUID       idles the app
  -l            list all idled apps
  -n            don't restart httpd


Added to pull request:
https://github.com/openshift/origin-server/pull/777

Comment 2 Xiaoli Tian 2012-10-29 02:50:02 UTC
> https://github.com/openshift/origin-server/pull/777

Move it to ON_QA since above pull request is merged

Comment 3 Wei Sun 2012-10-29 04:16:11 UTC
verified on devenv_2397

Step:
1.Try to idle nonexistent UUID
oo-idler -u $uuid

Result:
[root@ip-10-122-55-61 ~]# oo-idler -u test
Unknown gear UUID: test
Usage: /usr/bin/oo-idler
  -u UUID       idles the app
  -l            list all idled apps
  -n            don't restart httpd