Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15364

Use productized images for backup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.9-GA
    • fuse-7.8-GA
    • Fuse Online
    • None

    Description

      Backup is done by creating a new pod with two images crunchydata/crunchy-pgdump:centos7-10.11-4.2.1 and centos:7:

      oc describe pod db-backup-1606483883-j2rt9                           
      Name:           db-backup-1606483883-j2rt9
      Namespace:      avano-syndesis
      Priority:       0
      Node:           fo-46-a-q5q96-worker-0-twngk/192.168.2.227
      Start Time:     Fri, 27 Nov 2020 14:31:23 +0100
      Labels:         controller-uid=fed4162f-fc46-47f2-80f1-3e02da60fb87
                      job-name=db-backup-1606483883
      Annotations:    k8s.v1.cni.cncf.io/network-status:
                        [{
                            "name": "",
                            "interface": "eth0",
                            "ips": [
                                "10.131.1.40"
                            ],
                            "default": true,
                            "dns": {}
                        }]
                      k8s.v1.cni.cncf.io/networks-status:
                        [{
                            "name": "",
                            "interface": "eth0",
                            "ips": [
                                "10.131.1.40"
                            ],
                            "default": true,
                            "dns": {}
                        }]
                      openshift.io/scc: restricted
      Status:         Pending
      IP:             
      IPs:            <none>
      Controlled By:  Job/db-backup-1606483883
      Containers:
        backup-db-compiler:
          Container ID:  
          Image:         crunchydata/crunchy-pgdump:centos7-10.11-4.2.1
          Image ID:      
          Port:          <none>
          Host Port:     <none>
          Command:
            /bin/bash
          Args:
            -c
            /opt/cpm/bin/start.sh && sleep 5 && touch /pgdata/pg-dump-complete
          State:          Waiting
            Reason:       ContainerCreating
          Ready:          False
          Restart Count:  0
          Environment:
            PGDUMP_HOST:         syndesis-db
            PGDUMP_PORT:         5432
            PGDUMP_USER:         syndesis
            PGDUMP_PASS:         vMIk7OjXxnfxA4m2
            PGDUMP_DB:           syndesis
            PGDUMP_FILENAME:     syndesis-db.dump
            PGDUMP_ALL:          false
            PGDUMP_CUSTOM_OPTS:  --format=custom
          Mounts:
            /pgdata from tmp-pgdata (rw)
            /var/run/secrets/kubernetes.io/serviceaccount from default-token-fpp2z (ro)
        backup-db-logger:
          Container ID:  
          Image:         centos:7
          Image ID:      
          Port:          <none>
          Host Port:     <none>
          Command:
            /bin/bash
            -c
            (while true; do if [[ -f "/pgdata/pg-dump-complete" ]]; then sleep 5; break; fi; sleep 3; done)
            cat/pgdata/syndesis-db-backups/*/syndesis-db.dump
            sleep 120
            
          State:          Waiting
            Reason:       ContainerCreating
          Ready:          False
          Restart Count:  0
          Environment:    <none>
          Mounts:
            /pgdata from tmp-pgdata (ro)
            /var/run/secrets/kubernetes.io/serviceaccount from default-token-fpp2z (ro)
      Conditions:
        Type              Status
        Initialized       True 
        Ready             False 
        ContainersReady   False 
        PodScheduled      True 
      Volumes:
        tmp-pgdata:
          Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
          Medium:     
          SizeLimit:  <unset>
        default-token-fpp2z:
          Type:        Secret (a volume populated by a Secret)
          SecretName:  default-token-fpp2z
          Optional:    false
      QoS Class:       BestEffort
      Node-Selectors:  <none>
      Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                       node.kubernetes.io/unreachable:NoExecute for 300s
      
      

      In case of running productized operator, these are not substituted for images built by Red Hat.

      If this will be done, the backup pod will need to use some service account (as currently it is not using any and it then defaults to using default service account), as that contains the credentials for redhat registry

      Attachments

        Issue Links

          Activity

            People

              parichar@redhat.com Paul Richardson
              avano@redhat.com Andrej Vano
              Matej Kralik Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: