Description of problem: Check the output during moving gears (non-scalable apps or head gear of scalable apps) via oo-admin-move, app name is misused where gear uuid should be used. DEBUG: Moving content for app 'app1', gear 'app1' to ip-10-136-79-159 Moving non-head gear of scalable apps show the correct info: DEBUG: Moving content for app 'app1s', gear '783478236010308742152192' to ip-10-164-160-203 Version-Release number of selected component (if applicable): devenv-stage_890 How reproducible: always Steps to Reproduce: 1.Set up multi-node env. 2.Create some apps and move the gears(non-scalalbe apps or head gear of scalable apps). # oo-broker oo-admin-move --gear_uuid UUID -i $NODE 3.Check the output of step 2 Actual results: URL: http://app11641-lxia.dev.rhcloud.com Login: lxia App UUID: 53a439c14783f8093f0000bc Gear UUID: 53a439c14783f8093f0000bc DEBUG: Source district uuid: 53a418d697f7b10001000001 DEBUG: Destination district uuid: 53a418d697f7b10001000001 DEBUG: Getting existing app 'app11641' status before moving DEBUG: Gear component 'jboss-dv-6.0.0' was running DEBUG: Stopping existing app cartridge 'jboss-dv-6.0.0' before moving DEBUG: Force stopping existing app before moving DEBUG: Gear platform is 'linux' DEBUG: Creating new account for gear 'app11641' on ip-10-136-79-159 DEBUG: Moving content for app 'app11641', gear 'app11641' to ip-10-136-79-159 Identity added: /etc/openshift/rsync_id_rsa (/etc/openshift/rsync_id_rsa) Warning: Permanently added '10.164.162.115' (RSA) to the list of known hosts. Agent pid 112 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 112 killed; DEBUG: Moving system components for app 'app11641', gear 'app11641' to ip-10-136-79-159 Identity added: /etc/openshift/rsync_id_rsa (/etc/openshift/rsync_id_rsa) Agent pid 134 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 134 killed; DEBUG: Starting cartridge 'jboss-dv-6.0.0' in 'app11641' after move on ip-10-136-79-159 DEBUG: Fixing DNS and mongo for gear 'app11641' after move DEBUG: Changing server identity of 'app11641' from 'ip-10-164-162-115' to 'ip-10-136-79-159' DEBUG: Deconfiguring old app 'app11641' on ip-10-164-162-115 after move Successfully moved gear with uuid '53a439c14783f8093f0000bc' of app 'app11641' from 'ip-10-164-162-115' to 'ip-10-136-79-159' Expected results: Correct info should be used. Additional info:
Fixed in https://github.com/openshift/origin-server/pull/5884
Tested on devenv_5247, "gear.name" has been replaced by "gear.uuid", move the bug to verified, thanks. Here is the test result: URL: http://rb20s-d.dev.rhcloud.com Login: qwang App UUID: 5444ad799fbe255b82000009 Gear UUID: 5444ad799fbe255b82000015 DEBUG: Source district uuid: 5444ac89912cde0001000001 DEBUG: Destination district uuid: 5444ac89912cde0001000001 DEBUG: Getting existing app 'rb20s' status before moving DEBUG: Gear component 'ruby-2.0' was running DEBUG: Stopping existing app cartridge 'mongodb-2.4' before moving DEBUG: Gear platform is 'linux' DEBUG: Creating new account for gear '5444ad799fbe25008e000001' on ip-10-41-160-135 DEBUG: Moving content for app 'rb20s', gear '5444ad799fbe25008e000001' to ip-10-41-160-135 Identity added: /etc/openshift/rsync_id_rsa (/etc/openshift/rsync_id_rsa) Warning: Permanently added '10.218.164.29' (RSA) to the list of known hosts. Warning: Permanently added '10.41.160.135' (RSA) to the list of known hosts. Agent pid 117 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 117 killed; DEBUG: Moving system components for app 'rb20s', gear '5444ad799fbe25008e000001' to ip-10-41-160-135 Identity added: /etc/openshift/rsync_id_rsa (/etc/openshift/rsync_id_rsa) Agent pid 139 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 139 killed; DEBUG: Starting cartridge 'mongodb-2.4' in 'rb20s' after move on ip-10-41-160-135 DEBUG: Fixing DNS and mongo for gear '5444ad799fbe25008e000001' after move DEBUG: Changing server identity of '5444ad799fbe25008e000001' from 'ip-10-218-164-29' to 'ip-10-41-160-135' DEBUG: Deconfiguring old app 'rb20s' on ip-10-218-164-29 after move Successfully moved gear with uuid '5444ad799fbe25008e000001' of app 'rb20s' from 'ip-10-218-164-29' to 'ip-10-41-160-135'