Bug 958284 - Application UUID 517a92ae5973ca08a2000242 is broken in production with no framework cartridge
Summary: Application UUID 517a92ae5973ca08a2000242 is broken in production with no fra...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-30 20:09 UTC by Fabiano Franz
Modified: 2015-05-15 00:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 04:01:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Fabiano Franz 2013-04-30 20:09:34 UTC
Description of problem: 

An error page was thrown while trying to create a JBoss app based on the CapeDwarf quickstart (https://www.openshift.com/quickstarts/capedwarf) in the web console. Error page was the regular 500 page on the web console, but unfortunately no Reference ID was displayed. After that the app was left on my apps list but on a broken state - it exists but there are no framework cartridge associated and the DNS creation didn't happen (capedwarf-ffranz.rhcloud.com).

Submitting this bug in case we want to track it down and try to understand what happened.

Additional info:

App UUID: 517a92ae5973ca08a2000242

Creation Time: 2013-04-26T14:43:58Z (from 'rhc apps')

Portion of the 'list apps' REST API endpoint (notice the 'framework' attribute is missing): http://pastebin.test.redhat.com/139515

I was able to find the following related entries on ex-srv4-broker.log: http://pastebin.test.redhat.com/139720

Web console displays the app with no framework: http://screencloud.net/v/g1lo

Version-Release number of selected component (if applicable): production

How reproducible: unable to reproduce

Comment 1 Rajat Chopra 2013-05-21 22:56:03 UTC
Fixes put in with rev#903f84738cc04eb718461eabb9c5bf71aa20dc62
The pending_op group was getting deleted after a rollback failure. We now prevent that from happening.

Comment 2 Jianwei Hou 2013-05-22 08:51:05 UTC
Verified on devenv_3258

1. modify the oo_app_create method /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb, making the method return a non-zero exit code and and error message, force app creation to rollback.
2. restart mcollective and the broker
3. rhc app-create capewarf jbossas-7 --from-code git://github.com/openshift/capedwarf-example.git -px
4. Try to find this app in mongo

Result:
App creation failed, the app removed from both mongo and node


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