Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-3682

Command on 5.5 Backup procedures also copies evicted pods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 2.6 GA
    • Documentation
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      The command described in our documentation 5.5 Backup procedures , i.e.:

      oc cp $(oc get pods -l 'deploymentConfig=system-redis' -o json | jq '.items[0].metadata.name' -r):/var/lib/redis/data/dump.rdb ./system-redis-dump.rdb
      

      adds also the Evicted pods. Example:

      $ oc get pods -l 'deploymentConfig=system-redis'
      NAME                READY STATUS RESTARTS AGE
      system-redis-1-lk2xx 0/1  Evicted   0    23d
      system-redis-1-xabgn 0/1  Evicted   0     1d
      system-redis-1-x6p32 1/1  Running   0    23h
       

      In order to list only the running pods, the oc get pods command should include the status or use dc/dc-name, for example:

      oc get pods -l 'deploymentConfig=system-redis' --field-selector status.phase=Running -o json | jq '.items[0].metadata.name' -r
      

      The request is to update the documentation with the best approach.

      NOTE: adding --field-selector status.phase=Running to any oc get pods commands in the backup/restore guide should be considered.

              Unassigned Unassigned
              rhn-support-avilatus Anna Vila Tusell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: