Bug 1540976 - oc adm migrate authorization on 3.9 complains that it does not work against 3.7 servers
Summary: oc adm migrate authorization on 3.9 complains that it does not work against 3...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: 3.9.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 3.9.0
Assignee: Simo Sorce
QA Contact: Mike Fiedler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-01 12:44 UTC by Mike Fiedler
Modified: 2018-03-28 14:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-03-28 14:24:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 18551 0 None None None 2018-02-09 16:00:07 UTC
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:25:20 UTC

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


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