Bug 844276

Summary: Destroying an old existing application will hit "Could not destroy all gears of application." error after server upgrade
Product: OKD Reporter: Jianwei Hou <jhou>
Component: PodAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.x   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devenv_1922 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 20:42:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
development.log none

Description Jianwei Hou 2012-07-30 07:53:25 UTC
Created attachment 601140 [details]
development.log

Description of problem:
After upgrade and migrate, try to destroy an old existing application will hit the error "Could not destroy all gears of application."

Version-Release number of selected component (if applicable):
on devenv-stage_226

How reproducible:
always

Steps to Reproduce:
1.Launch an old instance, currently devenv-stage_226
2.Prepare user account and applications before upgrade, set vip for user
3.ssh into devenv, upgrade to latest
  yum update
4.git clone git:openshift/li.git
  cd li/misc/maintenance/bin
  ./migrate-mongo-2.0.15
5.rhc-admin-migrate --version 2.0.15
6.On client, try to destroy an application 
  rhc app destroy -a php1s
  
Actual results:
RESULT:
Could not destroy all gears of application.


Expected results:
application should be destroyed without errors.

Additional info:
I have added /var/www/stickshift/broker/log/development.log as attachment.

Comment 1 Jianwei Hou 2012-07-30 09:28:17 UTC
All applications are running, and their websites can be accessed.
Cartridges for these applications can be removed.
Even git push can be done against these applications.
But when trying to destroy them, the "Could not destroy all gears of application." error is returned

Create new applications and then destroy them, the operation was successful. This problem exists only when upgrade from an older instance

Comment 2 Jianwei Hou 2012-07-31 05:49:10 UTC
Verified on devevn_1922

Steps:
1.Launch a old instance, currently devenv-stage_226
2.Create applications before upprade
3.Upgrade and migrate
  yum update
  git clone git:openshift/li.git
  cd li/misc/maintenance/bin
  ./migrate-mongo-2.0.15
  rhc-admin-migrate --version 2.0.15
4.Destroy an old existing application
  rhc app destroy -a php1

Result:
Old existing application is destroyed successfully.