Bug 2307976 - [MDR][RDR][RFE] Inconsistency between Fusion B/R and Ramen Recipes
Summary: [MDR][RDR][RFE] Inconsistency between Fusion B/R and Ramen Recipes
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: odf-dr
Version: 4.16
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Raghavendra Talur
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-26 17:42 UTC by astreit
Modified: 2024-09-23 14:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github RamenDR recipe pull 35 0 None Merged Update recipe CRD to match with other consumers 2024-09-23 14:35:54 UTC
Red Hat Issue Tracker OCSBZM-8859 0 None None None 2024-08-26 17:44:50 UTC

Description astreit 2024-08-26 17:42:08 UTC
Description of problem (please be detailed as possible and provide log
snippests): 
Inconsistencies between: 
- Fusion B/R Recipe CRD/CR: https://github.ibm.com/ProjectAbell/isf-data-protection-operator/blob/master/config/crd/bases/spp-data-protection.isf.ibm.com_recipes.yaml
- Ramen Recipe: https://github.com/RamenDR/recipe/blob/main/config/crd/bases/ramendr.openshift.io_recipes.yaml

The following is a list of differences between the two Recipe CRD/CR that causes confusion for application developers and prevents possible merger into a single CRD.

B/R Recipe:
1) Resource groups are by default iterated over all namespaces defined in the associated B/R Application CR
````
spec
  groups:
  - name: db2u-resources
    labelSelector: app=db2u
````

2) Volumes are defined/selected by a .spec.groups with .type: volume
````
spec:
  groups:
  - name: db2u-volumes
    type: volume
    labelSelector: app=db2u
````

3) Backup and Restore sequences are defined in .spec.workflow array.  The .backup and .restore are the specific workflows leveraged by the B/R Recipe engine
````
spec:
  workflows:
  - name: backup
    sequence:
    - ....
  - name: restore
    sequence:
    - ...
```` 

Ramen Recipe:
1) Resource groups are required to explicitly specify all the application namespaces by .includedNamespaces
````
spec:
  groups:
  - name: db2u-resources
    labelSelector: app=db2u
    includedNamespaces:
    - db2u
````

2) Volumes are defined/selected separately by .spec.volumes
````
spec:
  volumes:
    name: db2u-volumes
    type: volume
    labelSelector: app=db2u
````

3) Capture and Recover sequences are defined separately by .spec.captureWorkflow and .spec.recoverWorkflow respectfully and leveraged specifically by the Ramen Recipe engine
````
spec:
  captureWorkflow:
    sequence:
    - ....
  recoverWorkflow:
    sequence:
    - ...
````


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