Bug 2219846

Summary: With ACM 2.8 User is not able to apply DRPolicy to subscription workload
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: gowtham <gshanmug>
Component: documentationAssignee: Olive Lakra <olakra>
Status: ASSIGNED --- QA Contact: Neha Berry <nberry>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.12CC: asriram, odf-bz-bot, olakra, rtalur
Target Milestone: ---Flags: rtalur: needinfo? (olakra)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 gowtham 2023-07-05 15:18:45 UTC
Describe the issue:
With ACM 2.8 + ODF 4.12, The user is not able to apply DRPolicy to the subscription workload and the UI apply policy modal shows empty.

Describe the task you were trying to accomplish:
- ACM 2.8 console has deprecated the PlacementRule type and moved to the Placement type for Subscription applications. 
- When a user creates a Subscription application using ACM 2.8 console, it will be created with Placement only.
- But 4.12 DR UI and Ramen operator both are not supporting Placement for Subscription applications.
- So, DR UI is unable to detect the applications and display for assigning a policy.

Workarround:
- ACM 2.8 console, Still able to detect the PlacementRule which is created from CLI.
- The pre-requisite to creating the Subscription application in ACM 2.8 with PlacementRule is:
   1. Create a new project (i.e., namespace)
   2. Create a PlacementRule using application-namespace which is created from the previous step:
---------------------------------------------------------------------------
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
  name: {placement-rule-name}
  namespace: {application-namespace}
spec:
  clusterSelector:
    matchLabels:
      {managed-cluster-matching-labels}
--------------------------------------------------------------------------------
   3. While creating the application using the ACM console on the Subscription application page, Choose this PlacementRule

Document URL:

Chapter/Section Number and Title:

Product Version:

Environment Details:

Any other versions of this document that also needs this update:

Additional information:
Backend BZ for the same: https://bugzilla.redhat.com/show_bug.cgi?id=2216190