Bug 1534931
| Summary: | The evict-pods.py script need to update for OCP 3.9 env | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Yan Du <yadu> |
| Component: | Unknown | Assignee: | Abhishek Gupta <abhgupta> |
| Status: | ASSIGNED --- | QA Contact: | Xiaoli Tian <xtian> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | bmeng, hongli |
| Target Milestone: | --- | ||
| Target Release: | 3.x | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-01-18 19:19:49 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
`openshift cli` was a deprecated path. The client command is `oc`. You'll need update the script. 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. I'm not familiar with the script. Abhishek? |
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: