Bug 889932 - [fork][model refactor]Can't create jenkins app successfully
Summary: [fork][model refactor]Can't create jenkins app successfully
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-24 04:31 UTC by Rony Gong 🔥
Modified: 2015-05-15 02:10 UTC (History)
4 users (show)

Fixed In Version: fork_ami_refctr1_406+
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 23:16:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
development.log (75.50 KB, text/plain)
2012-12-24 04:31 UTC, Rony Gong 🔥
no flags Details
development.log when create jenkins app (11.57 KB, text/plain)
2013-01-14 03:25 UTC, Rony Gong 🔥
no flags Details

Description Rony Gong 🔥 2012-12-24 04:31:22 UTC
Created attachment 668311 [details]
development.log

Description of problem:
Couldn't create jenkins app  successfully,  the jenkins app can not be accessed 
Some log:
2012-12-23 21:59:53.596 [ERROR] undefined method `attributes' for #<Hash:0x00000006bc02e0> (pid:2603)
2012-12-23 21:59:53.600 [ERROR] ["/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.3.2/app/models/application.rb:784:in `block in process_commands'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.3.2/app/models/application.rb:784:in `map'
Version-Release number of selected component (if applicable):
fork_ami_refctr1_372


How reproducible:
always

Steps to Reproduce:
1.Create jenkins app
2.Show this app
3.
  
Actual results:
[qgong@localhost dev]$ rhc app create qjenkins jenkins
Application Options
===================
  Gear Size: default
  Namespace: qgong15
  Scaling:   no
  Cartridge: jenkins-1.4

Creating application 'qjenkins' ... done

Waiting for your DNS name to be available ...     retry # 1 - Waiting for DNS: qjenkins-qgong15.dev.rhcloud.com
    retry # 2 - Waiting for DNS: qjenkins-qgong15.dev.rhcloud.com
    retry # 3 - Waiting for DNS: qjenkins-qgong15.dev.rhcloud.com
    retry # 4 - Waiting for DNS: qjenkins-qgong15.dev.rhcloud.com
    retry # 5 - Waiting for DNS: qjenkins-qgong15.dev.rhcloud.com
    retry # 6 - Waiting for DNS: qjenkins-qgong15.dev.rhcloud.com
    retry # 7 - Waiting for DNS: qjenkins-qgong15.dev.rhcloud.com
failure
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING:  Your application was created successfully but had problems during
          configuration. Below is a list of the issues and steps you can
          take to complete the configuration of your application.

  Application URL: http://qjenkins-qgong15.dev.rhcloud.com/

  Issues:
    1. We were unable to lookup your hostname (qjenkins-qgong15.dev.rhcloud.com) in a reasonable amount of time and can not clone your application.

  Steps to complete your configuration:
    1. Clone your git repo
      $ rhc git-clone qjenkins

  If you can't get your application 'qjenkins' running in the browser,
  you can try destroying and recreating the application:

    $ rhc app delete qjenkins --confirm

  If this doesn't work for you, let us know in the forums or in IRC and we'll
  make sure to get you up and running.

    Forums - https://openshift.redhat.com/community/forums/openshift
    IRC - #openshift (on Freenode)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


[qgong@localhost dev]$ rhc app show q1jenkins
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-73-121-221.compute-1.amazonaws.com/broker/rest/domains/qgong15/applications/q1jenkins/cartridges


Expected results:
Create jenkins server without any error message.

Additional info:

Comment 1 Yujie Zhang 2012-12-24 09:13:46 UTC
The same issue exists on website, the jenkins app is not accessible after creating.

Comment 2 Dan McPherson 2013-01-02 23:51:27 UTC
Fixed in >= fork_ami_refctr1_373

Comment 3 Dan McPherson 2013-01-03 00:20:17 UTC
Disregard the last comment.  Was added to the wrong bug.

Comment 4 Dan McPherson 2013-01-03 00:40:20 UTC
Okay for real this time:

Fixed in >= fork_ami_refctr1_373

Comment 5 Dan McPherson 2013-01-03 00:40:48 UTC
Okay for real this time:

Fixed in >= fork_ami_refctr1_373

Comment 6 Rony Gong 🔥 2013-01-04 02:03:35 UTC
Verified on fork_ami_refctr1_373
[qgong@localhost dev]$ rhc app create -a qjenkins -t jenkins-1.4
Application Options
===================
  Scaling:   no
  Gear Size: default
  Namespace: qgong3
  Cartridge: jenkins-1.4

Creating application 'qjenkins' ... done

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

Downloading the application Git repository ...
Initialized empty Git repository in /home/qgong/mytest/dev/qjenkins/.git/
Warning: Permanently added 'qjenkins-qgong3.dev.rhcloud.com' (RSA) to the list of known hosts.

Your application code is now in 'qjenkins'

qjenkins @ http://qjenkins-qgong3.dev.rhcloud.com/ (uuid: 50e636712a5d899308000024)
===================================================================================
  Created: 1:54 AM
  Git URL: ssh://50e636712a5d899308000024.rhcloud.com/~/git/qjenkins.git/
  SSH:     50e636712a5d899308000024.rhcloud.com

  jenkins-1.4 (Jenkins Server 1.4)
  ================================

RESULT:
Application qjenkins was created.

Comment 7 Rony Gong 🔥 2013-01-14 03:24:11 UTC
Retested on fork_ami_refctr1_404, show error when create jenkins application.
Debug more: user consumed_gears ++1, this jenkins application created in server ,but no data of this application in mongdb/application.

[qgong@localhost dev]$rhc app create -a qjenkins -t jenkins-1.4
Application Options
===================
  Gear Size: default
  Cartridge: jenkins-1.4
  Scaling:   no
  Namespace: qgong12

Creating application 'q2jenkins' ... Valid cartridge types:

Short Name   Full name
==========   =========
diy-0.1      Do-It-Yourself
jbossas-7    JBoss Application Server 7.1
jbosseap-6.0 JBoss Enterprise Application Platform 6.0
jenkins-1.4  Jenkins Server 1.4
nodejs-0.6   Node.js 0.6
perl-5.10    Perl 5.10
php-5.3      PHP 5.3
python-2.6   Python 2.6
ruby-1.8     Ruby 1.8
ruby-1.9     Ruby 1.9
jbossews-1.0 Tomcat 6 (JBoss EWS 1.0)
jbossews-2.0 Tomcat 7 (JBoss EWS 2.0)
zend-5.6     Zend Server 5.6

undefined method `empty?' for nil:NilClass

Comment 8 Rony Gong 🔥 2013-01-14 03:25:36 UTC
Created attachment 678006 [details]
development.log when create jenkins app

Comment 9 Abhishek Gupta 2013-01-14 20:58:46 UTC
Latest issue fixed in fork_ami_refctr1_406+

Comment 10 Zhe Wang 2013-01-17 05:59:15 UTC
Verified in fork_ami_refctr1_420

Steps:
1. create a jenkins server app
$ rhc app create jenkins jenkins-1.4 -p redhat

2. show the state of this app
$ rhc app show --state jenkins -predhat

3. visit the link of the jenkins app

Result:
Gear group jenkins-1.4 is started, and the url is accessible.


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