Bug 829849

Summary: Unable to run rhc setup in Ruby 1.9
Product: OKD Reporter: Clayton Coleman <ccoleman>
Component: ocAssignee: John (J5) Palmieri <johnp>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.xCC: bmeng, jkeck
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-06-25 18:27:23 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 Clayton Coleman 2012-06-07 16:44:09 UTC
In 1.9 ruby, when trying to run the wizard, I get this error:

/home/clayton/.rvm/gems/ruby-1.9.3-p194/gems/rhc-0.94.1/lib/rhc/wizard.rb:565:in `create_config_stage': undefined method `cp' for File:Class (NoMethodError)
	from /home/clayton/.rvm/gems/ruby-1.9.3-p194/gems/rhc-0.94.1/lib/rhc/wizard.rb:43:in `block in run'
	from /home/clayton/.rvm/gems/ruby-1.9.3-p194/gems/rhc-0.94.1/lib/rhc/wizard.rb:41:in `each'
	from /home/clayton/.rvm/gems/ruby-1.9.3-p194/gems/rhc-0.94.1/lib/rhc/wizard.rb:41:in `run'
	from /home/clayton/.rvm/gems/ruby-1.9.3-p194/gems/rhc-0.94.1/bin/rhc:67:in `<top (required)>'
	from /home/clayton/.rvm/gems/ruby-1.9.3-p194/bin/rhc:19:in `load'
	from /home/clayton/.rvm/gems/ruby-1.9.3-p194/bin/rhc:19:in `<main>'

Looks like File::cp does not existing in Ruby 1.9

Comment 1 Meng Bo 2012-06-08 11:00:32 UTC
cannot verify this bug since we do not get the latest rhc client, wait for new build to try

Comment 2 Meng Bo 2012-06-11 09:53:14 UTC
Checked this issue with latest rhc client rhc-0.94.3,
Issus has been fixed.