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:
The same issue exists on website, the jenkins app is not accessible after creating.
Fixed in >= fork_ami_refctr1_373
Disregard the last comment. Was added to the wrong bug.
Okay for real this time: Fixed in >= fork_ami_refctr1_373
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.
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
Created attachment 678006 [details] development.log when create jenkins app
Latest issue fixed in fork_ami_refctr1_406+
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.