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-authAssignee: Simo Sorce <ssorce>
Status: CLOSED ERRATA QA Contact: Mike Fiedler <mifiedle>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: 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:

Description Mike Fiedler 2018-02-01 12:44:34 UTC
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

Comment 1 Mo 2018-02-01 18:00:28 UTC
What is the issue here?  The command only works against a 3.6 sever.  It has no meaning against any other server version.

Comment 2 Mike Fiedler 2018-02-01 18:11:04 UTC
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.

Comment 3 Mike Fiedler 2018-02-02 20:26:56 UTC
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

Comment 4 Simo Sorce 2018-02-09 15:59:42 UTC
https://github.com/openshift/origin/pull/18551

Comment 6 Mike Fiedler 2018-02-21 15:13:36 UTC
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

Comment 9 errata-xmlrpc 2018-03-28 14:24:57 UTC
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