When trying to move an gear from a scaling application, it will show message: Cannot change node_profile for a gear - this operation is not supported. The destination container's node profile is medium, while the gear's node_profile is small But since bug 958249 enabled moving to different profile for non-scaling app, the message should be changed as well, for eg: Cannot change node_profile for a scalable application gear - Version-Release number of selected component (if applicable): devenv_3202 How reproducible: Always Steps to Reproduce: 1.Setup multi node env, 1 node is small profile, another is medium profile 2.Create scalable application, then move this scalable app gear. 3. Actual results: [root@ip-10-99-25-68 openshift]# oo-admin-move --gear_uuid 547990505357622999252992 -i ip-10-202-49-23 URL: http://qsphp-qgong2.dev.rhcloud.com Login: qgong App UUID: 518b496260c0d286fa00007b Gear UUID: 518b496260c0d286fa00007b DEBUG: Source district uuid: 134558673785289730686976 DEBUG: Destination district uuid: 518b3cd660c0d2186d000001 Cannot change node_profile for a gear - this operation is not supported. The destination container's node profile is medium, while the gear's node_profile is small /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.9.1/lib/openshift/mcollective_application_container_proxy.rb:1815:in `move_gear': Error moving app. Cannot change node profile. (OpenShift::UserException) from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.9.1/lib/openshift/mcollective_application_container_proxy.rb:1793:in `block in move_gear_secure' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.9.1/app/models/application.rb:1297:in `run_in_application_lock' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.9.1/lib/openshift/mcollective_application_container_proxy.rb:1792:in `move_gear_secure' from /usr/sbin/oo-admin-move:112:in `<main>' Expected results: [root@ip-10-99-25-68 openshift]# oo-admin-move --gear_uuid 547990505357622999252992 -i ip-10-202-49-23 URL: http://qsphp-qgong2.dev.rhcloud.com Login: qgong App UUID: 518b496260c0d286fa00007b Gear UUID: 518b496260c0d286fa00007b DEBUG: Source district uuid: 134558673785289730686976 DEBUG: Destination district uuid: 518b3cd660c0d2186d000001 Cannot change node_profile for a scalable application gear - this operation is not supported. The destination container's node profile is medium, while the gear's node_profile is small .. Additional info:
Fixed in https://github.com/openshift/origin-server/pull/2412
Commits pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/840be0626f8d44bb3357940de7ca8b22e2db5c83 Bug 961220 - Modify error message to state that node profile cannot be changed for *scalable* app gear with oo-admin-move https://github.com/openshift/origin-server/commit/d6ade81b52b627fc280abb416be9edfd9e35f66d Merge pull request #2412 from pravisankar/dev/ravi/bug961220-misc Merged by openshift-bot
Verified on devenv_3207 1.Create scalable application, then move it across different profile node. [root@ip-10-99-26-253 ~]# oo-admin-move --gear_uuid 8a720430b93b11e28a4112313b0d190f -i ip-10-117-66-79 URL: http://qsphp-qgong3.dev.rhcloud.com Login: qgong+1 App UUID: 518c94bfc074e04af3000034 Gear UUID: 518c94bfc074e04af3000034 DEBUG: Source district uuid: aa4fe796b93a11e29f4212313b0d190f DEBUG: Destination district uuid: b50f63e6b93a11e2b5e412313b0d190f Cannot change node_profile for *scalable* application gear - this operation is not supported. The destination container's node profile is medium, while the gear's node_profile is small /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.9.1/lib/openshift/mcollective_application_container_proxy.rb:1815:in `move_gear': Error moving app. Cannot change node profile for *scalable* app. (OpenShift::UserException) from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.9.1/lib/openshift/mcollective_application_container_proxy.rb:1793:in `block in move_gear_secure' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.9.1/app/models/application.rb:1297:in `run_in_application_lock' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.9.1/lib/openshift/mcollective_application_container_proxy.rb:1792:in `move_gear_secure' from /usr/sbin/oo-admin-move:112:in `<main>'