Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-1075 Document workaround for Backup partially falling for Buildconfig application
  3. OADP-1728

[IBM QE-P] Verify Bug OADP-1075 - Backup partially falling for Buildconfig application

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • 4
    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • 0
    • 0.000
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown

      Description of problem:

      Restic backup is failing for build config application, looks like velero is trying to restore completed pod.  Tested same app with csi plugin no errors encountered.

      time="2022-12-08T09:52:38Z" level=info msg="1 errors encountered backup up item" backup=openshift-adp/test-8 logSource="/remote-source/velero/app/pkg/backup/backup.go:421" name=django-psql-persistent-1-build
      time="2022-12-08T09:52:38Z" level=error msg="Error backing up item" backup=openshift-adp/test-8 error="pod is not running, name=django-psql-persistent-1-build, namespace=ocp-django, phase=Succeeded" error.file="/remote-source/velero/app/pkg/util/kube/pod.go:31" error.function=github.com/vmware-tanzu/velero/pkg/util/kube.IsPodRunning logSource="/remote-source/velero/app/pkg/backup/backup.go:425" name=django-psql-persistent-1-build

       

      Version-Release number of selected component (if applicable):
      OADP 1.2.0-3

      How reproducible:
      Always 
      Failing consistently(tested 4-5 times) 

       

      Steps to Reproduce:
      1. Deploy django application.
      2. Create a restic backup 

      Actual results:

      Backup partially failed.

      apiVersion: velero.io/v1
      kind: Backup
      metadata:
        annotations:    velero.io/source-cluster-k8s-gitversion: v1.24.6+5658434
          velero.io/source-cluster-k8s-major-version: "1"
          velero.io/source-cluster-k8s-minor-version: "24"
        labels:
          velero.io/storage-location: ts-1
        name: test-10
        namespace: openshift-adp
        resourceVersion: "170770"
        uid: ddc301ae-27fb-4c62-951f-87d414709602
      spec:
        csiSnapshotTimeout: 10m0s
        defaultVolumesToFsBackup: true
        defaultVolumesToRestic: true
        includedNamespaces:
        - ocp-django
        storageLocation: ts-1
        ttl: 720h0m0s
      status:
        completionTimestamp: "2022-12-08T11:09:20Z"
        errors: 1
        expiration: "2023-01-07T11:08:43Z"
        formatVersion: 1.1.0
        phase: PartiallyFailed
        progress:
          itemsBackedUp: 98
          totalItems: 98
        startTimestamp: "2022-12-08T11:08:43Z"
        version: 1
      
      $ velero backup logs test-10 -n openshift-adp | grep error
      
      time="2022-12-08T11:09:16Z" level=info msg="1 errors encountered backup up item" backup=openshift-adp/test-10 logSource="/remote-source/velero/app/pkg/backup/backup.go:421" name=django-psql-persistent-1-build
      time="2022-12-08T11:09:16Z" level=error msg="Error backing up item" backup=openshift-adp/test-10 error="pod is not running, name=django-psql-persistent-1-build, namespace=ocp-django, phase=Succeeded" error.file="/remote-source/velero/app/pkg/util/kube/pod.go:31" error.function=github.com/vmware-tanzu/velero/pkg/util/kube.IsPodRunning logSource="/remote-source/velero/app/pkg/backup/backup.go:425" name=django-psql-persistent-1-build
       $ oc get podvolumebackup
      NAME            STATUS      CREATED   NAMESPACE    POD                  VOLUME            REPOSITORY ID                                                             UPLOADER TYPE   STORAGE LOCATION   AGE
      test-10-w25hb   Completed   6m21s     ocp-django   postgresql-1-skgn5   postgresql-data   s3:s3-us-east-2.amazonaws.com/oadpbucket162887/velero/restic/ocp-django   restic          ts-1               6m21s

      Expected results:
      Backup should be successful 

      Additional info:
      CSI Backup completed successfully

      apiVersion: velero.io/v1
      kind: Backup
      metadata:
        annotations:
          velero.io/source-cluster-k8s-gitversion: v1.24.6+5658434
          velero.io/source-cluster-k8s-major-version: "1"
          velero.io/source-cluster-k8s-minor-version: "24"
        creationTimestamp: "2022-12-08T10:56:47Z"
        generation: 7
        labels:
          velero.io/storage-location: ts-1
        managedFields:
        - apiVersion: velero.io/v1
          fieldsType: FieldsV1
          fieldsV1:
            f:metadata:
              f:labels: {}
            f:spec:
              .: {}
              f:defaultVolumesToFsBackup: {}
              f:includedNamespaces: {}
              f:storageLocation: {}
              f:ttl: {}
          manager: kubectl-create
          operation: Update
          time: "2022-12-08T10:56:47Z"
        - apiVersion: velero.io/v1
          fieldsType: FieldsV1
          fieldsV1:
            f:metadata:
              f:annotations:
                .: {}
                f:velero.io/source-cluster-k8s-gitversion: {}
                f:velero.io/source-cluster-k8s-major-version: {}
                f:velero.io/source-cluster-k8s-minor-version: {}
              f:labels:
                f:velero.io/storage-location: {}
            f:spec:
              f:csiSnapshotTimeout: {}
            f:status:
              .: {}
              f:completionTimestamp: {}
              f:csiVolumeSnapshotsAttempted: {}
              f:csiVolumeSnapshotsCompleted: {}
              f:expiration: {}
              f:formatVersion: {}
              f:phase: {}
              f:progress:
                .: {}
                f:itemsBackedUp: {}
                f:totalItems: {}
              f:startTimestamp: {}
              f:version: {}
          manager: velero-server
          operation: Update
          time: "2022-12-08T10:57:47Z"
        name: test-9
        namespace: openshift-adp
      
      spec:
        csiSnapshotTimeout: 10m0s
        defaultVolumesToFsBackup: false
        includedNamespaces:
        - ocp-django
        storageLocation: ts-1
        ttl: 720h0m0s
      status:
        completionTimestamp: "2022-12-08T10:57:46Z"
        csiVolumeSnapshotsAttempted: 1
        csiVolumeSnapshotsCompleted: 1
        expiration: "2023-01-07T10:56:47Z"
        formatVersion: 1.1.0
        phase: Completed
        progress:
          itemsBackedUp: 98
          totalItems: 98
        startTimestamp: "2022-12-08T10:56:47Z"
        version: 1

      Slack thread: https://coreos.slack.com/archives/C0144ECKUJ0/p1670507361228569

      Caused by: https://github.dev/vmware-tanzu/velero/blob/d1945d1db33f392a5559b76f57eac54b1c6494f5/pkg/podvolume/backupper.go#L129 from issue fix 4874 update · vmware-tanzu/velero@fbb2606 (github.com)

      Build pod yaml example

      kind: Pod
      apiVersion: v1
      metadata:
        annotations:
          k8s.ovn.org/pod-networks: >-
            {"default":{"ip_addresses":["10.128.3.147/23"],"mac_address":"0a:58:0a:80:03:93","gateway_ips":["10.128.2.1"],"ip_address":"10.128.3.147/23","gateway_ip":"10.128.2.1"}}
          k8s.v1.cni.cncf.io/network-status: |-
            [{
                "name": "ovn-kubernetes",
                "interface": "eth0",
                "ips": [
                    "10.128.3.147"
                ],
                "mac": "0a:58:0a:80:03:93",
                "default": true,
                "dns": {}
            }]
          k8s.v1.cni.cncf.io/networks-status: |-
            [{
                "name": "ovn-kubernetes",
                "interface": "eth0",
                "ips": [
                    "10.128.3.147"
                ],
                "mac": "0a:58:0a:80:03:93",
                "default": true,
                "dns": {}
            }]
          openshift.io/build.name: example-1
          openshift.io/scc: privileged
        resourceVersion: '4357721'
        name: example-1-build
        uid: 423faff8-3197-4fcf-9675-9120644ef88c
        creationTimestamp: '2023-01-17T18:40:48Z'
        managedFields:
          - manager: ip-10-0-250-197
            operation: Update
            apiVersion: v1
            time: '2023-01-17T18:40:48Z'
            fieldsType: FieldsV1
            fieldsV1:
              'f:metadata':
                'f:annotations':
                  'f:k8s.ovn.org/pod-networks': {}
          - manager: openshift-controller-manager
            operation: Update
            apiVersion: v1
            time: '2023-01-17T18:40:48Z'
            fieldsType: FieldsV1
            fieldsV1:
              'f:metadata':
                'f:annotations':
                  .: {}
                  'f:openshift.io/build.name': {}
                'f:labels':
                  .: {}
                  'f:openshift.io/build.name': {}
                'f:ownerReferences':
                  .: {}
                  'k:{"uid":"99b6d5fb-a03a-447a-8b05-2c8919fa450d"}': {}
              'f:spec':
                'f:volumes':
                  'k:{"name":"build-proxy-ca-bundles"}':
                    .: {}
                    'f:configMap':
                      .: {}
                      'f:defaultMode': {}
                      'f:items': {}
                      'f:name': {}
                    'f:name': {}
                  'k:{"name":"container-storage-root"}':
                    .: {}
                    'f:emptyDir': {}
                    'f:name': {}
                  'k:{"name":"build-ca-bundles"}':
                    .: {}
                    'f:configMap':
                      .: {}
                      'f:defaultMode': {}
                      'f:items': {}
                      'f:name': {}
                    'f:name': {}
                  'k:{"name":"builder-dockercfg-xptj7-pull"}':
                    .: {}
                    'f:name': {}
                    'f:secret':
                      .: {}
                      'f:defaultMode': {}
                      'f:secretName': {}
                  'k:{"name":"buildcachedir"}':
                    .: {}
                    'f:hostPath':
                      .: {}
                      'f:path': {}
                      'f:type': {}
                    'f:name': {}
                  .: {}
                  'k:{"name":"buildworkdir"}':
                    .: {}
                    'f:emptyDir': {}
                    'f:name': {}
                  'k:{"name":"build-blob-cache"}':
                    .: {}
                    'f:emptyDir': {}
                    'f:name': {}
                  'k:{"name":"build-system-configs"}':
                    .: {}
                    'f:configMap':
                      .: {}
                      'f:defaultMode': {}
                      'f:name': {}
                    'f:name': {}
                  'k:{"name":"node-pullsecrets"}':
                    .: {}
                    'f:hostPath':
                      .: {}
                      'f:path': {}
                      'f:type': {}
                    'f:name': {}
                'f:containers':
                  'k:{"name":"sti-build"}':
                    'f:image': {}
                    'f:volumeMounts':
                      'k:{"mountPath":"/tmp/build"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/build-system"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                        'f:readOnly': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/pki"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/certs"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      .: {}
                      'k:{"mountPath":"/var/run/secrets/openshift.io/pull"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                        'f:readOnly': {}
                      'k:{"mountPath":"/var/cache/blobs"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/lib/kubelet/config.json"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/lib/containers/storage"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/lib/containers/cache"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                    'f:terminationMessagePolicy': {}
                    .: {}
                    'f:resources': {}
                    'f:args': {}
                    'f:env':
                      'k:{"name":"BUILD"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"SOURCE_REPOSITORY"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"BUILD_STORAGE_DRIVER"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"DROP_CAPS"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"PULL_DOCKERCFG_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"BUILD_SIGNATURE_POLICY_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"HTTPS_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"SOURCE_URI"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      .: {}
                      'k:{"name":"BUILD_REGISTRIES_CONF_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"LANG"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"SOURCE_REF"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"NO_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"BUILD_BLOBCACHE_DIR"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"HTTP_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"BUILD_REGISTRIES_DIR_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"BUILD_STORAGE_CONF_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"ALLOWED_UIDS"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                    'f:securityContext':
                      .: {}
                      'f:privileged': {}
                    'f:terminationMessagePath': {}
                    'f:imagePullPolicy': {}
                    'f:name': {}
                'f:dnsPolicy': {}
                'f:serviceAccount': {}
                'f:restartPolicy': {}
                'f:activeDeadlineSeconds': {}
                'f:schedulerName': {}
                'f:nodeSelector': {}
                'f:terminationGracePeriodSeconds': {}
                'f:initContainers':
                  .: {}
                  'k:{"name":"git-clone"}':
                    'f:image': {}
                    'f:volumeMounts':
                      .: {}
                      'k:{"mountPath":"/tmp/build"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/cache/blobs"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/build-system"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                        'f:readOnly': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/certs"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/pki"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                    'f:terminationMessagePolicy': {}
                    .: {}
                    'f:resources': {}
                    'f:args': {}
                    'f:env':
                      'k:{"name":"BUILD"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"SOURCE_REPOSITORY"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"DROP_CAPS"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"BUILD_SIGNATURE_POLICY_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"HTTPS_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"SOURCE_URI"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      .: {}
                      'k:{"name":"BUILD_REGISTRIES_CONF_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"LANG"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"SOURCE_REF"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"NO_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"BUILD_BLOBCACHE_DIR"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"HTTP_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"BUILD_REGISTRIES_DIR_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"BUILD_STORAGE_CONF_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"ALLOWED_UIDS"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                    'f:terminationMessagePath': {}
                    'f:imagePullPolicy': {}
                    'f:name': {}
                  'k:{"name":"manage-dockerfile"}':
                    'f:image': {}
                    'f:volumeMounts':
                      .: {}
                      'k:{"mountPath":"/tmp/build"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/cache/blobs"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/build-system"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                        'f:readOnly': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/certs"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                      'k:{"mountPath":"/var/run/configs/openshift.io/pki"}':
                        .: {}
                        'f:mountPath': {}
                        'f:name': {}
                    'f:terminationMessagePolicy': {}
                    .: {}
                    'f:resources': {}
                    'f:args': {}
                    'f:env':
                      'k:{"name":"BUILD"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"SOURCE_REPOSITORY"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"DROP_CAPS"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"BUILD_SIGNATURE_POLICY_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"HTTPS_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"SOURCE_URI"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      .: {}
                      'k:{"name":"BUILD_REGISTRIES_CONF_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"LANG"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"SOURCE_REF"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"NO_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"BUILD_BLOBCACHE_DIR"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"HTTP_PROXY"}':
                        .: {}
                        'f:name': {}
                      'k:{"name":"BUILD_REGISTRIES_DIR_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"BUILD_STORAGE_CONF_PATH"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                      'k:{"name":"ALLOWED_UIDS"}':
                        .: {}
                        'f:name': {}
                        'f:value': {}
                    'f:terminationMessagePath': {}
                    'f:imagePullPolicy': {}
                    'f:name': {}
                'f:serviceAccountName': {}
                'f:enableServiceLinks': {}
                'f:securityContext': {}
          - manager: multus
            operation: Update
            apiVersion: v1
            time: '2023-01-17T18:40:50Z'
            fieldsType: FieldsV1
            fieldsV1:
              'f:metadata':
                'f:annotations':
                  'f:k8s.v1.cni.cncf.io/network-status': {}
                  'f:k8s.v1.cni.cncf.io/networks-status': {}
            subresource: status
          - manager: kubelet
            operation: Update
            apiVersion: v1
            time: '2023-01-17T18:40:53Z'
            fieldsType: FieldsV1
            fieldsV1:
              'f:status':
                'f:conditions':
                  'k:{"type":"ContainersReady"}':
                    .: {}
                    'f:lastProbeTime': {}
                    'f:lastTransitionTime': {}
                    'f:status': {}
                    'f:type': {}
                  'k:{"type":"Initialized"}':
                    .: {}
                    'f:lastProbeTime': {}
                    'f:lastTransitionTime': {}
                    'f:status': {}
                    'f:type': {}
                  'k:{"type":"Ready"}':
                    .: {}
                    'f:lastProbeTime': {}
                    'f:lastTransitionTime': {}
                    'f:status': {}
                    'f:type': {}
                'f:containerStatuses': {}
                'f:hostIP': {}
                'f:initContainerStatuses': {}
                'f:phase': {}
                'f:podIP': {}
                'f:podIPs':
                  .: {}
                  'k:{"ip":"10.128.3.147"}':
                    .: {}
                    'f:ip': {}
                'f:startTime': {}
            subresource: status
        namespace: test-build
        ownerReferences:
          - apiVersion: build.openshift.io/v1
            kind: Build
            name: example-1
            uid: 99b6d5fb-a03a-447a-8b05-2c8919fa450d
            controller: true
        labels:
          openshift.io/build.name: example-1
      spec:
        nodeSelector:
          kubernetes.io/os: linux
        restartPolicy: Never
        activeDeadlineSeconds: 604800
        initContainers:
          - resources: {}
            terminationMessagePath: /dev/termination-log
            name: git-clone
            env:
              - name: BUILD
                value: >
                  {"kind":"Build","apiVersion":"build.openshift.io/v1","metadata":{"name":"example-1","namespace":"test-build","uid":"99b6d5fb-a03a-447a-8b05-2c8919fa450d","resourceVersion":"4357551","generation":1,"creationTimestamp":"2023-01-17T18:40:48Z","labels":{"buildconfig":"example","openshift.io/build-config.name":"example","openshift.io/build.start-policy":"Serial"},"annotations":{"openshift.io/build-config.name":"example","openshift.io/build.number":"1"},"ownerReferences":[{"apiVersion":"build.openshift.io/v1","kind":"BuildConfig","name":"example","uid":"fcc43ad4-8b21-41fe-a374-5c7fa5ba171f","controller":true}],"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"build.openshift.io/v1","time":"2023-01-17T18:40:48Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:openshift.io/build-config.name":{},"f:openshift.io/build.number":{}},"f:labels":{".":{},"f:buildconfig":{},"f:openshift.io/build-config.name":{},"f:openshift.io/build.start-policy":{}},"f:ownerReferences":{".":{},"k:{\"uid\":\"fcc43ad4-8b21-41fe-a374-5c7fa5ba171f\"}":{}}},"f:spec":{"f:serviceAccount":{},"f:source":{"f:git":{".":{},"f:ref":{},"f:uri":{}},"f:type":{}},"f:strategy":{"f:sourceStrategy":{".":{},"f:from":{},"f:pullSecret":{}},"f:type":{}},"f:triggeredBy":{}},"f:status":{"f:conditions":{".":{},"k:{\"type\":\"New\"}":{".":{},"f:lastTransitionTime":{},"f:lastUpdateTime":{},"f:status":{},"f:type":{}}},"f:config":{},"f:phase":{}}}}]},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"https://github.com/openshift/ruby-ex.git","ref":"master"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"image-registry.openshift-image-registry.svc:5000/openshift/ruby@sha256:fa7abd1d60a5127e71064742d35f00749a79b6ae442f6db0efb222503f13ca34"},"pullSecret":{"name":"builder-dockercfg-xptj7"}}},"output":{},"resources":{},"postCommit":{},"nodeSelector":null,"triggeredBy":[{"message":"Image
                  change","imageChangeBuild":{"imageID":"image-registry.openshift-image-registry.svc:5000/openshift/ruby@sha256:fa7abd1d60a5127e71064742d35f00749a79b6ae442f6db0efb222503f13ca34","fromRef":{"kind":"ImageStreamTag","namespace":"openshift","name":"ruby:2.7"}}}]},"status":{"phase":"New","config":{"kind":"BuildConfig","namespace":"test-build","name":"example"},"output":{},"conditions":[{"type":"New","status":"True","lastUpdateTime":"2023-01-17T18:40:48Z","lastTransitionTime":"2023-01-17T18:40:48Z"}]}}
              - name: LANG
                value: C.utf8
              - name: SOURCE_REPOSITORY
                value: 'https://github.com/openshift/ruby-ex.git'
              - name: SOURCE_URI
                value: 'https://github.com/openshift/ruby-ex.git'
              - name: SOURCE_REF
                value: master
              - name: ALLOWED_UIDS
                value: 1-
              - name: DROP_CAPS
                value: 'KILL,MKNOD,SETGID,SETUID'
              - name: BUILD_REGISTRIES_CONF_PATH
                value: /var/run/configs/openshift.io/build-system/registries.conf
              - name: BUILD_REGISTRIES_DIR_PATH
                value: /var/run/configs/openshift.io/build-system/registries.d
              - name: BUILD_SIGNATURE_POLICY_PATH
                value: /var/run/configs/openshift.io/build-system/policy.json
              - name: BUILD_STORAGE_CONF_PATH
                value: /var/run/configs/openshift.io/build-system/storage.conf
              - name: BUILD_BLOBCACHE_DIR
                value: /var/cache/blobs
              - name: HTTP_PROXY
              - name: HTTPS_PROXY
              - name: NO_PROXY
            imagePullPolicy: IfNotPresent
            volumeMounts:
              - name: buildworkdir
                mountPath: /tmp/build
              - name: build-system-configs
                readOnly: true
                mountPath: /var/run/configs/openshift.io/build-system
              - name: build-ca-bundles
                mountPath: /var/run/configs/openshift.io/certs
              - name: build-proxy-ca-bundles
                mountPath: /var/run/configs/openshift.io/pki
              - name: build-blob-cache
                mountPath: /var/cache/blobs
              - name: kube-api-access-lsvsj
                readOnly: true
                mountPath: /var/run/secrets/kubernetes.io/serviceaccount
            terminationMessagePolicy: FallbackToLogsOnError
            image: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            args:
              - openshift-git-clone
              - '--v=0'
          - resources: {}
            terminationMessagePath: /dev/termination-log
            name: manage-dockerfile
            env:
              - name: BUILD
                value: >
                  {"kind":"Build","apiVersion":"build.openshift.io/v1","metadata":{"name":"example-1","namespace":"test-build","uid":"99b6d5fb-a03a-447a-8b05-2c8919fa450d","resourceVersion":"4357551","generation":1,"creationTimestamp":"2023-01-17T18:40:48Z","labels":{"buildconfig":"example","openshift.io/build-config.name":"example","openshift.io/build.start-policy":"Serial"},"annotations":{"openshift.io/build-config.name":"example","openshift.io/build.number":"1"},"ownerReferences":[{"apiVersion":"build.openshift.io/v1","kind":"BuildConfig","name":"example","uid":"fcc43ad4-8b21-41fe-a374-5c7fa5ba171f","controller":true}],"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"build.openshift.io/v1","time":"2023-01-17T18:40:48Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:openshift.io/build-config.name":{},"f:openshift.io/build.number":{}},"f:labels":{".":{},"f:buildconfig":{},"f:openshift.io/build-config.name":{},"f:openshift.io/build.start-policy":{}},"f:ownerReferences":{".":{},"k:{\"uid\":\"fcc43ad4-8b21-41fe-a374-5c7fa5ba171f\"}":{}}},"f:spec":{"f:serviceAccount":{},"f:source":{"f:git":{".":{},"f:ref":{},"f:uri":{}},"f:type":{}},"f:strategy":{"f:sourceStrategy":{".":{},"f:from":{},"f:pullSecret":{}},"f:type":{}},"f:triggeredBy":{}},"f:status":{"f:conditions":{".":{},"k:{\"type\":\"New\"}":{".":{},"f:lastTransitionTime":{},"f:lastUpdateTime":{},"f:status":{},"f:type":{}}},"f:config":{},"f:phase":{}}}}]},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"https://github.com/openshift/ruby-ex.git","ref":"master"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"image-registry.openshift-image-registry.svc:5000/openshift/ruby@sha256:fa7abd1d60a5127e71064742d35f00749a79b6ae442f6db0efb222503f13ca34"},"pullSecret":{"name":"builder-dockercfg-xptj7"}}},"output":{},"resources":{},"postCommit":{},"nodeSelector":null,"triggeredBy":[{"message":"Image
                  change","imageChangeBuild":{"imageID":"image-registry.openshift-image-registry.svc:5000/openshift/ruby@sha256:fa7abd1d60a5127e71064742d35f00749a79b6ae442f6db0efb222503f13ca34","fromRef":{"kind":"ImageStreamTag","namespace":"openshift","name":"ruby:2.7"}}}]},"status":{"phase":"New","config":{"kind":"BuildConfig","namespace":"test-build","name":"example"},"output":{},"conditions":[{"type":"New","status":"True","lastUpdateTime":"2023-01-17T18:40:48Z","lastTransitionTime":"2023-01-17T18:40:48Z"}]}}
              - name: LANG
                value: C.utf8
              - name: SOURCE_REPOSITORY
                value: 'https://github.com/openshift/ruby-ex.git'
              - name: SOURCE_URI
                value: 'https://github.com/openshift/ruby-ex.git'
              - name: SOURCE_REF
                value: master
              - name: ALLOWED_UIDS
                value: 1-
              - name: DROP_CAPS
                value: 'KILL,MKNOD,SETGID,SETUID'
              - name: BUILD_REGISTRIES_CONF_PATH
                value: /var/run/configs/openshift.io/build-system/registries.conf
              - name: BUILD_REGISTRIES_DIR_PATH
                value: /var/run/configs/openshift.io/build-system/registries.d
              - name: BUILD_SIGNATURE_POLICY_PATH
                value: /var/run/configs/openshift.io/build-system/policy.json
              - name: BUILD_STORAGE_CONF_PATH
                value: /var/run/configs/openshift.io/build-system/storage.conf
              - name: BUILD_BLOBCACHE_DIR
                value: /var/cache/blobs
              - name: HTTP_PROXY
              - name: HTTPS_PROXY
              - name: NO_PROXY
            imagePullPolicy: IfNotPresent
            volumeMounts:
              - name: buildworkdir
                mountPath: /tmp/build
              - name: build-system-configs
                readOnly: true
                mountPath: /var/run/configs/openshift.io/build-system
              - name: build-ca-bundles
                mountPath: /var/run/configs/openshift.io/certs
              - name: build-proxy-ca-bundles
                mountPath: /var/run/configs/openshift.io/pki
              - name: build-blob-cache
                mountPath: /var/cache/blobs
              - name: kube-api-access-lsvsj
                readOnly: true
                mountPath: /var/run/secrets/kubernetes.io/serviceaccount
            terminationMessagePolicy: FallbackToLogsOnError
            image: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            args:
              - openshift-manage-dockerfile
              - '--v=0'
        serviceAccountName: builder
        imagePullSecrets:
          - name: builder-dockercfg-xptj7
        priority: 0
        schedulerName: default-scheduler
        enableServiceLinks: true
        terminationGracePeriodSeconds: 30
        preemptionPolicy: PreemptLowerPriority
        nodeName: ip-10-0-131-208.ec2.internal
        securityContext: {}
        containers:
          - resources: {}
            terminationMessagePath: /dev/termination-log
            name: sti-build
            env:
              - name: BUILD
                value: >
                  {"kind":"Build","apiVersion":"build.openshift.io/v1","metadata":{"name":"example-1","namespace":"test-build","uid":"99b6d5fb-a03a-447a-8b05-2c8919fa450d","resourceVersion":"4357551","generation":1,"creationTimestamp":"2023-01-17T18:40:48Z","labels":{"buildconfig":"example","openshift.io/build-config.name":"example","openshift.io/build.start-policy":"Serial"},"annotations":{"openshift.io/build-config.name":"example","openshift.io/build.number":"1"},"ownerReferences":[{"apiVersion":"build.openshift.io/v1","kind":"BuildConfig","name":"example","uid":"fcc43ad4-8b21-41fe-a374-5c7fa5ba171f","controller":true}],"managedFields":[{"manager":"Go-http-client","operation":"Update","apiVersion":"build.openshift.io/v1","time":"2023-01-17T18:40:48Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:openshift.io/build-config.name":{},"f:openshift.io/build.number":{}},"f:labels":{".":{},"f:buildconfig":{},"f:openshift.io/build-config.name":{},"f:openshift.io/build.start-policy":{}},"f:ownerReferences":{".":{},"k:{\"uid\":\"fcc43ad4-8b21-41fe-a374-5c7fa5ba171f\"}":{}}},"f:spec":{"f:serviceAccount":{},"f:source":{"f:git":{".":{},"f:ref":{},"f:uri":{}},"f:type":{}},"f:strategy":{"f:sourceStrategy":{".":{},"f:from":{},"f:pullSecret":{}},"f:type":{}},"f:triggeredBy":{}},"f:status":{"f:conditions":{".":{},"k:{\"type\":\"New\"}":{".":{},"f:lastTransitionTime":{},"f:lastUpdateTime":{},"f:status":{},"f:type":{}}},"f:config":{},"f:phase":{}}}}]},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"https://github.com/openshift/ruby-ex.git","ref":"master"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"image-registry.openshift-image-registry.svc:5000/openshift/ruby@sha256:fa7abd1d60a5127e71064742d35f00749a79b6ae442f6db0efb222503f13ca34"},"pullSecret":{"name":"builder-dockercfg-xptj7"}}},"output":{},"resources":{},"postCommit":{},"nodeSelector":null,"triggeredBy":[{"message":"Image
                  change","imageChangeBuild":{"imageID":"image-registry.openshift-image-registry.svc:5000/openshift/ruby@sha256:fa7abd1d60a5127e71064742d35f00749a79b6ae442f6db0efb222503f13ca34","fromRef":{"kind":"ImageStreamTag","namespace":"openshift","name":"ruby:2.7"}}}]},"status":{"phase":"New","config":{"kind":"BuildConfig","namespace":"test-build","name":"example"},"output":{},"conditions":[{"type":"New","status":"True","lastUpdateTime":"2023-01-17T18:40:48Z","lastTransitionTime":"2023-01-17T18:40:48Z"}]}}
              - name: LANG
                value: C.utf8
              - name: SOURCE_REPOSITORY
                value: 'https://github.com/openshift/ruby-ex.git'
              - name: SOURCE_URI
                value: 'https://github.com/openshift/ruby-ex.git'
              - name: SOURCE_REF
                value: master
              - name: ALLOWED_UIDS
                value: 1-
              - name: DROP_CAPS
                value: 'KILL,MKNOD,SETGID,SETUID'
              - name: PULL_DOCKERCFG_PATH
                value: /var/run/secrets/openshift.io/pull
              - name: BUILD_REGISTRIES_CONF_PATH
                value: /var/run/configs/openshift.io/build-system/registries.conf
              - name: BUILD_REGISTRIES_DIR_PATH
                value: /var/run/configs/openshift.io/build-system/registries.d
              - name: BUILD_SIGNATURE_POLICY_PATH
                value: /var/run/configs/openshift.io/build-system/policy.json
              - name: BUILD_STORAGE_CONF_PATH
                value: /var/run/configs/openshift.io/build-system/storage.conf
              - name: BUILD_STORAGE_DRIVER
                value: overlay
              - name: BUILD_BLOBCACHE_DIR
                value: /var/cache/blobs
              - name: HTTP_PROXY
              - name: HTTPS_PROXY
              - name: NO_PROXY
            securityContext:
              privileged: true
            imagePullPolicy: IfNotPresent
            volumeMounts:
              - name: node-pullsecrets
                mountPath: /var/lib/kubelet/config.json
              - name: buildworkdir
                mountPath: /tmp/build
              - name: buildcachedir
                mountPath: /var/lib/containers/cache
              - name: builder-dockercfg-xptj7-pull
                readOnly: true
                mountPath: /var/run/secrets/openshift.io/pull
              - name: build-system-configs
                readOnly: true
                mountPath: /var/run/configs/openshift.io/build-system
              - name: build-ca-bundles
                mountPath: /var/run/configs/openshift.io/certs
              - name: build-proxy-ca-bundles
                mountPath: /var/run/configs/openshift.io/pki
              - name: container-storage-root
                mountPath: /var/lib/containers/storage
              - name: build-blob-cache
                mountPath: /var/cache/blobs
              - name: kube-api-access-lsvsj
                readOnly: true
                mountPath: /var/run/secrets/kubernetes.io/serviceaccount
            terminationMessagePolicy: FallbackToLogsOnError
            image: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            args:
              - openshift-sti-build
              - '--v=0'
        serviceAccount: builder
        volumes:
          - name: node-pullsecrets
            hostPath:
              path: /var/lib/kubelet/config.json
              type: File
          - name: buildcachedir
            hostPath:
              path: /var/lib/containers/cache
              type: ''
          - name: buildworkdir
            emptyDir: {}
          - name: builder-dockercfg-xptj7-pull
            secret:
              secretName: builder-dockercfg-xptj7
              defaultMode: 384
          - name: build-system-configs
            configMap:
              name: example-1-sys-config
              defaultMode: 420
          - name: build-ca-bundles
            configMap:
              name: example-1-ca
              items:
                - key: service-ca.crt
                  path: 'certs.d/image-registry.openshift-image-registry.svc:5000/ca.crt'
              defaultMode: 420
          - name: build-proxy-ca-bundles
            configMap:
              name: example-1-global-ca
              items:
                - key: ca-bundle.crt
                  path: tls-ca-bundle.pem
              defaultMode: 420
          - name: container-storage-root
            emptyDir: {}
          - name: build-blob-cache
            emptyDir: {}
          - name: kube-api-access-lsvsj
            projected:
              sources:
                - serviceAccountToken:
                    expirationSeconds: 3607
                    path: token
                - configMap:
                    name: kube-root-ca.crt
                    items:
                      - key: ca.crt
                        path: ca.crt
                - downwardAPI:
                    items:
                      - path: namespace
                        fieldRef:
                          apiVersion: v1
                          fieldPath: metadata.namespace
                - configMap:
                    name: openshift-service-ca.crt
                    items:
                      - key: service-ca.crt
                        path: service-ca.crt
              defaultMode: 420
        dnsPolicy: ClusterFirst
        tolerations:
          - key: node.kubernetes.io/not-ready
            operator: Exists
            effect: NoExecute
            tolerationSeconds: 300
          - key: node.kubernetes.io/unreachable
            operator: Exists
            effect: NoExecute
            tolerationSeconds: 300
      status:
        containerStatuses:
          - restartCount: 0
            started: true
            ready: true
            name: sti-build
            state:
              running:
                startedAt: '2023-01-17T18:40:52Z'
            imageID: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            image: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            lastState: {}
            containerID: 'cri-o://da54e82fa06e2fac849ede1fcba1978c17b7b3c89976e18ac37014df55a0e1af'
        qosClass: BestEffort
        podIPs:
          - ip: 10.128.3.147
        podIP: 10.128.3.147
        hostIP: 10.0.131.208
        startTime: '2023-01-17T18:40:48Z'
        initContainerStatuses:
          - name: git-clone
            state:
              terminated:
                exitCode: 0
                reason: Completed
                startedAt: '2023-01-17T18:40:50Z'
                finishedAt: '2023-01-17T18:40:51Z'
                containerID: >-
                  cri-o://61055c2090d7b9f12ab08b77279c4d61fbfa620b7c1739bad6e749ba2bb0a4a7
            lastState: {}
            ready: true
            restartCount: 0
            image: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            imageID: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            containerID: 'cri-o://61055c2090d7b9f12ab08b77279c4d61fbfa620b7c1739bad6e749ba2bb0a4a7'
          - name: manage-dockerfile
            state:
              terminated:
                exitCode: 0
                reason: Completed
                startedAt: '2023-01-17T18:40:51Z'
                finishedAt: '2023-01-17T18:40:51Z'
                containerID: >-
                  cri-o://dab80d29e3e0445585a217f1fef857e63181b9b667c826c71da337b4117ea665
            lastState: {}
            ready: true
            restartCount: 0
            image: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            imageID: >-
              quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:869f4bfc4ff3323e2a5e04451195767c4e1e94f8c3142b996fb77a4066966012
            containerID: 'cri-o://dab80d29e3e0445585a217f1fef857e63181b9b667c826c71da337b4117ea665'
        conditions:
          - type: Initialized
            status: 'True'
            lastProbeTime: null
            lastTransitionTime: '2023-01-17T18:40:52Z'
          - type: Ready
            status: 'True'
            lastProbeTime: null
            lastTransitionTime: '2023-01-17T18:40:53Z'
          - type: ContainersReady
            status: 'True'
            lastProbeTime: null
            lastTransitionTime: '2023-01-17T18:40:53Z'
          - type: PodScheduled
            status: 'True'
            lastProbeTime: null
            lastTransitionTime: '2023-01-17T18:40:48Z'
        phase: Running
      
      

              sgarudi Sonia Garudi
              mperetz@redhat.com Maya Peretz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: