Bug 1540976
| Summary: | oc adm migrate authorization on 3.9 complains that it does not work against 3.7 servers | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Mike Fiedler <mifiedle> |
| Component: | apiserver-auth | Assignee: | Simo Sorce <ssorce> |
| Status: | CLOSED ERRATA | QA Contact: | Mike Fiedler <mifiedle> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.9.0 | CC: | aos-bugs, ssorce, wmeng |
| Target Milestone: | --- | ||
| Target Release: | 3.9.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-03-28 14:24:57 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: | |||
What is the issue here? The command only works against a 3.6 sever. It has no meaning against any other server version. a) my server is 3.9, not 3.7. b) the oc adm migrate authorization -h help and the online documentation don't mention it only works against a 3.6 server. If you feel this is too much of a nit, NOTABUG it. Running 3.7.27 oc against a 3.6 server also gives the message: root@ip-172-31-62-165: ~ # oc version oc v3.7.27 kubernetes v1.7.6+a08f5eeb62 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://ip-172-31-21-143.us-west-2.compute.internal:8443 openshift v3.6.173.0.86 kubernetes v1.6.1+5115d708d7 root@ip-172-31-62-165: ~ # time oc adm migrate authorization Command "authorization" is deprecated, will not work against 3.7 servers summary: total=4205 errors=0 ignored=0 unchanged=4205 migrated=0 real 0m6.652s user 0m1.941s sys 0m0.192s Verified on 3.9.0-0.47.0 root@ip-172-31-15-225: ~ # oc adm migrate authorization Command "authorization" is deprecated, will not work against 3.7 or later servers error: the server does not support legacy policy resources Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0489 |
Description of problem: oc adm migrate authorization Command "authorization" is deprecated, will not work against 3.7 servers error: the server does not support legacy policy resources # oc version oc v3.9.0-0.34.0 kubernetes v1.9.1+a0ce1bc657 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://ip-172-31-6-38.us-west-2.compute.internal:8443 openshift v3.9.0-0.34.0 kubernetes v1.9.1+a0ce1bc657 Version-Release number of selected component (if applicable): 3.9.0-0.34.0 How reproducible: Always Steps to Reproduce: 1. See above