Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-2899

[RFE] - "oc debug" should exit non-zero when the executed command returns non-zero

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • oc
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      "oc debug" should exit non-zero when the executed command returns non-zero

      CU  uses the debug pod to create etcd-backups on all of our stages (dev/prod)

      https://cloud.redhat.com/blog/ocp-disaster-recovery-part-1-how-to-create-automated-etcd-backup-in-openshift-4.x

      We ran into the issue that the job ran successfully but the command inside the oc debug had an error and did not created a backup.
      So to check, if the command has issues, CU would like that the debug pod pass trough the exit code of the executed command.
      If an error occurred inside the debug pod we would not notice until CU check the backup manually.

      Discussed here https://github.com/openshift/origin/issues/15854

      Discussed previous PR here too https://github.com/openshift/origin/pull/16879

              gausingh@redhat.com Gaurav Singh
              vmedina.openshift Victor Medina
              None
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:
                None
                None