Bug 970829

Summary: rhc-admin-migrate will attempt to migrate a gear in the process of being deleted.
Product: OpenShift Online Reporter: Wesley Hearn <whearn>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: dmcphers, jhonce, jhou, rchopra, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-22 15:15:48 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:

Description Wesley Hearn 2013-06-05 02:48:43 UTC
Description of problem:
If you start rhc-admin-migrate while a gear is in the process of being deleted it will try to migrate the gear even if mongo reports the gear is not on a server.

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

How reproducible:
Unknown

Steps to Reproduce:
1. Start deletion of gear
2. Run rhc-admin-migrate
3. Look in /tmp/rhc/migration/ for migrate_

Actual results:
It tried to migrate the gear

Expected results:
It to pass over a gear being deleted

Additional info:

Comment 1 Rajat Chopra 2013-07-10 01:28:10 UTC
Pull request - https://github.com/openshift/origin-server/pull/3028
Use the quarantine flag to not let the 'delete' operation through.
To test this, run 'quarantine-all' script on a system ready for migration.

Try to delete an app, and the request should get denied. Earlier it was possible to do so.

Comment 2 Jianwei Hou 2013-07-11 06:48:48 UTC
Wasn't able to reproduce this bug on devenv_3482, start deleting a gear, then start migrating the gear with oo-admin-upgrade, the migration will stop due to application not found. Mark as verified.

Comment 4 Jianwei Hou 2013-07-11 07:07:02 UTC
Re-tested with quarantine-all script, try to delete an app, the delete request is denied, the client will see "Your application is being upgraded and configuration changes can not be made at this time.  Please try again later."
Therefore, the migration won't be interrupted.