Bug 1815131

Summary: Ensure CAM works on OCP 4.4: Removal of deprecated apps v1beta1
Product: OpenShift Container Platform Reporter: John Matthews <jmatthew>
Component: Migration ToolingAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4CC: dymurray, ernelson, pvauter, sregidor
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1815132 (view as bug list) Environment:
Last Closed: 2020-05-28 11:09:55 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:
Bug Depends On:    
Bug Blocks: 1815132    

Description John Matthews 2020-03-19 14:54:08 UTC
Description of problem:

OCP 4.4 will remove some older deprecated API versions.
The Migration Controller needs to work with OpenShift 3.7 -> 4.4, so it needs to be able to create the older versioned resources on older clusters and ensure that on newer clusters it creates the newer version resources.

Related PR to address:
https://github.com/konveyor/mig-controller/pull/446/files

Comment 3 Sergio 2020-05-08 14:19:08 UTC
In order to reproduce the following scenario
1. $ oc new-project test
2. $ oc new-app datagrid-service -p APPLICATION_USER=user
3. Migrate the namespace

CAM: 1.2 stage
Target cluster: 4.4
Source cluster: 4.1

CAM is not migrating resources with the right "v1" version. Even is those versions are reported properly by "oc get" command.


Those resources are listed twice with 2 different beta versions too.

That way, the migration of 

]$ oc get controllerrevisions datagrid-service-b747fd495  -o yaml | grep "apiVe"
apiVersion: apps/v1

and

$  oc get sts  -o yaml | grep "\- api"
- apiVersion: apps/v1


Results in this warning

  incompatibleNamespaces:
  - gvks:
    - group: apps
      kind: controllerrevisions
      version: v1beta2
    - group: apps
      kind: statefulsets
      version: v1beta2
    - group: apps
      kind: controllerrevisions
      version: v1beta1
    - group: apps
      kind: statefulsets
      version: v1beta1
    name: ocp-24871-datagrid


We move the BZ to assigned.

Comment 4 Erik Nelson 2020-05-13 19:10:35 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1815131#c3 is most likely applicable to https://bugzilla.redhat.com/show_bug.cgi?id=1831711.

The intention behind this bz was to ensure the controller is able to basic operations on openshift 4.4. GVK migrations are out of scope for this bz, which are captured in 1711.

Comment 5 Xin jiang 2020-05-19 13:54:31 UTC
Virified with CAM 1.2

Comment 7 errata-xmlrpc 2020-05-28 11:09:55 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/RHEA-2020:2326