Description of problem: Openshift doesn't allow to move scale application to different profile node. The gear move command should return error code 1. No such issue in OSE-2.2 2015-04-02. Version-Release number of selected component (if applicable): OSE-2.2 2015-05-11.1 How reproducible: Always Steps to Reproduce: 1.Move scale application to different profile node in district . check the return code "$?" 2. 3. Actual results: The return code is 0 [root@broker bin]# oo-admin-move --gear_uuid 5555b42082611d0fe70000ea -i node1.ose22-auto.com.cn URL: http://sphp-anlidom.ose22-auto.com.cn Login: anli App UUID: 5555b42082611d0fe70000ea Gear UUID: 5555b42082611d0fe70000ea DEBUG: Source district uuid: 5555b33882611da4e9000001 DEBUG: Destination district uuid: 5555b34082611d7be6000001 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 Error moving gear. Cannot change node profile for *scalable* app. [root@broker bin]# echo $? 0 Expected results: The return code is 1 Additional info:
I believe this defect is fixed with https://github.com/openshift/origin-server/commit/14726cc0f56df96f370fdf00d21555cf34d96789 "Bug 1214087 - return non-zero on all exceptions in oo-admin-move", which should be in openshift-origin-broker-util-1.36.2.1-1.el6op.
Verified this bug with openshift-origin-broker-util-1.36.2.2-1.el6op.noarch in 2.2/2015-09-22.1, PASS. [root@broker ~]# oo-admin-move --gear_uuid jialiu-scaphp53app-1 -i broker.ose22-auto.com.cn URL: http://scaphp53app-jialiu.ose22-auto.com.cn Login: jialiu App UUID: 56021d7b82611d78b400004f Gear UUID: 56021d7b82611d78b400004f DEBUG: Source district uuid: 5601f7fe82611d9f7b000001 DEBUG: Destination district uuid: 5601f80e82611ddf8c000001 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 Error moving gear. Cannot change node profile for *scalable* app. [root@broker ~]# echo $? 1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1844.html