Bug 859292 - It returns error message when creating scalable app via rhc client
Summary: It returns error message when creating scalable app via rhc client
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 02:48 UTC by Meng Bo
Modified: 2015-05-15 02:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:48:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2012-09-21 02:48:52 UTC
Description of problem:
Create scalable app via "rhc app create -a app1 -t php-5.3 -s" will get NoMethodError but the app is created successfully on instance.

Version-Release number of selected component (if applicable):
rhc-0.99.2
devenv_2207

How reproducible:
always

Steps to Reproduce:
1.Create scalable app via CLI
rhc app create -a app1 -t php-5.3 -s
  
Actual results:
Get error message like following but the app is created successfully

Submitting form:
debug: true
rhlogin: bmeng
Contacting https://
Creating application: php1s in bmengdev
/usr/lib/ruby/gems/1.8/gems/rhc-0.99.2/lib/rhc-common.rb:522:in `create_app': undefined method `uuid' for #<Hash:0xb69a1b20> (NoMethodError)
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.99.2/bin/rhc-app:229:in `create_app'
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.99.2/bin/rhc-app:504
	from /usr/bin/rhc-app:19:in `load'
	from /usr/bin/rhc-app:19


Expected results:
App should be created successfully and return correct info from client side.

Additional info:
App can be created successfully on instance.

Comment 1 Xiaoli Tian 2012-09-22 03:43:59 UTC
Raise its severity and priority since it will block all automation testing.

Comment 2 John (J5) Palmieri 2012-09-25 01:44:23 UTC
This is fixed in my commands-merge branch. Will be rolling an ami tomorrow though other things may have broken.

Comment 3 John (J5) Palmieri 2012-09-27 20:44:49 UTC
Backported patch

master - https://github.com/openshift/rhc/pull/167

This issue only shows up in master so no hotfix needed for staging

Comment 4 Xiaoli Tian 2012-09-28 07:23:05 UTC
Verified it with the rhc built in 
fork_ami_US2597_US2599_US2813_US2817_US2872_173 against the latest devenv(devenv_2248) on Fedora17 with ruby-1,9 and git version 1.7.10.1.

Although there are still problem for other platforms, but it seems a different bug, will fill another bug to track.

[root@F17x64-openshift test]# rhc app create scaleruby1 ruby-1.9 -s -l xtian+t5 
Password: *

Creating application 'scaleruby1'
=================================

  Namespace: domx5
  Cartridge: ruby-1.9
  Gear Size: default
  Scaling:   yes

Your application's domain name is being propagated worldwide (this might take a minute)...
The authenticity of host 'scaleruby1-domx5.dev.rhcloud.com (50.17.163.18)' can't be established.
RSA key fingerprint is 71:92:68:7d:19:dc:2e:de:8f:e5:83:92:f9:1b:95:a5.
Are you sure you want to continue connecting (yes/no)? yes
Cloning into 'scaleruby1'...
done

RESULT:
Application scaleruby1 was created.


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