Bug 961220 - Need point out that only cannot change node_profile for a scalable application gear when move
Summary: Need point out that only cannot change node_profile for a scalable applicati...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Ravi Sankar
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-09 07:23 UTC by Rony Gong 🔥
Modified: 2015-05-15 02:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-11 20:21:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rony Gong 🔥 2013-05-09 07:23:35 UTC
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:

Comment 1 Ravi Sankar 2013-05-09 20:57:34 UTC
Fixed in https://github.com/openshift/origin-server/pull/2412

Comment 2 openshift-github-bot 2013-05-09 23:10:22 UTC
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

Comment 3 Rony Gong 🔥 2013-05-10 06:37:50 UTC
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>'


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