Bug 1212614 - oo-admin-move multi-gear moves exit prematurely
Summary: oo-admin-move multi-gear moves exit prematurely
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1217588
TreeView+ depends on / blocked
 
Reported: 2015-04-16 19:05 UTC by Andy Grimm
Modified: 2016-11-08 03:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1217588 (view as bug list)
Environment:
Last Closed: 2015-07-07 23:49:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andy Grimm 2015-04-16 19:05:05 UTC
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.

Comment 2 openshift-github-bot 2015-04-17 17:43:47 UTC
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

Comment 3 Jianwei Hou 2015-05-06 02:39:08 UTC
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'


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