Bug 1109646 - "oo-admin-ctl-app" doesn't work
Summary: "oo-admin-ctl-app" doesn't work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1105843
TreeView+ depends on / blocked
 
Reported: 2014-06-16 03:29 UTC by Qixuan Wang
Modified: 2015-05-15 00:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-15 10:30:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qixuan Wang 2014-06-16 03:29:20 UTC
Description of problem:
Check help infomation of oo-admin-ctl-app, meet error.

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

How reproducible:
Always

Steps to Reproduce:
1. oo-broker oo-admin-ctl-app -h
2. oo-broker oo-admin-ctl-app --help

Actual results:
[root@ip-10-140-190-190 ~]# oo-broker oo-admin-ctl-app -h
/usr/sbin/oo-admin-ctl-app:66:in `dup': can't dup NilClass (TypeError)
	from /usr/sbin/oo-admin-ctl-app:66:in `<main>'

Expected results:
Should show help info

Additional info:

Comment 1 Qixuan Wang 2014-06-16 05:22:35 UTC
"oo-admin-ctl-app" doesn't work.

[root@ip-10-140-190-190 ~]# oo-broker oo-admin-ctl-app -c restart -a py26
/usr/sbin/oo-admin-ctl-app:66:in `dup': can't dup NilClass (TypeError)
	from /usr/sbin/oo-admin-ctl-app:66:in `<main>'

Comment 2 Abhishek Gupta 2014-06-16 19:52:49 UTC
Fixed with --> https://github.com/openshift/origin-server/pull/5458

Comment 3 openshift-github-bot 2014-06-16 21:13:30 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/7102c9c830a4f7da6295ccd11e2e8f53f6993f70
Bug 1109646: dup was being called on nil

Comment 4 Liang Xia 2014-06-17 02:15:21 UTC
Verified on devenv_4874, 

1. oo-broker oo-admin-ctl-app -h
2. oo-broker oo-admin-ctl-app --help
can get the help doc.

3. oo-broker man oo-admin-ctl-app
can get the man page

4. oo-broker oo-admin-ctl-app -c restart -a diy  -l lxia
5. oo-broker oo-admin-ctl-app -c status -a diy  -l lxia
# oo-broker oo-admin-ctl-app -c restart -a diy  -l lxia
Success
# oo-broker oo-admin-ctl-app -c status -a diy  -l lxia
Application UUID is 539fdb29b918773fc5000001
GEAR UUID is 539fdb29b918773fc5000001
Application is running


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