Bug 999791

Summary: Almost always meet "uninitialized constant RHC::Rest::Client::Set" when creating/controlling scaling apps via RHC
Product: OpenShift Online Reporter: Zhe Wang <zhewang>
Component: ocAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: dmcphers, lzhang, xtian, yadu
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-08-29 12:54:32 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:

Description Zhe Wang 2013-08-22 07:01:09 UTC
Description of problem:
When creating an app, it sometimes reports the following error:

Creating application 'as' ... An unexpected error occured: uninitialized constant RHC::Rest::Client::Set

Moreover, the problem is more frequent to reproduce when creating a scaling app


Version-Release number of selected component (if applicable):
devenv-stage_448
rhc-1.13.5

How reproducible:
Sometimes for non-scaling apps.
Almost always when creating a scaling app

Steps to Reproduce:
1. create a scaling app

Actual results:
The creation failed with the error:

[zhe@fedora run11]$ rhc app create as jbossas-7
Application Options
-------------------
  Namespace:  stg448tst
  Cartridges: jbossas-7
  Gear Size:  default
  Scaling:    yes

Creating application 'as' ... An unexpected error occured: uninitialized constant RHC::Rest::Client::Set

Expected results:
It should be successful to create a JBoss app.
Additional info:

Comment 1 Zhe Wang 2013-08-22 08:14:32 UTC
This bug becomes more frequent when creating scaling apps with rhc-1.13.5. Moreover, I have not met this error after switching to rhc-1.13.3.

Comment 2 Yan Du 2013-08-22 08:40:37 UTC
seems the bug can be reproduced when controlling scalable app:

[root@Daphne test]# rhc stop-app phps
An unexpected error occured: uninitialized constant RHC::Rest::Client::Set
[root@Daphne test]# rhc start-app phps
An unexpected error occured: uninitialized constant RHC::Rest::Client::Set

Comment 3 Jessica Forrester 2013-08-22 15:35:00 UTC
Fixed in master: https://github.com/openshift/rhc/pull/448
Fixed in stage: https://github.com/openshift/rhc/pull/449

Comment 4 openshift-github-bot 2013-08-22 16:23:32 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/ecb313c68ef37ec2519b0a2ad3b5410ce5ab2b60
Bug 999791 - uninitialized constant RHC::Rest::Client::Set

Comment 5 Lei Zhang 2013-08-23 07:37:57 UTC
verified on devenv-stage-452 and rhc-1.13.6



[rayzhang@rayzhang Work]$ rhc app create myjbossas7s jbossas-7 -s 
Application Options
-------------------
  Namespace:  rayzhang
  Cartridges: jbossas-7
  Gear Size:  default
  Scaling:    yes

Creating application 'myjbossas7s' ... 
HAProxy instance is started
Artifact: ./ROOT.war is still deploying
done

  Artifacts deployed: ./ROOT.war

Waiting for your DNS name to be available ... done

Cloning into 'myjbossas7s'...
The authenticity of host 'myjbossas7s-rayzhang.dev.rhcloud.com (23.22.99.113)' can't be established.
RSA key fingerprint is 99:5e:73:1c:bc:dd:3d:51:3a:08:d9:18:ea:6b:da:d5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'myjbossas7s-rayzhang.dev.rhcloud.com' (RSA) to the list of known hosts.

Your application 'myjbossas7s' is now available.

  URL:        http://myjbossas7s-rayzhang.dev.rhcloud.com/
  SSH to:     517786280755997270081536.rhcloud.com
  Git remote: ssh://517786280755997270081536.rhcloud.com/~/git/myjbossas7s.git/
  Cloned to:  /home/rayzhang/Work/myjbossas7s

Run 'rhc show-app myjbossas7s' for more details about your app.