Red Hat Bugzilla – Bug 982172
App info is added to mongoDB even if no node supports the specific gear size
Last modified: 2015-05-14 20:18:41 EDT
Description of problem:
App name is added to mongoDB even if the required node isn't availabe
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. On the instance, modify /etc/openshift/plugins.d/openshift-origin-msg-broker-mcollective-dev.conf and change "NODE_PROFILE_ENABLED" to "true"
Restart rhc-broker service to apply the change. By default, only small gear is acceptable. oo-admin-ctl-user -l AccountName --addgearsize medium/c9
2. Try to create an app with gear size not allow, for example medium or c9.
3. Try to create an app with the same name as the one using in step 2, using a supported gear size(small) this time.
The app in step 3 could not be created.
If checking the page https://instance_address/datastore/index.php?action=admin.index, the app name is already added there after step 2.
The app name should not be added if no node supports the gear size required. Or a rollback is expected.
Fixed in https://github.com/openshift/origin-server/pull/3010
Commits pushed to master at https://github.com/openshift/origin-server
Bug 982172 - Do not try to unreserve_uid if we don't get valid container for the gear.
Merge pull request #3010 from pravisankar/dev/ravi/bug982172
Merged by openshift-bot
Verified on devenv_3465.
Following the steps similar to the bug, the app info is not added as expected.
Mark it as verified.