Bug 1534931 - The evict-pods.py script need to update for OCP 3.9 env
Summary: The evict-pods.py script need to update for OCP 3.9 env
Keywords:
Status: ASSIGNED
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Unknown
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.x
Assignee: Abhishek Gupta
QA Contact: Xiaoli Tian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-16 10:18 UTC by Yan Du
Modified: 2024-06-01 22:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-18 19:19:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yan Du 2018-01-16 10:18:50 UTC
Description of problem:
# python evict-pods.py 172.16.120.10 -v -n 1
Arguments to program:
    Node = 172.16.120.10
    Options = {'skip_unschedulable': False, 'resource': 'memory', 'verbose': True, 'dry_run': False, 'num_pods': 1}
Checking OpenShift CLI command ... 
FAIL
Error: Checking OpenShift CLI command failed: Error: unknown command "cli" for "openshift"
Run 'openshift --help' for usage

Version-Release number of selected component (if applicable):
openshift v3.9.0-0.19.0
kubernetes v1.9.0-beta1


How reproducible:
Always

Steps to Reproduce:
1. Get the evict-pods.py from https://github.com/openshift/online/blob/master/scripts/maintenance/evict-pods.py
2. Run the script as admin
eg: # python evict-pods.py $nodename -v -n 1


Actual results:
Same as description

Expected results:
evict-pods.py could work well

Additional info:

Comment 1 David Eads 2018-01-18 19:19:49 UTC
`openshift cli` was a deprecated path.  The client command is `oc`.  You'll need update the script.

Comment 2 Meng Bo 2018-01-19 07:07:24 UTC
Hi David,

The script is provided by devel team, and presents in the online product repo.
So the script should be the bug itself.

Thanks.

Comment 3 David Eads 2018-01-19 19:20:48 UTC
I'm not familiar with the script.  Abhishek?


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