Bug 847968

Summary: Get "Invalid arguments" while running "rhc domain -dp <password>"
Product: OKD Reporter: jizhao
Component: ocAssignee: John (J5) Palmieri <johnp>
Status: CLOSED WONTFIX QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: jkeck, rmillner, szhou, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 18:04:10 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 jizhao 2012-08-14 08:49:30 UTC
Description of problem:
"rhc domain" always shows "Invalid arguments" while running "rhc domain -dp <password>". All "rhc domain" commands have the same issue.

Version-Release number of selected component (if applicable):
rhc-0.97.6-1.el6_3.noarch

How reproducible:
Always

Steps to Reproduce:
1.$ rhc domain show -dp <password> --trace
2.
3.
  
Actual results:
/usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/commands.rb:106:in `validate_command': Invalid arguments (ArgumentError)
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/commands.rb:152:in `to_commander'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:180:in `call'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:180:in `call'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:155:in `run'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/runner.rb:402:in `run_active_command'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/commands.rb:65:in `run!'
	from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/delegates.rb:7:in `run!'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/lib/rhc/cli.rb:37:in `start'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.97.6/bin/rhc:62
	from /usr/bin/rhc:19:in `load'
	from /usr/bin/rhc:19


Expected results:
The domain info should be shown successfully.

Additional info:

Comment 1 jizhao 2012-08-14 09:10:14 UTC
Besides, there's no --force|-f option. Is it still unfinished?

Comment 2 Xiaoli Tian 2012-08-14 09:29:31 UTC
(In reply to comment #1)
> Besides, there's no --force|-f option. Is it still unfinished?

This is tracked in this bug 847719.

Comment 3 John (J5) Palmieri 2012-08-16 18:04:10 UTC
There is no -dp option. I'm not sure if commander supports concatenating options together. 

You should use the command

rhc domain show -d -p password