Bug 970829 - rhc-admin-migrate will attempt to migrate a gear in the process of being deleted.
Summary: rhc-admin-migrate will attempt to migrate a gear in the process of being dele...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-05 02:48 UTC by Wesley Hearn
Modified: 2015-05-15 00:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-22 15:15:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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