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

Add pre-requisites to setting velero log level to debug mode for v1.0.2 or earlier.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • OADP 1.0.3
    • None
    • Documentation
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • 0
    • 0.000
    • 0
    • None

      https://docs.openshift.com/container-platform/4.8/backup_and_restore/application_backup_and_restore/troubleshooting.html#oadp-debugging-oc-cli_oadp-troubleshooting
      before the steps mentioned after subheading "Velero pod debug logs" can proceed, the following prerequisites are required.

      • Edit replica of openshift-adp-controller-manager deployment to 0 inside OADP ClusterServiceVersion
        You can do this from web interface by going to OpenShift Web Console Administrator view > Operators > Installed Operators > namespace > OADP Operator > YAML
        which is equivalent to navigating to <openshift-web-console>/k8s/ns/openshift-adp/operators.coreos.com~v1alpha1~ClusterServiceVersion/oadp-operator.v1.0.2/yaml (example link for oadp-operator version v1.0.2)

        You can do change the replica to 0 in CLI with
        oc patch $(oc get csv -n openshift-adp -oname | grep oadp) -n openshift-adp --patch '[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value": 0 }]' --type=json

      If you need OADP Operator to process your DataProtectionApplication again set replicas back to 1.

      oc patch $(oc get csv -n openshift-adp -oname | grep oadp) -n openshift-adp --patch '[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value": 1 }]' --type=json

              richard.hoch Richard Hoch
              tkaovila@redhat.com Tiger Kaovilai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: