Bug 2102534
| Summary: | Can’t config oc tab completion on RHEL9 | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | zhou ying <yinzhou> |
| Component: | oc | Assignee: | Arda Guclu <aguclu> |
| oc sub component: | oc | QA Contact: | zhou ying <yinzhou> |
| Status: | CLOSED NOTABUG | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | maszulik, mfojtik |
| Version: | 4.11 | Keywords: | Reopened |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| 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: | 2022-08-16 11:04:44 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: | |||
|
Description
zhou ying
2022-06-30 07:27:54 UTC
Looks like bash-completion package is not being installed on that RHEL9 machine of yours. See my previous comment, from my quick googling you need bash-completion package. sudo dnf install bash-completion should most likely solve your problem. Arda, on my local machine this works just fine, but I have completion installed permanently. I wonder if when source'ing (source oc_bash_completion) the completions mechanism responsible for returning the resources (for get command, for example) isn't working as it should be. It it likely that this is only rhel9 problem, because when I was talking with Zhou she mentioned it works just fine on rhel8, is it possible that something has change there or we're missing some wiring? As far as I understand, there is no general completion problem in RHEL9, it is a problem only for `oc get`. The patch for `oc get` completion bug was merged last week https://github.com/openshift/oc/pull/1186. Zhou, could you please try "oc get" completion in RHEl9 with the latest 4.12 version including that patch? |