Red Hat Bugzilla – Bug 834737
Failed created app due to timeout is not cleared from mongo
Last modified: 2015-05-14 21:58:59 EDT
Description of problem:
After failed to creating a scaling jbosseap app due to timeout, it's still listed in rhc domain show, note the log below, there's even no response code.
#rhc app create -a scalejbosseap6 -l firstname.lastname@example.org -p 123456 -s -t jbosseap-6.0
Creating application: scalejbosseap6 in domainxstg1
Problem reported from server. Response code was .
Re-run with -d for more information.
Failed to access resource: Request Timeout
# rhc domain show
Git URL: ssh://email@example.com/~/git/scalejbosseap6.git/
Public URL: http://scalejbosseap6-domainxstg1.stg.rhcloud.com/
# ping scalejbosseap6-domainxstg1.stg.rhcloud.com
ping: unknown host scalejbosseap6-domainxstg1.stg.rhcloud.com
#rhc app create -a jbossapp1 -t jbossas-7 --enable-jenkins -l firstname.lastname@example.org
Creating application: jenkins in domstg2
Now your new domain name is being propagated worldwide (this might take a minute)...
Confirming application 'jenkins' is available: Success!
jenkins published: http://jenkins-domstg2.stg.rhcloud.com/
git url: ssh://email@example.com/~/git/jenkins.git/
Jenkins created successfully. Please make note of these credentials:
Note: You can change your password at: https://jenkins-domstg2.stg.rhcloud.com/me/configure
Creating application: jbossapp1 in domstg2
There was a problem communicating with the server. Response message: execution expired
If you were disconnected it is possible the operation finished without being able to report success.
You can use 'rhc domain show' and 'rhc app status' to learn about the status of your user and application(s).
Cleaning up application
#rhc domain show -l firstname.lastname@example.org
Git URL: ssh://email@example.com/~/git/jbossapp1.git/
Public URL: http://jbossapp1-domstg2.stg.rhcloud.com/
Git URL: ssh://firstname.lastname@example.org/~/git/jenkins.git/
Public URL: http://jenkins-domstg2.stg.rhcloud.com/
ping: unknown host jbossapp1-domstg2.stg.rhcloud.com
Version-Release number of selected component (if applicable):
Always(if you failed creating app due to timeout)
Steps to Reproduce:
(Not sure if every one will meet time out, if not, try to set timeout to a low value)
1.Create an app which may consume much time like scaling jbosseap6, set timeout to low
2.Check domain info
3.Access the failed app
The app is failed to create, but it still shows in rhc domain show.
It should be cleared if failing to create
But it could be destoryed successfully:
#rhc app destroy -a scalejbosseap6 -l email@example.com -p 123456
!!!! WARNING !!!! WARNING !!!! WARNING !!!!
You are about to destroy the scalejbosseap6 application.
This is NOT reversible, all remote data for this application will be removed.
Do you want to destroy this application (y/n): y
Successfully destroyed application: scalejbosseap6
Since the app could be destroyed successfully by user ,let me reduce its severity to not be a blocker.
Feel free to raise it if you think it needs a fix before release.
This sounds mostly as designed. At least the part about a timeout leaves the app there. Now why the app failed to create correctly might be an issue. Longer term these sorts of timeouts won't happen because we will be backgrounding app create. But for now if the client times out you can expect the app create will either be a success and the app will be there or a failure and the app can be destroyed by the client.