Bug 1265979 - [networking_83]Failed to filter 'openshift-master' when using debug tool to gather information for origin and AEP
Summary: [networking_83]Failed to filter 'openshift-master' when using debug tool to ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Networking
Version: 3.x
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Dan Winship
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-24 08:50 UTC by zhaozhanqi
Modified: 2015-11-23 21:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 21:16:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description zhaozhanqi 2015-09-24 08:50:31 UTC
Description of problem:
Use ansible to install origin multi-node env on ec2. The master service name has changed to 'origin-master'. so the debug.sh -->"systemctl show -p LoadState openshift-master" should also updated.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. use ansible install origin multi-node env on ec2
2. get debug.sh script from openshift-sdn repo
   wget https://raw.githubusercontent.com/openshift/openshift-sdn/master/hack/debug.sh
3. Add permission
   chmod +x debug.sh
3. run this script on master
   

Actual results:

step 3 return help message because 'LoadState=not found'

# ./debug.sh
Usage:
  [from master]
    ./debug.sh
  Gathers data on the master and then connects to each node via ssh

  [from any other machine]
    ./debug.sh MASTER-NAME
  Connects to MASTER-NAME via ssh and then connects to each node via ssh

  The machine you run from must be able to ssh to each other machine
  via ssh with no password.

Expected results:

since the service name has changed to 'origin-master' not 'openshift-master', so the script need to update to make this work.

Additional info:

When using ansible to setup env, the master service name is different, likes:
 origin --> origin-master
 ose   -->  openshift-master
AEP  -->  atomic-openshift-master
So better to update the script to match the correct name.

Comment 1 Dan Winship 2015-09-25 11:52:28 UTC
hm... I guess we just have to try all three names? Presumably this applies to the node service name as well. Is there anything else that changes?

Comment 2 zhaozhanqi 2015-09-28 09:24:41 UTC
yes, node service name also has changed to 

origin-node --> origin

atomic-openshift-node --> AEP

I did not find others changes for now.

Comment 4 Dan Winship 2015-10-06 13:07:44 UTC
fixed in git


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