Created attachment 925825 [details] Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_USERNAME, JENKINS_PASSWORD Description of problem: Whenever I try to add Jenkins Cartridge, it will prompt me error (I think is only for my account) Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Click on my app 2. Click on Enable Jenkins 3. Add Jenkins Actual results: Prompt Error: Unexpected error: Cartridge attempted to override the following gear environment variables: JENKINS_USERNAME, JENKINS_PASSWORD Expected results: Jenkins Successfully Added with Username and Password Additional info:
Andy is this the same as the other jenkins issue you looked into that appeared to be a broker issue? (leftover env vars in mongo)
@Ben yes, for some reason it looks like creating Jenkins apps doesn't always complete successfully (perhaps especially for small gears?) and when the rollback happens, it doesn't roll back domain env vars or domain ssh keys. (See bug #1126826.) I think there are 2 issues: 1) Sometimes Jenkins apps fail to create. This may happen more frequently with small gears. 2) Rollback doesn't delete domain env vars or ssh keys.
Is there anyway other way to go about creating my jenkins ? Or could someone help me to get rid of the env var?
Sorry for the delay in replying. Do you have any other applications in your domain? If not, you can try to delete your domain and recreate it, which will clear the stuck env vars.
Reassigning to broker team
*** Bug 1130719 has been marked as a duplicate of this bug. ***
Thanks! The deletion of the domain worked! :D
Fixed with --> https://github.com/openshift/origin-server/pull/5717
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.
Do we have a script going out as part of this to fix all currently-impacted users?
oo-admin-repair --ssh-keys should be able to deal with such inconsistencies.
I'm having this same issue, however, I'm not able to delete the domain and recreate since I have other applications. Please advise.
i have this issue, tried to delete all applications, that didn't fix it.
Can you guys take a look to see if the issue is resolved? If not, give me your domain names and I'll take a look.
Issue has been resolved, works fine now.