Bug 1815131 - Ensure CAM works on OCP 4.4: Removal of deprecated apps v1beta1
Summary: Ensure CAM works on OCP 4.4: Removal of deprecated apps v1beta1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Migration Tooling
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.4.0
Assignee: Jeff Ortel
QA Contact: Xin jiang
URL:
Whiteboard:
Depends On:
Blocks: 1815132
TreeView+ depends on / blocked
 
Reported: 2020-03-19 14:54 UTC by John Matthews
Modified: 2020-05-28 11:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1815132 (view as bug list)
Environment:
Last Closed: 2020-05-28 11:09:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:2326 0 None None None 2020-05-28 11:10:37 UTC

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


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