Bug 889313

Summary: rhc app create is throwing strange errors on git clone
Product: OKD Reporter: Nam Duong <nduong>
Component: ocAssignee: Clayton Coleman <ccoleman>
Status: CLOSED INSUFFICIENT_DATA QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: jinzhang, jofernan
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: 2013-01-10 20:35:27 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:
Attachments:
Description Flags
debug output to rhc app create -d command
none
rhc app create output log 20121221 none

Description Nam Duong 2012-12-20 18:51:15 UTC
Description of problem:

See https://openshift.redhat.com/community/forums/openshift/rhc-app-create-problem#comment-25845 for more details.  

The symptoms look very unusual:  
$ rhc app create -a quake2 -t jbossas-7
Password: *********
 
Creating application 'quake2'
=============================
 
  Namespace: xianrenb
  Cartridge: jbossas-7
  Gear Size: default
  Scaling:   no
 
Your application's domain name is being propagated worldwide (this might take a
minute)...
invalid byte sequence in UTF-8
Usage: rhc app create <name> <cartridge> [-n namespace]
Pass '--help' to see the full list of options

What's more odd is the output to:
$ rhc app create -a quake2 -t jbossas-7 -d
Password: *********DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3
DEBUG: Request: #<RestClient::Request:0x2056d824 @method=:get, @headers={:accept=>:json, "Authorization"=>"Basic eGlhbnJlbmJAZ21haWwuY29tOm9vb29sb2dpbg==", "User-Agent"=>"rhc/1.2.7 (ruby 1.9.3; i386-cygwin)"}, @url="https://openshift.redhat.com/broker/rest/api", @cookies={}, @payload=nil, @user=nil, @password=nil, @timeout=nil, @open_timeout=4, @block_response=nil, @raw_response=false, @verify_ssl=false, @ssl_client_cert=nil, @ssl_client_key=nil, @ssl_ca_file=nil, @tf=nil, @max_redirects=10, @processed_headers={"Accept"=>"application/json", "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"Basic eGlhbnJlbmJAZ21haWwuY29tOm9vb29sb2dpbg==", "User-Agent"=>"rhc/1.2.7 (ruby 1.9.3; i386-cygwin)"}, @args={:url=>"https://openshift.redhat.com/broker/rest/api", :method=>:get, :headers=>{:accept=>:json, "Authorization"=>"Basic eGlhbnJlbmJAZ21haWwuY29tOm9vb29sb2dpbg==", "User-Agent"=>"rhc/1.2.7 (ruby 1.9.3; i386-cygwin)"}, :timeout=>nil, :open_timeout=>4}>
.....

See attached for the debug output.

Comment 1 Nam Duong 2012-12-20 18:51:42 UTC
Created attachment 666899 [details]
debug output to rhc app create -d command

Comment 2 joycezhang 2012-12-21 07:35:05 UTC
This bug couldn't be reproduced on PROD env, please refer to the details as below:

Build:
PROD 
rhc.1.2.7.gem
ruby-1.9 on windows7

Steps:
1. Create a jbossas app as below:
rhc app create -a testapp3 -t jbossas-7 -d

Actual result:
The app can be created successfully. Please refer to the detailed log as attached. Thanks.

Comment 3 joycezhang 2012-12-21 07:38:05 UTC
Created attachment 667117 [details]
rhc app create output log 20121221

Comment 4 Clayton Coleman 2013-01-02 19:19:55 UTC
This looks like a problem with the old version of the gem.  Can we get a recreation with the latest RHC gem?

Comment 5 Clayton Coleman 2013-01-10 20:35:27 UTC
Please recreate and reopen.