Red Hat Bugzilla – Bug 970829
rhc-admin-migrate will attempt to migrate a gear in the process of being deleted.
Last modified: 2015-05-14 20:17:38 EDT
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):
Steps to Reproduce:
1. Start deletion of gear
2. Run rhc-admin-migrate
3. Look in /tmp/rhc/migration/ for migrate_
It tried to migrate the gear
It to pass over a gear being deleted
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.
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.
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.