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
Fixes put in with rev#903f84738cc04eb718461eabb9c5bf71aa20dc62 The pending_op group was getting deleted after a rollback failure. We now prevent that from happening.
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