Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-7456

CRD sanity check in oadp-must-gather.

XMLWordPrintable

    • Product / Portfolio Work
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • ToDo
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown
    • None

      PURPOSE:

      Detect old or different versions of oadp crds on cluster with more detail.

       

      Each oadp-must-gather container is versioned per y stream

      https://github.com/openshift/oadp-must-gather/tree/oadp-1.5   etc..

       

      Include on each branched version of oadp-must-gather a local copy of the crd's e.g.

      https://github.com/openshift/oadp-operator/tree/oadp-dev/bundle/manifests

       

      Use a yaml tool to diff the cr's found on customer clusters:

      /home/whayutin/Downloads/mg-oadp/must-gather.local.2488694872844718079/registry-redhat-io-oadp-oadp-mustgather-rhel9-sha256-5eed105574127b1d523b42ccee11e4d54aaa23a43d90876a6d8379ab2590a3ec/clusters/8a19a427/cluster-scoped-resources/apiextensions.k8s.io/customresourcedefinitions

      Against the pristine versions from src.

       

      Report to user something like:

      ✓  Shell python3 verify_crd_versions.py [current working directory /home/whayutin/Downloads/mg-oadp/m… │
      │                                                                                                        │
      │ File                                               | Local Ver       | Remote Ver      | Status        │
      │ ----------------------------------------------------------------------------------------------------   │
      │ backuprepositories.yaml                            | v1              | v1              | MATCH         │
      │ backups.yaml                                       | v1              | v1              | MATCH         │
      │ backupstoragelocations.yaml                        | v1              | v1              | MATCH         │
      │ cloudstorages.yaml                                 | v1alpha1        | v1alpha1        | MATCH         │
      │ clusterserviceversions.yaml                        | v1alpha1        | N/A             | NOT FOUND     │
      │ datadownloads.yaml                                 | v2alpha1        | v2alpha1        | MATCH         │
      │ dataprotectionapplications.yaml                    | v1alpha1        | v1alpha1        | MATCH         │
      │ dataprotectiontests.yaml                           | v1alpha1        | v1alpha1        | MATCH         │
      │ datauploads.yaml                                   | v2alpha1        | v2alpha1        | MATCH         │
      │ deletebackuprequests.yaml                          | v1              | v1              | MATCH         │
      │ downloadrequests.yaml                              | v1              | v1              | MATCH         │
      │ nonadminbackups.yaml                               | v1alpha1        | v1alpha1        | MATCH         │
      │ nonadminbackupstoragelocationrequests.yaml         | v1alpha1        | v1alpha1        | MATCH         │
      │ nonadminbackupstoragelocations.yaml                | v1alpha1        | v1alpha1        | MATCH         │
      │ nonadmindownloadrequests.yaml                      | v1alpha1        | v1alpha1        | MATCH         │
      │ nonadminrestores.yaml                              | v1alpha1        | v1alpha1        | MATCH         │
      │ podvolumebackups.yaml                              | v1              | v1              | MATCH         │
      │ podvolumerestores.yaml                             | v1              | v1              | MATCH         │
      │ restores.yaml                                      | v1              | v1              | MATCH         │
      │ schedules.yaml                                     | v1              | v1              | MATCH         │
      │ serverstatusrequests.yaml                          | v1              | v1              | MATCH         │
      │ subscriptions.yaml                                 | v1alpha1        | N/A             | NOT FOUND     │
      │ volumesnapshotlocations.yaml                       | v1              | v1              | MATCH      

       

      In the customerResource section of the must-gather markdown.

              spampatt@redhat.com Shubham Pampattiwar
              wnstb Wes Hayutin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: