Bug 974507 - Creating any type of app after jenkins-server ruins listing apps list via rhc, console, restapi on STG and devenv
Summary: Creating any type of app after jenkins-server ruins listing apps list via rh...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 975370
TreeView+ depends on / blocked
 
Reported: 2013-06-14 10:11 UTC by Oleg Fayans
Modified: 2016-12-01 00:27 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 975370 (view as bug list)
Environment:
Last Closed: 2013-06-24 14:55:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
server log (123.36 KB, text/x-log)
2013-06-14 10:11 UTC, Oleg Fayans
no flags Details
facter command output (4.20 KB, text/plain)
2013-06-14 10:12 UTC, Oleg Fayans
no flags Details
return value of listing applications via RESTAPI (20.30 KB, text/plain)
2013-06-16 07:19 UTC, Xiaoli Tian
no flags Details

Description Oleg Fayans 2013-06-14 10:11:53 UTC
Created attachment 761208 [details]
server log

Description of problem:

I am unable to use my rhcsetup after creating jenkins-server and jbossas-7 app

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

ami-id: ami-890c7ae0

How reproducible:
Every time

Steps to Reproduce:
1. Create a new user, run rhc setup
2. create a jenkins-1.4 app
3. Create a jbossas-7 app
4. Issue the command rhc apps

Actual results:
The server did not respond correctly. This may be an issue with the server configuration or with your connection to the server (such as a Web proxy or firewall). Please verify that you can
access the OpenShift server https://ec2-184-72-213-22.compute-1.amazonaws.com/broker/rest/domains/ofajans1/applications

Expected results:

List of created apps is displayed

Server log and server facter output are attached


Additional info:

Comment 1 Oleg Fayans 2013-06-14 10:12:35 UTC
Created attachment 761209 [details]
facter command output

Comment 2 Xiaoli Tian 2013-06-14 12:52:43 UTC
the ami should be devenv_3661

Comment 3 Xiaoli Tian 2013-06-16 07:11:19 UTC
This bug happens on all types of applications after creating jenkins.

It happens on devenv-stage_376 as well.

Comment 4 Xiaoli Tian 2013-06-16 07:19:00 UTC
Created attachment 761764 [details]
return value of listing applications via RESTAPI

while list applications via  curl -k  -X  GET   --user xtian+c1: 12  https://$dns/broker/rest/domains/4iu8v0u92n/applications


      <pre>undefined method `component_instances&#x27; for #&lt;RestApplication:0x00000006e6ec30&gt;</pre>

Comment 5 Xiaoli Tian 2013-06-16 07:32:19 UTC
This bug happens on current STG( which matches devenv-stage_375 as well), should be get hot-fixed before deploy it to PROD.

It does not happen on current PROD yet.

Comment 6 Zhe Wang 2013-06-17 01:59:26 UTC
Bug reproducible in devenv_3368

Comment 7 Xiaoli Tian 2013-06-17 05:17:10 UTC
Any existing account which having jenkins added will be broken due to this bug

Comment 8 Dan McPherson 2013-06-17 14:37:38 UTC
Full Stack:

ESC[0;37m2013-06-17 10:33:45.920ESC[0m [ESC[31mFATALESC[0m] NoMethodError (undefined method `component_instances' for #<R
estApplication:0x00000005652ca0>):
  activemodel (3.2.8) lib/active_model/attribute_methods.rb:407:in `method_missing'
  openshift-origin-controller (1.10.1) app/rest_models/rest_application.rb:141:in `block (2 levels) in initialize'
  openshift-origin-controller (1.10.1) app/rest_models/rest_application.rb:140:in `each'
  openshift-origin-controller (1.10.1) app/rest_models/rest_application.rb:140:in `block in initialize'
  openshift-origin-controller (1.10.1) app/rest_models/rest_application.rb:137:in `each'
  openshift-origin-controller (1.10.1) app/rest_models/rest_application.rb:137:in `initialize'
  openshift-origin-controller (1.10.1) app/helpers/rest_model_helper.rb:8:in `new'
  openshift-origin-controller (1.10.1) app/helpers/rest_model_helper.rb:8:in `get_rest_application'
  openshift-origin-controller (1.10.1) app/controllers/applications_controller.rb:24:in `block in index'
  openshift-origin-controller (1.10.1) app/controllers/applications_controller.rb:24:in `map!'
  openshift-origin-controller (1.10.1) app/controllers/applications_controller.rb:24:in `index'

Comment 9 Dan McPherson 2013-06-17 15:21:31 UTC
https://github.com/openshift/origin-server/pull/2861

Comment 12 Wei Sun 2013-06-18 04:59:54 UTC
Verified on STG(devenv_378) and devenv_3373

Can list apps via rhc and RESTAPI.


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