Description of problem: The recently added code to allow oo-admin-move to take multiple gears aborts if a single gear is not found. Version-Release number of selected component (if applicable): openshift-origin-broker-util-1.34.2-1.el6oso.noarch How reproducible: Always Steps to Reproduce: 1) oo-admin-move --gear_uuid 01234,<valid uuid> Actual results: ERROR: Gear not found: 01234 Expected results: ERROR: Gear not found: 01234 followed by a move of the valid gear. Additional info: I will create a PR for this.
master PR: https://github.com/openshift/origin-server/pull/6125/ stage PR: https://github.com/openshift/origin-server/pull/6126
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/2bc7d563f4e2b26e95d2e4f6b21fa1de86d1b53e Bug 1212614 - Various oo-admin-move issues * command failed when --json was not specified * command aborted prematurely if a single gear in a list was not found * destination server was not properly reported unless explicitly specified * source server identity is now also captured in json output
Verified on devenv_5511, the next gear is moved successfully when the first gear is not found. [root@ip-10-71-178-111 ~]# oo-admin-move -i ip-10-71-178-111 --gear_uuid 55497d4be6694f2436000069,55497d4be6694f2436000067 ERROR: Gear not found: 55497d4be6694f2436000069 URL: http://d2-jhout.dev.rhcloud.com Login: jhou+silver App UUID: 55497d4be6694f2436000067 Gear UUID: 55497d4be6694f2436000067 DEBUG: Source district uuid: 72ba7a64f39711e4a0320242ac110004 DEBUG: Destination district uuid: 72ba7a64f39711e4a0320242ac110004 DEBUG: Getting existing app 'd2' status before moving DEBUG: Gear component 'diy-0.1' was running DEBUG: Stopping existing app cartridge 'diy-0.1' before moving DEBUG: Force stopping existing app before moving DEBUG: Gear platform is 'linux' DEBUG: Creating new account for gear '55497d4be6694f2436000067' on ip-10-71-178-111 DEBUG: Moving content for app 'd2', gear '55497d4be6694f2436000067' to ip-10-71-178-111 Warning: Permanently added '10.171.98.16' (RSA) to the list of known hosts. Agent pid 113 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 113 killed; DEBUG: Moving system components for app 'd2', gear '55497d4be6694f2436000067' to ip-10-71-178-111 Agent pid 121 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 121 killed; DEBUG: Starting cartridge 'diy-0.1' in 'd2' after move on ip-10-71-178-111 DEBUG: Fixing DNS and mongo for gear '55497d4be6694f2436000067' after move DEBUG: Changing server identity of '55497d4be6694f2436000067' from 'ip-10-171-98-16' to 'ip-10-71-178-111' DEBUG: Deconfiguring old app 'd2' on ip-10-171-98-16 after move Successfully moved gear with uuid '55497d4be6694f2436000067' of app 'd2' from 'ip-10-171-98-16' to 'ip-10-71-178-111'