Description of problem: I cannot create an application with a Jenkins server cartridge in my domain (moeberg). Each time I try, I get the following error message: Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_PASSWORD, JENKINS_USERNAME I have tried 20+ times. I have tried from the OpenShift web page. I have tried from the JBoss development studio. I have tried to create a Jenkins gear on its own. I have tried to create it along with my JBoss EA 6 gear, by choosing a Jenkins client cartridge for that gear. This issue might be related to 1114910. I have had no problems creating Jenkins cartridges in the past. But this morning I had an incident, where the creation of a Jenkins cartridge dragged on for a long time and finally timed out. After this incident I have not been able to create Jenkins cartridges. How reproducible: Steps to Reproduce: 1. Create an application containing only a Jenkins server cartridge in my domain (moeberg). Actual results: Above mentioned error message. Expected results: A new application containing a Jenkins server cartridge only. Additional info:
I'm having trouble locating your account and domain - what login do you use with OpenShift?
Making login info comment private
Lars, you should probably change your password since you posted it to a public web site.
Yes, I realize that. Thanks. Do you need it, or may I change it now?
You should change it. We're still having problems locating your account. Are there any special characters in either your login or your domain? Is the "o" in moeberg an o or is it ø? Could you please copy and paste the command you run (rhc create-app …) and its full output? Thanks!
There are no special characters in the domain name (m o e b e r g). I don't know which roc command is run behind the scene. All I see is the attached error message after pushing the create button.
Created attachment 924264 [details] Screen shot showing error message.
LMP-MAC:jasperserver-pro lmp$ rhc app create -a jenkins -t jenkins-1 Application Options ------------------- Domain: moeberg Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkins' ... Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_PASSWORD, JENKINS_USERNAME
Thanks. Could you please email the output of "rhc account" and "rhc apps" to agoldste?
Done!
Lars, It doesn't look like you have any applications in your domain. Are you ok with deleting and recreating the domain using the rhc tools? That should clear things up.
I did: LMP-MAC:jasperserver-pro lmp$ rhc domain delete moeberg Deleting domain 'moeberg' ... deleted LMP-MAC:jasperserver-pro lmp$ rhc create-domain moeberg Creating domain 'moeberg' ... done You may now create an application using the 'rhc create-app' command And after that: LMP-MAC:jasperserver-pro lmp$ rhc create-app jenkins jenkins-1 Application Options ------------------- Domain: moeberg Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkins' ... Starting jenkins cartridge Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Waiting ... Timed out waiting for Jenkins to fully start Failed to execute: 'control start' for /var/lib/openshift/53e13c69e0b8cdb79000016c/jenkins This is the same as I saw this morning. I then tried again: LMP-MAC:jasperserver-pro lmp$ rhc create-app jenkins jenkins-1 Application Options ------------------- Domain: moeberg Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkins' ... Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_PASSWORD, JENKINS_USERNAME So, we are back where we started. But now at least we have a clear picture of the line of events.
Just tried to start on a large gear (and it worked): LMP-MAC:jasperserver-pro lmp$ rhc create-app -g large jenkins jenkins-1 Application Options ------------------- Domain: moeberg Cartridges: jenkins-1 Gear Size: large Scaling: no Creating application 'jenkins' ... done Jenkins created successfully. Please make note of these credentials: User: admin Password: _msRG39b_Ztc Note: You can change your password at: https://jenkins-moeberg.rhcloud.com/me/configure Waiting for your DNS name to be available ... done Cloning into 'jenkins'... Warning: Permanently added the RSA host key for IP address '54.198.188.227' to the list of known hosts. Your application 'jenkins' is now available. URL: http://jenkins-moeberg.rhcloud.com/ SSH to: 53e13efbe0b8cde51e000374.com Git remote: ssh://53e13efbe0b8cde51e000374.com/~/git/jenkins.git/ Cloned to: /Applications/jasperreports-server-5.6/apache-tomcat/webapps/jasperserver-pro/jenkins Run 'rhc show-app jenkins' for more details about your app.
Medium works as well: LMP-MAC:jasperserver-pro lmp$ rhc create-app -g medium jenkins2 jenkins-1 Application Options ------------------- Domain: moeberg Cartridges: jenkins-1 Gear Size: medium Scaling: no Creating application 'jenkins2' ... done Jenkins created successfully. Please make note of these credentials: User: admin Password: ZG7bU4WeC4AV Note: You can change your password at: https://jenkins2-moeberg.rhcloud.com/me/configure Waiting for your DNS name to be available ... done
I believe I have sufficient information to debug/fix this issue.
Fixed with --> https://github.com/openshift/origin-server/pull/5717
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/9e02f63c0044b3c76eb77c492672c08ac3436196 Bug 1126826: cleaning up domain env vars and ssh keys on rollback
Verified on devenv_5089 Steps: 1. Create domain 2. Create jenkins app, stop ruby193-mcollective while the creation is underway, this makes the creation fail and all pending ops will rollback. 3. Start ruby193-mcollective 4. Clear pending ops 5. Make sure the jenkins env vars are cleaned up by querying domain records in datastore 6. Create another jenkins app Result: App is cleaned up, the env_vars are cleaned up from user domains. New jenkins app created successfully.
*** Bug 1148938 has been marked as a duplicate of this bug. ***
Abhishek, Has this fix been pushed live to OpenShift Online? I have encountered this problem. Regards, Ben
This comment got missed since the bug was in "Verified" state. This fix should definitely be in production now. If you still encounter the issue, please send me your application and domain details.
No worries. I ended up removing my domain and starting again.
I'm still encountering this issue. The OpenShift Online website displays the following error message: "Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_PASSWORD, JENKINS_USERNAME" I get a similar result from the console: === >rhc app create -a jenkins -t jenkins-1 Application Options ------------------- Domain: pdedecker Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkins' ... Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_USERNAME, JENKINS_PASSWORD === I use the same e-mail address to log in to Bugzilla and my OpenShift account. I also tried explicitly specifying the small gear size to the app creation command, but I still got the error.
(In reply to pdedecker from comment #28) > I'm still encountering this issue. The fix should prevent a Jenkins app create from leaving domain env vars in Mongo when it has to be rolled back. However, it doesn't fix the situation if that already occurred prior to the fix. Is it possible you had a failed Jenkins app creation prior to the fix for this problem? How old is your domain, and is this error still happening?
(In reply to Luke Meyer from comment #29) > Is it possible you had a failed Jenkins app creation prior to the fix for > this problem? How old is your domain, and is this error still happening? I created my OpenShift account in early November 2014, so my domain should be fairly recent. Since the fix was created in August 2014, I don't think that it's possible. I ran the console command again and I'm still getting the same error.
Seems to me this merits re-examination.
This should now be fixed - please confirm.
I used the OpenShift website to create a new Jenkins cartridge and I got a reassuring "Jenkins created successfully" message this time. As far as I'm concerned, this issue can be marked as fixed.
Thanks for the quick check/response.
[test1@local ~]$ rhc account Login qizhao on openshift.redhat.com ----------------------------------------------- ID: 543783a2e0b8cdbf9400012b Plan: Free Gears Used: 0 Gears Allowed: 3 Domains Allowed: 1 Allowed Gear Sizes: small SSL Certificates: no [test1@local ~]$ rhc create-app jenkins jenkins-1 Application Options ------------------- Domain: bugack Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkins' ... done Jenkins created successfully. Please make note of these credentials: User: admin Password: uHsd9knu3_sw Note: You can change your password at: https://jenkins-bugack.rhcloud.com/me/configure Waiting for your DNS name to be available ... done Cloning into 'jenkins'... The authenticity of host 'jenkins-bugack.rhcloud.com (54.145.82.39)' can't be established. RSA key fingerprint is cf:ee:77:cb:0e:fc:02:d7:72:7e:ae:80:c0:90:88:a7. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'jenkins-bugack.rhcloud.com,54.145.82.39' (RSA) to the list of known hosts. Your application 'jenkins' is now available. URL: http://jenkins-bugack.rhcloud.com/ SSH to: 54b5dd8b5973caae8b000100.com Git remote: ssh://54b5dd8b5973caae8b000100.com/~/git/jenkins.git/ Cloned to: /home/test1/jenkins Run 'rhc show-app jenkins' for more details about your app. [test1@local ~]$ rhc apps jenkins @ http://jenkins-bugack.rhcloud.com/ (uuid: 54b5dd8b5973caae8b000100) ----------------------------------------------------------------------------- Domain: bugack Created: 11:07 AM Gears: 1 (defaults to small) Git URL: ssh://54b5dd8b5973caae8b000100.com/~/git/jenkins.git/ SSH: 54b5dd8b5973caae8b000100.com Deployment: auto (on git push) jenkins-1 (Jenkins Server) -------------------------- Gears: 1 small You have access to 1 application.
(In reply to Abhishek Gupta from comment #32) > This should now be fixed - please confirm. Was there any specific commit that fixed this beyond the one in comment 22? Just want to be sure it's resolved for Enterprise.
No code changes were made, there were some applications that had stuck operations that we cleared.
Guys, Are you sure this bug is already fixed? This is happening to me right now: ## [ssantos@ssantos openshift_training]$ rhc app create --app jenkinsapp --type jenkins Using jenkins-1 (Jenkins Server) for 'jenkins' Application Options ------------------- Domain: sergiofilho Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkinsapp' ... Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_USERNAME, JENKINS_PASSWORD ## My login is: sergiofilho
Sergio, I have fixed your domain. You should be able to create a new jenkins app now.
Thanks Andy. I've just tested and it is working fine now.
Hello everyone, I don't know what I am doing wrong but is happening to me the same. rhc create-app jenkins jenkins-1 Application Options ------------------- Domain: gebonilla Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkins' ... Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_USERNAME, JENKINS_PASSWORD The one a can create is small, I am not able to create with a large or medium gear cause my account type. Thanks for your help.
(In reply to Gustavo E Bonilla from comment #41) > Hello everyone, I don't know what I am doing wrong but is happening to me > the same. > > rhc create-app jenkins jenkins-1 > Application Options > ------------------- > Domain: gebonilla > Cartridges: jenkins-1 > Gear Size: default > Scaling: no > > Creating application 'jenkins' ... > Unexpected error: Cartridge attempted to override the following gear > environment variables: JENKINS_USERNAME, > JENKINS_PASSWORD > > The one a can create is small, I am not able to create with a large or > medium gear cause my account type. > > Thanks for your help. my login is gebonilla thanks.... again!!!
You'd be better served by opening a new bug with the details of your specific issue. It's hard to work an issue on a closed bug.
I fixed the gebonilla domain.