Description of problem: Steps to reproduce: 1) Created a scalable app: rhc app create -a kitchensink -t jbossas-7 -s 2) Embedded mysql: rhc app cartridge add -a kitchensink -c mysql-5.1 3) Proceeded to onboard https://github.com/openshift/kitchensink-example as per README.md 4) ssh'd to my haproxy gear and disabled autoscaling haproxy_ctld_daemon stop 5) Then manually scaled up with haproxy_ctld -u This returned with an error, but I didn't think anything of it. I got 2 nodes so I was happy. Validated I got 2 nodes by viewing my gear registry. 6) I tried to destroy the app and I got this error: --- rhc app destroy -a kitchensink -d Password: ******** !!!! WARNING !!!! WARNING !!!! WARNING !!!! You are about to destroy the kitchensink application. This is NOT reversible, all remote data for this application will be removed. Do you want to destroy this application (y/n): y Contacting https://openshift.redhat.com Problem reported from server. Response code was 500. DEBUG: ERROR: unable to destroy user account bd12377be92848f6bc32314131a07623ERROR: unable to destroy user account 32174eeb63e149af9c1c7211fd785daf Exit Code: 1 api_c: placeholder broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi API version: 1.1.3 RESULT: Could not destroy all gears of application. --- I wouldn't have minded so much but it was also blocking me from removing an sshkey: --- rhc sshkey remove -i cloud9 -d Password: ******** Submitting form: key_name: cloud9 action: remove-key rhlogin: nduong+mac Contacting https://openshift.redhat.com Problem reported from server. Response code was 500. DEBUG: Exit Code: 1 api_c: placeholder broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi API version: 1.1.3 RESULT: Error removing settings from gear: bd12377be92848f6bc32314131a07623 with status: -1 and output: --- Please let me know if I need to write another bug for the sshkey removal issue.
When you retry to delete does it continue to fail with the same message about unable to destroy user account?
I've checked and the gears are gone from the nodes. Here's what I get when I try to destroy it with the admin tools: # rhc-admin-ctl-app -l nduong+mac -a kitchensink -c destroy !!!! WARNING !!!! WARNING !!!! WARNING !!!! You are about to destroy the kitchensink application. This is NOT reversible, all remote data for this application will be removed. Do you want to destroy this application (y/n): y /usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.13.14/lib/stickshift-controller/app/models/application.rb:338:in `destroy': Could not destroy all gears of application. (StickShift::NodeException) from /usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.13.14/lib/stickshift-controller/app/models/application.rb:315:in `cleanup_and_delete' from /usr/bin/rhc-admin-ctl-app:103
(In reply to comment #1) > When you retry to delete does it continue to fail with the same message > about unable to destroy user account? Yes. I'm still getting this: rhc app destroy -a kitchensink -d Password: ******** !!!! WARNING !!!! WARNING !!!! WARNING !!!! You are about to destroy the kitchensink application. This is NOT reversible, all remote data for this application will be removed. Do you want to destroy this application (y/n): y Contacting https://openshift.redhat.com Problem reported from server. Response code was 500. DEBUG: ERROR: unable to destroy user account bd12377be92848f6bc32314131a07623ERROR: unable to destroy user account 32174eeb63e149af9c1c7211fd785daf Exit Code: 1 broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi api_c: placeholder API version: 1.1.3 RESULT: Could not destroy all gears of application.
I posted this issue to the Forums here: https://openshift.redhat.com/community/forums/openshift/cant-destroy-a-scalable-application Since yesterday, another user in the community has run into it.
Rajat has put together a fix for this. Pull request for master: https://github.com/openshift/crankcase/pull/255 Pull request for stage: https://github.com/openshift/crankcase/pull/254 Will update with build information.
Package built: rubygem-stickshift-node-0.13.7-1.el6_3 Package included in: devenv-stage_226
verified on STG by following the steps described above. RESULT: Successfully destroyed application: kitchensink
Is this bug duplicate of bug 839886, does this mean bug 839886 is also fixed?
I have a partially scalable app on stage since Jul 13th, and the app can be destroyed successfully after the stage hot fix. =================== [bmeng@localhost ~]$ rhc domain show User Info ========= Namespace: bmeng1stg1 RHLogin: bmeng+1 Application Info ================ jbas1 Framework: jbossas-7 Creation: 2012-07-13T01:47:13-04:00 UUID: 1e22aa66fcf94da7bb2d9ac5dee214fb Git URL: ssh://1e22aa66fcf94da7bb2d9ac5dee214fb.rhcloud.com/~/git/jbas1.git/ Public URL: http://jbas1-bmeng1stg1.stg.rhcloud.com/ Embedded: haproxy-1.4 php1 Framework: php-5.3 Creation: 2012-07-17T01:37:13-04:00 UUID: e872eb8aa7c44f9fa2fcf88ff976cdb4 Git URL: ssh://e872eb8aa7c44f9fa2fcf88ff976cdb4.rhcloud.com/~/git/php1.git/ Public URL: http://php1-bmeng1stg1.stg.rhcloud.com/ Embedded: None [bmeng@localhost ~]$ rhc app destroy -a jbas1 -d Contacting https://stg.openshift.redhat.com Response from server: DEBUG: Exit Code: 0 api_c: placeholder broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi API version: 1.1.3 RESULT: Successfully destroyed application: jbas1 [bmeng@localhost ~]$ rhc app destroy -a php1 -d Contacting https://stg.openshift.redhat.com Response from server: DEBUG: Exit Code: 0 api_c: placeholder broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi API version: 1.1.3 RESULT: Successfully destroyed application: php1 [bmeng@localhost ~]$ rhc domain show User Info ========= Namespace: bmeng1stg1 RHLogin: bmeng+1 Application Info ================ No applications found. You can use 'rhc app create' to create new applications.
Fix deployed to PROD by Thomas.