ResultFAILURE
Tests 4 failed / 54 succeeded
Started2020-07-12 16:01
Elapsed1h38m
cluster-id1ecebril6mbm54lvipr7gmdkhr6dp5ui
cluster-nameci-cluster-4-5-0-0-nightly-2020-07-11-040723-26o
cluster-versionopenshift-v4.5.0-0.nightly-2020-07-11-040723
environmentint
install-phase-pass-rate0.9433962264150944
log-metrics{u'access-token-500': 0, u'host-dns-lookup': 12, u'cluster-pending': 5, u'eof': 0, u'cluster-mgmt-500': 0}
regionus-east-1
repos{u'openshift/osde2e': u'main'}
route-latencies{u'rh-api.ci-cluster-4-5.r6x1.i1.devshift.org:6443': 0}
route-throughputs{u'rh-api.ci-cluster-4-5.r6x1.i1.devshift.org:6443': 0}
time-to-certificate-issued90.004207513
time-to-cluster-ready2220.228467478
time-to-ocm-reporting-installed1800.236583565
time-to-upgraded-cluster0
time-to-upgraded-cluster-ready0
upgrade-phase-pass-rate-1

Test Failures


Log Metrics [Log Metrics] host-dns-lookup 12s

go run hack/e2e.go -v -test --test_args='--ginkgo.focus=Log\sMetrics\s\[Log\sMetrics\]\shost\-dns\-lookup$'
Failed with 12 matches
				from junit_logmetrics.xml

Filter through log files


OSD e2e suite [install] [Suite: e2e] Pods should be Running or Succeeded 10m0s

go run hack/e2e.go -v -test --test_args='--ginkgo.focus=OSD\se2e\ssuite\s\[install\]\s\[Suite\:\se2e\]\sPods\sshould\sbe\sRunning\sor\sSucceeded$'
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/pods.go:22
only 97.872340% of Pods ready, need 100.000000%. Not ready: openshift-build-test/sre-build-test-1594573860-55q6z (Phase: Failed), openshift-build-test/sre-build-test-1594573860-dmcgs (Phase: Failed), openshift-build-test/sre-build-test-1594573860-fwrb4 (Phase: Failed), openshift-build-test/sre-build-test-1594573860-k4jdl (Phase: Failed), openshift-build-test/sre-build-test-1594573860-mh6gg (Phase: Failed), openshift-build-test/sre-build-test-1594573860-pgjk6 (Phase: Failed), openshift-build-test/sre-build-test-1594573860-t9lnx (Phase: Failed)
Unexpected error:
    <*errors.errorString | 0xc000323f00>: {
        s: "timed out waiting for the condition",
    }
    timed out waiting for the condition
occurred
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/pods.go:59
				from junit_26o.xml

Filter through log files


OSD e2e suite [install] [Suite: e2e] Pods should not be Failed 0.15s

go run hack/e2e.go -v -test --test_args='--ginkgo.focus=OSD\se2e\ssuite\s\[install\]\s\[Suite\:\se2e\]\sPods\sshould\snot\sbe\sFailed$'
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/pods.go:63
'7' Pods are 'Failed'
Expected
    <[]v1.Pod | len:7, cap:8>: [
        {
            TypeMeta: {Kind: "", APIVersion: ""},
            ObjectMeta: {
                Name: "sre-build-test-1594573860-55q6z",
                GenerateName: "sre-build-test-1594573860-",
                Namespace: "openshift-build-test",
                SelfLink: "/api/v1/namespaces/openshift-build-test/pods/sre-build-test-1594573860-55q6z",
                UID: "58941eaf-d1e4-4089-8291-67510eba7aa9",
                ResourceVersion: "51755",
                Generation: 0,
                CreationTimestamp: {
                    Time: 2020-07-12T17:12:07Z,
                },
                DeletionTimestamp: nil,
                DeletionGracePeriodSeconds: nil,
                Labels: {
                    "job-name": "sre-build-test-1594573860",
                    "controller-uid": "51af3427-cb34-4da0-84a3-4d67c3267512",
                },
                Annotations: {
                    "k8s.v1.cni.cncf.io/networks-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.7\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "openshift.io/scc": "restricted",
                    "k8s.v1.cni.cncf.io/network-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.7\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                },
                OwnerReferences: [
                    {
                        APIVersion: "batch/v1",
                        Kind: "Job",
                        Name: "sre-build-test-1594573860",
                        UID: "51af3427-cb34-4da0-84a3-4d67c3267512",
                        Controller: true,
                        BlockOwnerDeletion: true,
                    },
                ],
                Finalizers: nil,
                ClusterName: "",
                ManagedFields: [
                    {
                        Manager: "kube-controller-manager",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:12:07Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:controller-uid\":{},\"f:job-name\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"51af3427-cb34-4da0-84a3-4d67c3267512\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:spec\":{\"f:affinity\":{\".\":{},\"f:nodeAffinity\":{\".\":{},\"f:requiredDuringSchedulingIgnoredDuringExecution\":{\".\":{},\"f:nodeSelectorTerms\":{}}}},\"f:containers\":{\"k:{\\\"name\\\":\\\"sre-build-test\\\"}\":{\".\":{},\"f:command\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"JOB_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:valueFrom\":{\".\":{},\"f:fieldRef\":{\".\":{},\"f:apiVersion\":{},\"f:fieldPath\":{}}}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:enableServiceLinks\":{},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:serviceAccount\":{},\"f:serviceAccountName\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}",
                        },
                    },
                    {
                        Manager: "multus",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:12:09Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:annotations\":{\"f:k8s.v1.cni.cncf.io/network-status\":{},\"f:k8s.v1.cni.cncf.io/networks-status\":{}}}}",
                        },
                    },
                    {
                        Manager: "kubelet",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:12:21Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:status\":{\"f:conditions\":{\"k:{\\\"type\\\":\\\"ContainersReady\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Initialized\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:containerStatuses\":{},\"f:hostIP\":{},\"f:phase\":{},\"f:podIP\":{},\"f:podIPs\":{\".\":{},\"k:{\\\"ip\\\":\\\"10.129.4.7\\\"}\":{\".\":{},\"f:ip\":{}}},\"f:startTime\":{}}}",
                        },
                    },
                ],
            },
            Spec: {
                Volumes: [
                    {
                        Name: "sre-build-test-token-knxq7",
                        VolumeSource: {
                            HostPath: nil,
                            EmptyDir: nil,
                            GCEPersistentDisk: nil,
                            AWSElasticBlockStore: nil,
                            GitRepo: nil,
                            Secret: {
                                SecretName: "sre-build-test-token-knxq7",
                                Items: nil,
                                DefaultMode: 420,
                                Optional: nil,
                            },
                            NFS: nil,
                            ISCSI: nil,
                            Glusterfs: nil,
                            PersistentVolumeClaim: nil,
                            RBD: nil,
                            FlexVolume: nil,
                            Cinder: nil,
                            CephFS: nil,
                            Flocker: nil,
                            DownwardAPI: nil,
                            FC: nil,
                            AzureFile: nil,
                            ConfigMap: nil,
                            VsphereVolume: nil,
                            Quobyte: nil,
                            AzureDisk: nil,
                            PhotonPersistentDisk: nil,
                            Projected: nil,
                            PortworxVolume: nil,
                            ScaleIO: nil,
                            StorageOS: nil,
                            CSI: nil,
                        },
                    },
                ],
                InitContainers: nil,
                Containers: [
                    {
                        Name: "sre-build-test",
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        Command: [
                            "/bin/bash",
                            "-c",
                            "# ensure we fail if something exits non-zero\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# cleanup traps on exiting, so these always run\ncleanup () {\n  echo \"$(date): Done, deleting build NS=$NS\"\n  oc delete ns \"${NS}\"\n}\ntrap \"cleanup\" EXIT SIGINT\n\n# set NS to include job name, to ease linking namespace to a specific job\nexport NS=\"openshift-build-test-${JOB_NAME##sre-build-test-}\"\noc create ns \"${NS}\"\n\n# run build\noc -n \"${NS}\" new-build nodejs~https://github.com/openshift/nodejs-ex --name=sre-build-test\necho \"$(date): Waiting for build to complete.\"\nwhile :\ndo\n  export ST=$(oc -n \"${NS}\" get build -o custom-columns=STATUS:.status.phase --no-headers)\n  case ${ST} in\n    \"\")\n      # if build status is blank, assume we are still starting the build\n      ST=\"Starting\"\n      ;;\n    Failed)\n      echo \"$(date): Build Failed\" >&2\n      exit 1\n      ;;\n    Cancelled)\n      echo \"$(date): Build was Cancelled\" >&2\n      exit 1\n      ;;\n    Complete)\n      echo \"$(date): Build Complete\"\n      break\n      ;;\n  esac\n  echo \"$(date): Build is ${ST}; checking build again in 15 seconds, NS=${NS}\"\n  sleep 15\ndone\nexit 0\n",
                        ],
                        Args: nil,
                        WorkingDir: "",
                        Ports: nil,
                        EnvFrom: nil,
                        Env: [
                            {
                                Name: "JOB_NAME",
                                Value: "",
                                ValueFrom: {
                                    FieldRef: {
                                        APIVersion: "v1",
                                        FieldPath: "metadata.name",
                                    },
                                    ResourceFieldRef: nil,
                                    ConfigMapKeyRef: nil,
                                    SecretKeyRef: nil,
                                },
                            },
                        ],
                        Resources: {Limits: nil, Requests: nil},
                        VolumeMounts: [
                            {
                                Name: "sre-build-test-token-knxq7",
                                ReadOnly: true,
                                MountPath: "/var/run/secrets/kubernetes.io/serviceaccount",
                                SubPath: "",
                                MountPropagation: nil,
                                SubPathExpr: "",
                            },
                        ],
                        VolumeDevices: nil,
                        LivenessProbe: nil,
                        ReadinessProbe: nil,
                        StartupProbe: nil,
                        Lifecycle: nil,
                        TerminationMessagePath: "/dev/termination-log",
                        TerminationMessagePolicy: "File",
                        ImagePullPolicy: "Always",
                        SecurityContext: {
                            Capabilities: {
                                Add: nil,
                                Drop: ["KILL", "MKNOD", "SETGID", "SETUID"],
                            },
                            Privileged: nil,
                            SELinuxOptions: nil,
                            WindowsOptions: nil,
                            RunAsUser: 1000620000,
                            RunAsGroup: nil,
                            RunAsNonRoot: nil,
                            ReadOnlyRootFilesystem: nil,
                            AllowPrivilegeEscalation: nil,
                            ProcMount: nil,
                        },
                        Stdin: false,
                        StdinOnce: false,
                        TTY: false,
                    },
                ],
                EphemeralContainers: nil,
                RestartPolicy: "Never",
                TerminationGracePeriodSeconds: 30,
                ActiveDeadlineSeconds: nil,
                DNSPolicy: "ClusterFirst",
                NodeSelector: nil,
                ServiceAccountName: "sre-build-test",
                DeprecatedServiceAccount: "sre-build-test",
                AutomountServiceAccountToken: nil,
                NodeName: "ip-10-0-149-197.ec2.internal",
                HostNetwork: false,
                HostPID: false,
                HostIPC: false,
                ShareProcessNamespace: nil,
                SecurityContext: {
                    SELinuxOptions: {User: "", Role: "", Type: "", Level: "s0:c25,c10"},
                    WindowsOptions: nil,
                    RunAsUser: nil,
                    RunAsGroup: nil,
                    RunAsNonRoot: nil,
                    SupplementalGroups: nil,
                    FSGroup: 1000620000,
                    Sysctls: nil,
                    FSGroupChangePolicy: nil,
                },
                ImagePullSecrets: [
                    {
                        Name: "sre-build-test-dockercfg-5xplv",
                    },
                ],
                Hostname: "",
                Subdomain: "",
                Affinity: {
                    NodeAffinity: {
                        RequiredDuringSchedulingIgnoredDuringExecution: {
                            NodeSelectorTerms: [
                                {
                                    MatchExpressions: [
                                        {Key: ..., Operator: ..., Values: ...},
                                    ],
                                    MatchFields: nil,
                                },
                            ],
                        },
                        PreferredDuringSchedulingIgnoredDuringExecution: nil,
                    },
                    PodAffinity: nil,
                    PodAntiAffinity: nil,
                },
                SchedulerName: "default-scheduler",
                Tolerations: [
                    {
                        Key: "node-role.kubernetes.io",
                        Operator: "Equal",
                        Value: "infra",
                        Effect: "NoSchedule",
                        TolerationSeconds: nil,
                    },
                    {
                        Key: "node.kubernetes.io/not-ready",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                    {
                        Key: "node.kubernetes.io/unreachable",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                ],
                HostAliases: nil,
                PriorityClassName: "",
                Priority: 0,
                DNSConfig: nil,
                ReadinessGates: nil,
                RuntimeClassName: nil,
                EnableServiceLinks: true,
                PreemptionPolicy: nil,
                Overhead: nil,
                TopologySpreadConstraints: nil,
            },
            Status: {
                Phase: "Failed",
                Conditions: [
                    {
                        Type: "Initialized",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:07Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                    {
                        Type: "Ready",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:21Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "ContainersReady",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:21Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "PodScheduled",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:07Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                ],
                Message: "",
                Reason: "",
                NominatedNodeName: "",
                HostIP: "10.0.149.197",
                PodIP: "10.129.4.7",
                PodIPs: [{IP: "10.129.4.7"}],
                StartTime: {
                    Time: 2020-07-12T17:12:07Z,
                },
                InitContainerStatuses: nil,
                ContainerStatuses: [
                    {
                        Name: "sre-build-test",
                        State: {
                            Waiting: nil,
                            Running: nil,
                            Terminated: {
                                ExitCode: 1,
                                Signal: 0,
                                Reason: "Error",
                                Message: "",
                                StartedAt: {
                                    Time: 2020-07-12T17:12:10Z,
                                },
                                FinishedAt: {
                                    Time: 2020-07-12T17:12:21Z,
                                },
                                ContainerID: "cri-o://0c9570f1bf2a07ae4d3d444e1f0c681f1ce5aaf0000cfeaba30079446e93abcd",
                            },
                        },
                        LastTerminationState: {Waiting: nil, Running: nil, Terminated: nil},
                        Ready: false,
                        RestartCount: 0,
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        ImageID: "image-registry.openshift-image-registry.svc:5000/openshift/cli@sha256:235093fbeb02933d72ec259aa9a8889d4bdec2506da19c69ea349a6bcbd949f0",
                        ContainerID: "cri-o://0c9570f1bf2a07ae4d3d444e1f0c681f1ce5aaf0000cfeaba30079446e93abcd",
                        Started: false,
                    },
                ],
                QOSClass: "BestEffort",
                EphemeralContainerStatuses: nil,
            },
        },
        {
            TypeMeta: {Kind: "", APIVersion: ""},
            ObjectMeta: {
                Name: "sre-build-test-1594573860-dmcgs",
                GenerateName: "sre-build-test-1594573860-",
                Namespace: "openshift-build-test",
                SelfLink: "/api/v1/namespaces/openshift-build-test/pods/sre-build-test-1594573860-dmcgs",
                UID: "839f73b0-70fd-4778-90e1-fb50f52df767",
                ResourceVersion: "52760",
                Generation: 0,
                CreationTimestamp: {
                    Time: 2020-07-12T17:14:08Z,
                },
                DeletionTimestamp: nil,
                DeletionGracePeriodSeconds: nil,
                Labels: {
                    "controller-uid": "51af3427-cb34-4da0-84a3-4d67c3267512",
                    "job-name": "sre-build-test-1594573860",
                },
                Annotations: {
                    "k8s.v1.cni.cncf.io/network-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.10\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "k8s.v1.cni.cncf.io/networks-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.10\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "openshift.io/scc": "restricted",
                },
                OwnerReferences: [
                    {
                        APIVersion: "batch/v1",
                        Kind: "Job",
                        Name: "sre-build-test-1594573860",
                        UID: "51af3427-cb34-4da0-84a3-4d67c3267512",
                        Controller: true,
                        BlockOwnerDeletion: true,
                    },
                ],
                Finalizers: nil,
                ClusterName: "",
                ManagedFields: [
                    {
                        Manager: "kube-controller-manager",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:14:08Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:controller-uid\":{},\"f:job-name\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"51af3427-cb34-4da0-84a3-4d67c3267512\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:spec\":{\"f:affinity\":{\".\":{},\"f:nodeAffinity\":{\".\":{},\"f:requiredDuringSchedulingIgnoredDuringExecution\":{\".\":{},\"f:nodeSelectorTerms\":{}}}},\"f:containers\":{\"k:{\\\"name\\\":\\\"sre-build-test\\\"}\":{\".\":{},\"f:command\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"JOB_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:valueFrom\":{\".\":{},\"f:fieldRef\":{\".\":{},\"f:apiVersion\":{},\"f:fieldPath\":{}}}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:enableServiceLinks\":{},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:serviceAccount\":{},\"f:serviceAccountName\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}",
                        },
                    },
                    {
                        Manager: "multus",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:14:10Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:annotations\":{\"f:k8s.v1.cni.cncf.io/network-status\":{},\"f:k8s.v1.cni.cncf.io/networks-status\":{}}}}",
                        },
                    },
                    {
                        Manager: "kubelet",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:14:23Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:status\":{\"f:conditions\":{\"k:{\\\"type\\\":\\\"ContainersReady\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Initialized\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:containerStatuses\":{},\"f:hostIP\":{},\"f:phase\":{},\"f:podIP\":{},\"f:podIPs\":{\".\":{},\"k:{\\\"ip\\\":\\\"10.129.4.10\\\"}\":{\".\":{},\"f:ip\":{}}},\"f:startTime\":{}}}",
                        },
                    },
                ],
            },
            Spec: {
                Volumes: [
                    {
                        Name: "sre-build-test-token-knxq7",
                        VolumeSource: {
                            HostPath: nil,
                            EmptyDir: nil,
                            GCEPersistentDisk: nil,
                            AWSElasticBlockStore: nil,
                            GitRepo: nil,
                            Secret: {
                                SecretName: "sre-build-test-token-knxq7",
                                Items: nil,
                                DefaultMode: 420,
                                Optional: nil,
                            },
                            NFS: nil,
                            ISCSI: nil,
                            Glusterfs: nil,
                            PersistentVolumeClaim: nil,
                            RBD: nil,
                            FlexVolume: nil,
                            Cinder: nil,
                            CephFS: nil,
                            Flocker: nil,
                            DownwardAPI: nil,
                            FC: nil,
                            AzureFile: nil,
                            ConfigMap: nil,
                            VsphereVolume: nil,
                            Quobyte: nil,
                            AzureDisk: nil,
                            PhotonPersistentDisk: nil,
                            Projected: nil,
                            PortworxVolume: nil,
                            ScaleIO: nil,
                            StorageOS: nil,
                            CSI: nil,
                        },
                    },
                ],
                InitContainers: nil,
                Containers: [
                    {
                        Name: "sre-build-test",
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        Command: [
                            "/bin/bash",
                            "-c",
                            "# ensure we fail if something exits non-zero\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# cleanup traps on exiting, so these always run\ncleanup () {\n  echo \"$(date): Done, deleting build NS=$NS\"\n  oc delete ns \"${NS}\"\n}\ntrap \"cleanup\" EXIT SIGINT\n\n# set NS to include job name, to ease linking namespace to a specific job\nexport NS=\"openshift-build-test-${JOB_NAME##sre-build-test-}\"\noc create ns \"${NS}\"\n\n# run build\noc -n \"${NS}\" new-build nodejs~https://github.com/openshift/nodejs-ex --name=sre-build-test\necho \"$(date): Waiting for build to complete.\"\nwhile :\ndo\n  export ST=$(oc -n \"${NS}\" get build -o custom-columns=STATUS:.status.phase --no-headers)\n  case ${ST} in\n    \"\")\n      # if build status is blank, assume we are still starting the build\n      ST=\"Starting\"\n      ;;\n    Failed)\n      echo \"$(date): Build Failed\" >&2\n      exit 1\n      ;;\n    Cancelled)\n      echo \"$(date): Build was Cancelled\" >&2\n      exit 1\n      ;;\n    Complete)\n      echo \"$(date): Build Complete\"\n      break\n      ;;\n  esac\n  echo \"$(date): Build is ${ST}; checking build again in 15 seconds, NS=${NS}\"\n  sleep 15\ndone\nexit 0\n",
                        ],
                        Args: nil,
                        WorkingDir: "",
                        Ports: nil,
                        EnvFrom: nil,
                        Env: [
                            {
                                Name: "JOB_NAME",
                                Value: "",
                                ValueFrom: {
                                    FieldRef: {
                                        APIVersion: "v1",
                                        FieldPath: "metadata.name",
                                    },
                                    ResourceFieldRef: nil,
                                    ConfigMapKeyRef: nil,
                                    SecretKeyRef: nil,
                                },
                            },
                        ],
                        Resources: {Limits: nil, Requests: nil},
                        VolumeMounts: [
                            {
                                Name: "sre-build-test-token-knxq7",
                                ReadOnly: true,
                                MountPath: "/var/run/secrets/kubernetes.io/serviceaccount",
                                SubPath: "",
                                MountPropagation: nil,
                                SubPathExpr: "",
                            },
                        ],
                        VolumeDevices: nil,
                        LivenessProbe: nil,
                        ReadinessProbe: nil,
                        StartupProbe: nil,
                        Lifecycle: nil,
                        TerminationMessagePath: "/dev/termination-log",
                        TerminationMessagePolicy: "File",
                        ImagePullPolicy: "Always",
                        SecurityContext: {
                            Capabilities: {
                                Add: nil,
                                Drop: ["KILL", "MKNOD", "SETGID", "SETUID"],
                            },
                            Privileged: nil,
                            SELinuxOptions: nil,
                            WindowsOptions: nil,
                            RunAsUser: 1000620000,
                            RunAsGroup: nil,
                            RunAsNonRoot: nil,
                            ReadOnlyRootFilesystem: nil,
                            AllowPrivilegeEscalation: nil,
                            ProcMount: nil,
                        },
                        Stdin: false,
                        StdinOnce: false,
                        TTY: false,
                    },
                ],
                EphemeralContainers: nil,
                RestartPolicy: "Never",
                TerminationGracePeriodSeconds: 30,
                ActiveDeadlineSeconds: nil,
                DNSPolicy: "ClusterFirst",
                NodeSelector: nil,
                ServiceAccountName: "sre-build-test",
                DeprecatedServiceAccount: "sre-build-test",
                AutomountServiceAccountToken: nil,
                NodeName: "ip-10-0-149-197.ec2.internal",
                HostNetwork: false,
                HostPID: false,
                HostIPC: false,
                ShareProcessNamespace: nil,
                SecurityContext: {
                    SELinuxOptions: {User: "", Role: "", Type: "", Level: "s0:c25,c10"},
                    WindowsOptions: nil,
                    RunAsUser: nil,
                    RunAsGroup: nil,
                    RunAsNonRoot: nil,
                    SupplementalGroups: nil,
                    FSGroup: 1000620000,
                    Sysctls: nil,
                    FSGroupChangePolicy: nil,
                },
                ImagePullSecrets: [
                    {
                        Name: "sre-build-test-dockercfg-5xplv",
                    },
                ],
                Hostname: "",
                Subdomain: "",
                Affinity: {
                    NodeAffinity: {
                        RequiredDuringSchedulingIgnoredDuringExecution: {
                            NodeSelectorTerms: [
                                {
                                    MatchExpressions: [
                                        {Key: ..., Operator: ..., Values: ...},
                                    ],
                                    MatchFields: nil,
                                },
                            ],
                        },
                        PreferredDuringSchedulingIgnoredDuringExecution: nil,
                    },
                    PodAffinity: nil,
                    PodAntiAffinity: nil,
                },
                SchedulerName: "default-scheduler",
                Tolerations: [
                    {
                        Key: "node-role.kubernetes.io",
                        Operator: "Equal",
                        Value: "infra",
                        Effect: "NoSchedule",
                        TolerationSeconds: nil,
                    },
                    {
                        Key: "node.kubernetes.io/not-ready",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                    {
                        Key: "node.kubernetes.io/unreachable",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                ],
                HostAliases: nil,
                PriorityClassName: "",
                Priority: 0,
                DNSConfig: nil,
                ReadinessGates: nil,
                RuntimeClassName: nil,
                EnableServiceLinks: true,
                PreemptionPolicy: nil,
                Overhead: nil,
                TopologySpreadConstraints: nil,
            },
            Status: {
                Phase: "Failed",
                Conditions: [
                    {
                        Type: "Initialized",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:14:08Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                    {
                        Type: "Ready",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:14:23Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "ContainersReady",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:14:23Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "PodScheduled",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:14:08Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                ],
                Message: "",
                Reason: "",
                NominatedNodeName: "",
                HostIP: "10.0.149.197",
                PodIP: "10.129.4.10",
                PodIPs: [{IP: "10.129.4.10"}],
                StartTime: {
                    Time: 2020-07-12T17:14:08Z,
                },
                InitContainerStatuses: nil,
                ContainerStatuses: [
                    {
                        Name: "sre-build-test",
                        State: {
                            Waiting: nil,
                            Running: nil,
                            Terminated: {
                                ExitCode: 1,
                                Signal: 0,
                                Reason: "Error",
                                Message: "",
                                StartedAt: {
                                    Time: 2020-07-12T17:14:10Z,
                                },
                                FinishedAt: {
                                    Time: 2020-07-12T17:14:22Z,
                                },
                                ContainerID: "cri-o://c33b2ab0f4a0e23363bc74913970e500da957b9237b654fe6314450b64419c92",
                            },
                        },
                        LastTerminationState: {Waiting: nil, Running: nil, Terminated: nil},
                        Ready: false,
                        RestartCount: 0,
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        ImageID: "image-registry.openshift-image-registry.svc:5000/openshift/cli@sha256:235093fbeb02933d72ec259aa9a8889d4bdec2506da19c69ea349a6bcbd949f0",
                        ContainerID: "cri-o://c33b2ab0f4a0e23363bc74913970e500da957b9237b654fe6314450b64419c92",
                        Started: false,
                    },
                ],
                QOSClass: "BestEffort",
                EphemeralContainerStatuses: nil,
            },
        },
        {
            TypeMeta: {Kind: "", APIVersion: ""},
            ObjectMeta: {
                Name: "sre-build-test-1594573860-fwrb4",
                GenerateName: "sre-build-test-1594573860-",
                Namespace: "openshift-build-test",
                SelfLink: "/api/v1/namespaces/openshift-build-test/pods/sre-build-test-1594573860-fwrb4",
                UID: "0756cee2-98cf-434e-bed4-b7c2c5a2246f",
                ResourceVersion: "52487",
                Generation: 0,
                CreationTimestamp: {
                    Time: 2020-07-12T17:13:31Z,
                },
                DeletionTimestamp: nil,
                DeletionGracePeriodSeconds: nil,
                Labels: {
                    "controller-uid": "51af3427-cb34-4da0-84a3-4d67c3267512",
                    "job-name": "sre-build-test-1594573860",
                },
                Annotations: {
                    "k8s.v1.cni.cncf.io/network-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.9\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "k8s.v1.cni.cncf.io/networks-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.9\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "openshift.io/scc": "restricted",
                },
                OwnerReferences: [
                    {
                        APIVersion: "batch/v1",
                        Kind: "Job",
                        Name: "sre-build-test-1594573860",
                        UID: "51af3427-cb34-4da0-84a3-4d67c3267512",
                        Controller: true,
                        BlockOwnerDeletion: true,
                    },
                ],
                Finalizers: nil,
                ClusterName: "",
                ManagedFields: [
                    {
                        Manager: "kube-controller-manager",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:13:31Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:controller-uid\":{},\"f:job-name\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"51af3427-cb34-4da0-84a3-4d67c3267512\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:spec\":{\"f:affinity\":{\".\":{},\"f:nodeAffinity\":{\".\":{},\"f:requiredDuringSchedulingIgnoredDuringExecution\":{\".\":{},\"f:nodeSelectorTerms\":{}}}},\"f:containers\":{\"k:{\\\"name\\\":\\\"sre-build-test\\\"}\":{\".\":{},\"f:command\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"JOB_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:valueFrom\":{\".\":{},\"f:fieldRef\":{\".\":{},\"f:apiVersion\":{},\"f:fieldPath\":{}}}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:enableServiceLinks\":{},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:serviceAccount\":{},\"f:serviceAccountName\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}",
                        },
                    },
                    {
                        Manager: "multus",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:13:33Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:annotations\":{\"f:k8s.v1.cni.cncf.io/network-status\":{},\"f:k8s.v1.cni.cncf.io/networks-status\":{}}}}",
                        },
                    },
                    {
                        Manager: "kubelet",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:13:46Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:status\":{\"f:conditions\":{\"k:{\\\"type\\\":\\\"ContainersReady\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Initialized\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:containerStatuses\":{},\"f:hostIP\":{},\"f:phase\":{},\"f:podIP\":{},\"f:podIPs\":{\".\":{},\"k:{\\\"ip\\\":\\\"10.129.4.9\\\"}\":{\".\":{},\"f:ip\":{}}},\"f:startTime\":{}}}",
                        },
                    },
                ],
            },
            Spec: {
                Volumes: [
                    {
                        Name: "sre-build-test-token-knxq7",
                        VolumeSource: {
                            HostPath: nil,
                            EmptyDir: nil,
                            GCEPersistentDisk: nil,
                            AWSElasticBlockStore: nil,
                            GitRepo: nil,
                            Secret: {
                                SecretName: "sre-build-test-token-knxq7",
                                Items: nil,
                                DefaultMode: 420,
                                Optional: nil,
                            },
                            NFS: nil,
                            ISCSI: nil,
                            Glusterfs: nil,
                            PersistentVolumeClaim: nil,
                            RBD: nil,
                            FlexVolume: nil,
                            Cinder: nil,
                            CephFS: nil,
                            Flocker: nil,
                            DownwardAPI: nil,
                            FC: nil,
                            AzureFile: nil,
                            ConfigMap: nil,
                            VsphereVolume: nil,
                            Quobyte: nil,
                            AzureDisk: nil,
                            PhotonPersistentDisk: nil,
                            Projected: nil,
                            PortworxVolume: nil,
                            ScaleIO: nil,
                            StorageOS: nil,
                            CSI: nil,
                        },
                    },
                ],
                InitContainers: nil,
                Containers: [
                    {
                        Name: "sre-build-test",
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        Command: [
                            "/bin/bash",
                            "-c",
                            "# ensure we fail if something exits non-zero\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# cleanup traps on exiting, so these always run\ncleanup () {\n  echo \"$(date): Done, deleting build NS=$NS\"\n  oc delete ns \"${NS}\"\n}\ntrap \"cleanup\" EXIT SIGINT\n\n# set NS to include job name, to ease linking namespace to a specific job\nexport NS=\"openshift-build-test-${JOB_NAME##sre-build-test-}\"\noc create ns \"${NS}\"\n\n# run build\noc -n \"${NS}\" new-build nodejs~https://github.com/openshift/nodejs-ex --name=sre-build-test\necho \"$(date): Waiting for build to complete.\"\nwhile :\ndo\n  export ST=$(oc -n \"${NS}\" get build -o custom-columns=STATUS:.status.phase --no-headers)\n  case ${ST} in\n    \"\")\n      # if build status is blank, assume we are still starting the build\n      ST=\"Starting\"\n      ;;\n    Failed)\n      echo \"$(date): Build Failed\" >&2\n      exit 1\n      ;;\n    Cancelled)\n      echo \"$(date): Build was Cancelled\" >&2\n      exit 1\n      ;;\n    Complete)\n      echo \"$(date): Build Complete\"\n      break\n      ;;\n  esac\n  echo \"$(date): Build is ${ST}; checking build again in 15 seconds, NS=${NS}\"\n  sleep 15\ndone\nexit 0\n",
                        ],
                        Args: nil,
                        WorkingDir: "",
                        Ports: nil,
                        EnvFrom: nil,
                        Env: [
                            {
                                Name: "JOB_NAME",
                                Value: "",
                                ValueFrom: {
                                    FieldRef: {
                                        APIVersion: "v1",
                                        FieldPath: "metadata.name",
                                    },
                                    ResourceFieldRef: nil,
                                    ConfigMapKeyRef: nil,
                                    SecretKeyRef: nil,
                                },
                            },
                        ],
                        Resources: {Limits: nil, Requests: nil},
                        VolumeMounts: [
                            {
                                Name: "sre-build-test-token-knxq7",
                                ReadOnly: true,
                                MountPath: "/var/run/secrets/kubernetes.io/serviceaccount",
                                SubPath: "",
                                MountPropagation: nil,
                                SubPathExpr: "",
                            },
                        ],
                        VolumeDevices: nil,
                        LivenessProbe: nil,
                        ReadinessProbe: nil,
                        StartupProbe: nil,
                        Lifecycle: nil,
                        TerminationMessagePath: "/dev/termination-log",
                        TerminationMessagePolicy: "File",
                        ImagePullPolicy: "Always",
                        SecurityContext: {
                            Capabilities: {
                                Add: nil,
                                Drop: ["KILL", "MKNOD", "SETGID", "SETUID"],
                            },
                            Privileged: nil,
                            SELinuxOptions: nil,
                            WindowsOptions: nil,
                            RunAsUser: 1000620000,
                            RunAsGroup: nil,
                            RunAsNonRoot: nil,
                            ReadOnlyRootFilesystem: nil,
                            AllowPrivilegeEscalation: nil,
                            ProcMount: nil,
                        },
                        Stdin: false,
                        StdinOnce: false,
                        TTY: false,
                    },
                ],
                EphemeralContainers: nil,
                RestartPolicy: "Never",
                TerminationGracePeriodSeconds: 30,
                ActiveDeadlineSeconds: nil,
                DNSPolicy: "ClusterFirst",
                NodeSelector: nil,
                ServiceAccountName: "sre-build-test",
                DeprecatedServiceAccount: "sre-build-test",
                AutomountServiceAccountToken: nil,
                NodeName: "ip-10-0-149-197.ec2.internal",
                HostNetwork: false,
                HostPID: false,
                HostIPC: false,
                ShareProcessNamespace: nil,
                SecurityContext: {
                    SELinuxOptions: {User: "", Role: "", Type: "", Level: "s0:c25,c10"},
                    WindowsOptions: nil,
                    RunAsUser: nil,
                    RunAsGroup: nil,
                    RunAsNonRoot: nil,
                    SupplementalGroups: nil,
                    FSGroup: 1000620000,
                    Sysctls: nil,
                    FSGroupChangePolicy: nil,
                },
                ImagePullSecrets: [
                    {
                        Name: "sre-build-test-dockercfg-5xplv",
                    },
                ],
                Hostname: "",
                Subdomain: "",
                Affinity: {
                    NodeAffinity: {
                        RequiredDuringSchedulingIgnoredDuringExecution: {
                            NodeSelectorTerms: [
                                {
                                    MatchExpressions: [
                                        {Key: ..., Operator: ..., Values: ...},
                                    ],
                                    MatchFields: nil,
                                },
                            ],
                        },
                        PreferredDuringSchedulingIgnoredDuringExecution: nil,
                    },
                    PodAffinity: nil,
                    PodAntiAffinity: nil,
                },
                SchedulerName: "default-scheduler",
                Tolerations: [
                    {
                        Key: "node-role.kubernetes.io",
                        Operator: "Equal",
                        Value: "infra",
                        Effect: "NoSchedule",
                        TolerationSeconds: nil,
                    },
                    {
                        Key: "node.kubernetes.io/not-ready",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                    {
                        Key: "node.kubernetes.io/unreachable",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                ],
                HostAliases: nil,
                PriorityClassName: "",
                Priority: 0,
                DNSConfig: nil,
                ReadinessGates: nil,
                RuntimeClassName: nil,
                EnableServiceLinks: true,
                PreemptionPolicy: nil,
                Overhead: nil,
                TopologySpreadConstraints: nil,
            },
            Status: {
                Phase: "Failed",
                Conditions: [
                    {
                        Type: "Initialized",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:13:31Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                    {
                        Type: "Ready",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:13:46Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "ContainersReady",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:13:46Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "PodScheduled",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:13:31Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                ],
                Message: "",
                Reason: "",
                NominatedNodeName: "",
                HostIP: "10.0.149.197",
                PodIP: "10.129.4.9",
                PodIPs: [{IP: "10.129.4.9"}],
                StartTime: {
                    Time: 2020-07-12T17:13:31Z,
                },
                InitContainerStatuses: nil,
                ContainerStatuses: [
                    {
                        Name: "sre-build-test",
                        State: {
                            Waiting: nil,
                            Running: nil,
                            Terminated: {
                                ExitCode: 1,
                                Signal: 0,
                                Reason: "Error",
                                Message: "",
                                StartedAt: {
                                    Time: 2020-07-12T17:13:34Z,
                                },
                                FinishedAt: {
                                    Time: 2020-07-12T17:13:45Z,
                                },
                                ContainerID: "cri-o://4bc4e6faefdb71c9a80f91b1e568292cbb8c0802de0c289b67b30f3f024afbb7",
                            },
                        },
                        LastTerminationState: {Waiting: nil, Running: nil, Terminated: nil},
                        Ready: false,
                        RestartCount: 0,
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        ImageID: "image-registry.openshift-image-registry.svc:5000/openshift/cli@sha256:235093fbeb02933d72ec259aa9a8889d4bdec2506da19c69ea349a6bcbd949f0",
                        ContainerID: "cri-o://4bc4e6faefdb71c9a80f91b1e568292cbb8c0802de0c289b67b30f3f024afbb7",
                        Started: false,
                    },
                ],
                QOSClass: "BestEffort",
                EphemeralContainerStatuses: nil,
            },
        },
        {
            TypeMeta: {Kind: "", APIVersion: ""},
            ObjectMeta: {
                Name: "sre-build-test-1594573860-k4jdl",
                GenerateName: "sre-build-test-1594573860-",
                Namespace: "openshift-build-test",
                SelfLink: "/api/v1/namespaces/openshift-build-test/pods/sre-build-test-1594573860-k4jdl",
                UID: "abdda216-f3b8-4f5f-93f7-224f6d80b6e7",
                ResourceVersion: "51250",
                Generation: 0,
                CreationTimestamp: {
                    Time: 2020-07-12T17:11:22Z,
                },
                DeletionTimestamp: nil,
                DeletionGracePeriodSeconds: nil,
                Labels: {
                    "controller-uid": "51af3427-cb34-4da0-84a3-4d67c3267512",
                    "job-name": "sre-build-test-1594573860",
                },
                Annotations: {
                    "k8s.v1.cni.cncf.io/networks-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.5\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "openshift.io/scc": "restricted",
                    "k8s.v1.cni.cncf.io/network-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.5\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                },
                OwnerReferences: [
                    {
                        APIVersion: "batch/v1",
                        Kind: "Job",
                        Name: "sre-build-test-1594573860",
                        UID: "51af3427-cb34-4da0-84a3-4d67c3267512",
                        Controller: true,
                        BlockOwnerDeletion: true,
                    },
                ],
                Finalizers: nil,
                ClusterName: "",
                ManagedFields: [
                    {
                        Manager: "kube-controller-manager",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:22Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:controller-uid\":{},\"f:job-name\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"51af3427-cb34-4da0-84a3-4d67c3267512\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:spec\":{\"f:affinity\":{\".\":{},\"f:nodeAffinity\":{\".\":{},\"f:requiredDuringSchedulingIgnoredDuringExecution\":{\".\":{},\"f:nodeSelectorTerms\":{}}}},\"f:containers\":{\"k:{\\\"name\\\":\\\"sre-build-test\\\"}\":{\".\":{},\"f:command\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"JOB_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:valueFrom\":{\".\":{},\"f:fieldRef\":{\".\":{},\"f:apiVersion\":{},\"f:fieldPath\":{}}}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:enableServiceLinks\":{},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:serviceAccount\":{},\"f:serviceAccountName\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}",
                        },
                    },
                    {
                        Manager: "multus",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:24Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:annotations\":{\"f:k8s.v1.cni.cncf.io/network-status\":{},\"f:k8s.v1.cni.cncf.io/networks-status\":{}}}}",
                        },
                    },
                    {
                        Manager: "kubelet",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:37Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:status\":{\"f:conditions\":{\"k:{\\\"type\\\":\\\"ContainersReady\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Initialized\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:containerStatuses\":{},\"f:hostIP\":{},\"f:phase\":{},\"f:podIP\":{},\"f:podIPs\":{\".\":{},\"k:{\\\"ip\\\":\\\"10.129.4.5\\\"}\":{\".\":{},\"f:ip\":{}}},\"f:startTime\":{}}}",
                        },
                    },
                ],
            },
            Spec: {
                Volumes: [
                    {
                        Name: "sre-build-test-token-knxq7",
                        VolumeSource: {
                            HostPath: nil,
                            EmptyDir: nil,
                            GCEPersistentDisk: nil,
                            AWSElasticBlockStore: nil,
                            GitRepo: nil,
                            Secret: {
                                SecretName: "sre-build-test-token-knxq7",
                                Items: nil,
                                DefaultMode: 420,
                                Optional: nil,
                            },
                            NFS: nil,
                            ISCSI: nil,
                            Glusterfs: nil,
                            PersistentVolumeClaim: nil,
                            RBD: nil,
                            FlexVolume: nil,
                            Cinder: nil,
                            CephFS: nil,
                            Flocker: nil,
                            DownwardAPI: nil,
                            FC: nil,
                            AzureFile: nil,
                            ConfigMap: nil,
                            VsphereVolume: nil,
                            Quobyte: nil,
                            AzureDisk: nil,
                            PhotonPersistentDisk: nil,
                            Projected: nil,
                            PortworxVolume: nil,
                            ScaleIO: nil,
                            StorageOS: nil,
                            CSI: nil,
                        },
                    },
                ],
                InitContainers: nil,
                Containers: [
                    {
                        Name: "sre-build-test",
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        Command: [
                            "/bin/bash",
                            "-c",
                            "# ensure we fail if something exits non-zero\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# cleanup traps on exiting, so these always run\ncleanup () {\n  echo \"$(date): Done, deleting build NS=$NS\"\n  oc delete ns \"${NS}\"\n}\ntrap \"cleanup\" EXIT SIGINT\n\n# set NS to include job name, to ease linking namespace to a specific job\nexport NS=\"openshift-build-test-${JOB_NAME##sre-build-test-}\"\noc create ns \"${NS}\"\n\n# run build\noc -n \"${NS}\" new-build nodejs~https://github.com/openshift/nodejs-ex --name=sre-build-test\necho \"$(date): Waiting for build to complete.\"\nwhile :\ndo\n  export ST=$(oc -n \"${NS}\" get build -o custom-columns=STATUS:.status.phase --no-headers)\n  case ${ST} in\n    \"\")\n      # if build status is blank, assume we are still starting the build\n      ST=\"Starting\"\n      ;;\n    Failed)\n      echo \"$(date): Build Failed\" >&2\n      exit 1\n      ;;\n    Cancelled)\n      echo \"$(date): Build was Cancelled\" >&2\n      exit 1\n      ;;\n    Complete)\n      echo \"$(date): Build Complete\"\n      break\n      ;;\n  esac\n  echo \"$(date): Build is ${ST}; checking build again in 15 seconds, NS=${NS}\"\n  sleep 15\ndone\nexit 0\n",
                        ],
                        Args: nil,
                        WorkingDir: "",
                        Ports: nil,
                        EnvFrom: nil,
                        Env: [
                            {
                                Name: "JOB_NAME",
                                Value: "",
                                ValueFrom: {
                                    FieldRef: {
                                        APIVersion: "v1",
                                        FieldPath: "metadata.name",
                                    },
                                    ResourceFieldRef: nil,
                                    ConfigMapKeyRef: nil,
                                    SecretKeyRef: nil,
                                },
                            },
                        ],
                        Resources: {Limits: nil, Requests: nil},
                        VolumeMounts: [
                            {
                                Name: "sre-build-test-token-knxq7",
                                ReadOnly: true,
                                MountPath: "/var/run/secrets/kubernetes.io/serviceaccount",
                                SubPath: "",
                                MountPropagation: nil,
                                SubPathExpr: "",
                            },
                        ],
                        VolumeDevices: nil,
                        LivenessProbe: nil,
                        ReadinessProbe: nil,
                        StartupProbe: nil,
                        Lifecycle: nil,
                        TerminationMessagePath: "/dev/termination-log",
                        TerminationMessagePolicy: "File",
                        ImagePullPolicy: "Always",
                        SecurityContext: {
                            Capabilities: {
                                Add: nil,
                                Drop: ["KILL", "MKNOD", "SETGID", "SETUID"],
                            },
                            Privileged: nil,
                            SELinuxOptions: nil,
                            WindowsOptions: nil,
                            RunAsUser: 1000620000,
                            RunAsGroup: nil,
                            RunAsNonRoot: nil,
                            ReadOnlyRootFilesystem: nil,
                            AllowPrivilegeEscalation: nil,
                            ProcMount: nil,
                        },
                        Stdin: false,
                        StdinOnce: false,
                        TTY: false,
                    },
                ],
                EphemeralContainers: nil,
                RestartPolicy: "Never",
                TerminationGracePeriodSeconds: 30,
                ActiveDeadlineSeconds: nil,
                DNSPolicy: "ClusterFirst",
                NodeSelector: nil,
                ServiceAccountName: "sre-build-test",
                DeprecatedServiceAccount: "sre-build-test",
                AutomountServiceAccountToken: nil,
                NodeName: "ip-10-0-149-197.ec2.internal",
                HostNetwork: false,
                HostPID: false,
                HostIPC: false,
                ShareProcessNamespace: nil,
                SecurityContext: {
                    SELinuxOptions: {User: "", Role: "", Type: "", Level: "s0:c25,c10"},
                    WindowsOptions: nil,
                    RunAsUser: nil,
                    RunAsGroup: nil,
                    RunAsNonRoot: nil,
                    SupplementalGroups: nil,
                    FSGroup: 1000620000,
                    Sysctls: nil,
                    FSGroupChangePolicy: nil,
                },
                ImagePullSecrets: [
                    {
                        Name: "sre-build-test-dockercfg-5xplv",
                    },
                ],
                Hostname: "",
                Subdomain: "",
                Affinity: {
                    NodeAffinity: {
                        RequiredDuringSchedulingIgnoredDuringExecution: {
                            NodeSelectorTerms: [
                                {
                                    MatchExpressions: [
                                        {Key: ..., Operator: ..., Values: ...},
                                    ],
                                    MatchFields: nil,
                                },
                            ],
                        },
                        PreferredDuringSchedulingIgnoredDuringExecution: nil,
                    },
                    PodAffinity: nil,
                    PodAntiAffinity: nil,
                },
                SchedulerName: "default-scheduler",
                Tolerations: [
                    {
                        Key: "node-role.kubernetes.io",
                        Operator: "Equal",
                        Value: "infra",
                        Effect: "NoSchedule",
                        TolerationSeconds: nil,
                    },
                    {
                        Key: "node.kubernetes.io/not-ready",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                    {
                        Key: "node.kubernetes.io/unreachable",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                ],
                HostAliases: nil,
                PriorityClassName: "",
                Priority: 0,
                DNSConfig: nil,
                ReadinessGates: nil,
                RuntimeClassName: nil,
                EnableServiceLinks: true,
                PreemptionPolicy: nil,
                Overhead: nil,
                TopologySpreadConstraints: nil,
            },
            Status: {
                Phase: "Failed",
                Conditions: [
                    {
                        Type: "Initialized",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:22Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                    {
                        Type: "Ready",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:37Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "ContainersReady",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:37Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "PodScheduled",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:22Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                ],
                Message: "",
                Reason: "",
                NominatedNodeName: "",
                HostIP: "10.0.149.197",
                PodIP: "10.129.4.5",
                PodIPs: [{IP: "10.129.4.5"}],
                StartTime: {
                    Time: 2020-07-12T17:11:22Z,
                },
                InitContainerStatuses: nil,
                ContainerStatuses: [
                    {
                        Name: "sre-build-test",
                        State: {
                            Waiting: nil,
                            Running: nil,
                            Terminated: {
                                ExitCode: 1,
                                Signal: 0,
                                Reason: "Error",
                                Message: "",
                                StartedAt: {
                                    Time: 2020-07-12T17:11:25Z,
                                },
                                FinishedAt: {
                                    Time: 2020-07-12T17:11:36Z,
                                },
                                ContainerID: "cri-o://d5f0f56589746cd3308c15c31e0e1c93a8906f06aac3a5b836c89dddda751e9f",
                            },
                        },
                        LastTerminationState: {Waiting: nil, Running: nil, Terminated: nil},
                        Ready: false,
                        RestartCount: 0,
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        ImageID: "image-registry.openshift-image-registry.svc:5000/openshift/cli@sha256:235093fbeb02933d72ec259aa9a8889d4bdec2506da19c69ea349a6bcbd949f0",
                        ContainerID: "cri-o://d5f0f56589746cd3308c15c31e0e1c93a8906f06aac3a5b836c89dddda751e9f",
                        Started: false,
                    },
                ],
                QOSClass: "BestEffort",
                EphemeralContainerStatuses: nil,
            },
        },
        {
            TypeMeta: {Kind: "", APIVersion: ""},
            ObjectMeta: {
                Name: "sre-build-test-1594573860-mh6gg",
                GenerateName: "sre-build-test-1594573860-",
                Namespace: "openshift-build-test",
                SelfLink: "/api/v1/namespaces/openshift-build-test/pods/sre-build-test-1594573860-mh6gg",
                UID: "faf9e29b-1ce8-498f-8155-06291faac45d",
                ResourceVersion: "51065",
                Generation: 0,
                CreationTimestamp: {
                    Time: 2020-07-12T17:11:08Z,
                },
                DeletionTimestamp: nil,
                DeletionGracePeriodSeconds: nil,
                Labels: {
                    "controller-uid": "51af3427-cb34-4da0-84a3-4d67c3267512",
                    "job-name": "sre-build-test-1594573860",
                },
                Annotations: {
                    "k8s.v1.cni.cncf.io/network-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.4\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "k8s.v1.cni.cncf.io/networks-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.4\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "openshift.io/scc": "restricted",
                },
                OwnerReferences: [
                    {
                        APIVersion: "batch/v1",
                        Kind: "Job",
                        Name: "sre-build-test-1594573860",
                        UID: "51af3427-cb34-4da0-84a3-4d67c3267512",
                        Controller: true,
                        BlockOwnerDeletion: true,
                    },
                ],
                Finalizers: nil,
                ClusterName: "",
                ManagedFields: [
                    {
                        Manager: "kube-controller-manager",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:08Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:controller-uid\":{},\"f:job-name\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"51af3427-cb34-4da0-84a3-4d67c3267512\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:spec\":{\"f:affinity\":{\".\":{},\"f:nodeAffinity\":{\".\":{},\"f:requiredDuringSchedulingIgnoredDuringExecution\":{\".\":{},\"f:nodeSelectorTerms\":{}}}},\"f:containers\":{\"k:{\\\"name\\\":\\\"sre-build-test\\\"}\":{\".\":{},\"f:command\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"JOB_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:valueFrom\":{\".\":{},\"f:fieldRef\":{\".\":{},\"f:apiVersion\":{},\"f:fieldPath\":{}}}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:enableServiceLinks\":{},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:serviceAccount\":{},\"f:serviceAccountName\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}",
                        },
                    },
                    {
                        Manager: "multus",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:09Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:annotations\":{\"f:k8s.v1.cni.cncf.io/network-status\":{},\"f:k8s.v1.cni.cncf.io/networks-status\":{}}}}",
                        },
                    },
                    {
                        Manager: "kubelet",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:22Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:status\":{\"f:conditions\":{\"k:{\\\"type\\\":\\\"ContainersReady\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Initialized\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:containerStatuses\":{},\"f:hostIP\":{},\"f:phase\":{},\"f:podIP\":{},\"f:podIPs\":{\".\":{},\"k:{\\\"ip\\\":\\\"10.129.4.4\\\"}\":{\".\":{},\"f:ip\":{}}},\"f:startTime\":{}}}",
                        },
                    },
                ],
            },
            Spec: {
                Volumes: [
                    {
                        Name: "sre-build-test-token-knxq7",
                        VolumeSource: {
                            HostPath: nil,
                            EmptyDir: nil,
                            GCEPersistentDisk: nil,
                            AWSElasticBlockStore: nil,
                            GitRepo: nil,
                            Secret: {
                                SecretName: "sre-build-test-token-knxq7",
                                Items: nil,
                                DefaultMode: 420,
                                Optional: nil,
                            },
                            NFS: nil,
                            ISCSI: nil,
                            Glusterfs: nil,
                            PersistentVolumeClaim: nil,
                            RBD: nil,
                            FlexVolume: nil,
                            Cinder: nil,
                            CephFS: nil,
                            Flocker: nil,
                            DownwardAPI: nil,
                            FC: nil,
                            AzureFile: nil,
                            ConfigMap: nil,
                            VsphereVolume: nil,
                            Quobyte: nil,
                            AzureDisk: nil,
                            PhotonPersistentDisk: nil,
                            Projected: nil,
                            PortworxVolume: nil,
                            ScaleIO: nil,
                            StorageOS: nil,
                            CSI: nil,
                        },
                    },
                ],
                InitContainers: nil,
                Containers: [
                    {
                        Name: "sre-build-test",
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        Command: [
                            "/bin/bash",
                            "-c",
                            "# ensure we fail if something exits non-zero\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# cleanup traps on exiting, so these always run\ncleanup () {\n  echo \"$(date): Done, deleting build NS=$NS\"\n  oc delete ns \"${NS}\"\n}\ntrap \"cleanup\" EXIT SIGINT\n\n# set NS to include job name, to ease linking namespace to a specific job\nexport NS=\"openshift-build-test-${JOB_NAME##sre-build-test-}\"\noc create ns \"${NS}\"\n\n# run build\noc -n \"${NS}\" new-build nodejs~https://github.com/openshift/nodejs-ex --name=sre-build-test\necho \"$(date): Waiting for build to complete.\"\nwhile :\ndo\n  export ST=$(oc -n \"${NS}\" get build -o custom-columns=STATUS:.status.phase --no-headers)\n  case ${ST} in\n    \"\")\n      # if build status is blank, assume we are still starting the build\n      ST=\"Starting\"\n      ;;\n    Failed)\n      echo \"$(date): Build Failed\" >&2\n      exit 1\n      ;;\n    Cancelled)\n      echo \"$(date): Build was Cancelled\" >&2\n      exit 1\n      ;;\n    Complete)\n      echo \"$(date): Build Complete\"\n      break\n      ;;\n  esac\n  echo \"$(date): Build is ${ST}; checking build again in 15 seconds, NS=${NS}\"\n  sleep 15\ndone\nexit 0\n",
                        ],
                        Args: nil,
                        WorkingDir: "",
                        Ports: nil,
                        EnvFrom: nil,
                        Env: [
                            {
                                Name: "JOB_NAME",
                                Value: "",
                                ValueFrom: {
                                    FieldRef: {
                                        APIVersion: "v1",
                                        FieldPath: "metadata.name",
                                    },
                                    ResourceFieldRef: nil,
                                    ConfigMapKeyRef: nil,
                                    SecretKeyRef: nil,
                                },
                            },
                        ],
                        Resources: {Limits: nil, Requests: nil},
                        VolumeMounts: [
                            {
                                Name: "sre-build-test-token-knxq7",
                                ReadOnly: true,
                                MountPath: "/var/run/secrets/kubernetes.io/serviceaccount",
                                SubPath: "",
                                MountPropagation: nil,
                                SubPathExpr: "",
                            },
                        ],
                        VolumeDevices: nil,
                        LivenessProbe: nil,
                        ReadinessProbe: nil,
                        StartupProbe: nil,
                        Lifecycle: nil,
                        TerminationMessagePath: "/dev/termination-log",
                        TerminationMessagePolicy: "File",
                        ImagePullPolicy: "Always",
                        SecurityContext: {
                            Capabilities: {
                                Add: nil,
                                Drop: ["KILL", "MKNOD", "SETGID", "SETUID"],
                            },
                            Privileged: nil,
                            SELinuxOptions: nil,
                            WindowsOptions: nil,
                            RunAsUser: 1000620000,
                            RunAsGroup: nil,
                            RunAsNonRoot: nil,
                            ReadOnlyRootFilesystem: nil,
                            AllowPrivilegeEscalation: nil,
                            ProcMount: nil,
                        },
                        Stdin: false,
                        StdinOnce: false,
                        TTY: false,
                    },
                ],
                EphemeralContainers: nil,
                RestartPolicy: "Never",
                TerminationGracePeriodSeconds: 30,
                ActiveDeadlineSeconds: nil,
                DNSPolicy: "ClusterFirst",
                NodeSelector: nil,
                ServiceAccountName: "sre-build-test",
                DeprecatedServiceAccount: "sre-build-test",
                AutomountServiceAccountToken: nil,
                NodeName: "ip-10-0-149-197.ec2.internal",
                HostNetwork: false,
                HostPID: false,
                HostIPC: false,
                ShareProcessNamespace: nil,
                SecurityContext: {
                    SELinuxOptions: {User: "", Role: "", Type: "", Level: "s0:c25,c10"},
                    WindowsOptions: nil,
                    RunAsUser: nil,
                    RunAsGroup: nil,
                    RunAsNonRoot: nil,
                    SupplementalGroups: nil,
                    FSGroup: 1000620000,
                    Sysctls: nil,
                    FSGroupChangePolicy: nil,
                },
                ImagePullSecrets: [
                    {
                        Name: "sre-build-test-dockercfg-5xplv",
                    },
                ],
                Hostname: "",
                Subdomain: "",
                Affinity: {
                    NodeAffinity: {
                        RequiredDuringSchedulingIgnoredDuringExecution: {
                            NodeSelectorTerms: [
                                {
                                    MatchExpressions: [
                                        {Key: ..., Operator: ..., Values: ...},
                                    ],
                                    MatchFields: nil,
                                },
                            ],
                        },
                        PreferredDuringSchedulingIgnoredDuringExecution: nil,
                    },
                    PodAffinity: nil,
                    PodAntiAffinity: nil,
                },
                SchedulerName: "default-scheduler",
                Tolerations: [
                    {
                        Key: "node-role.kubernetes.io",
                        Operator: "Equal",
                        Value: "infra",
                        Effect: "NoSchedule",
                        TolerationSeconds: nil,
                    },
                    {
                        Key: "node.kubernetes.io/not-ready",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                    {
                        Key: "node.kubernetes.io/unreachable",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                ],
                HostAliases: nil,
                PriorityClassName: "",
                Priority: 0,
                DNSConfig: nil,
                ReadinessGates: nil,
                RuntimeClassName: nil,
                EnableServiceLinks: true,
                PreemptionPolicy: nil,
                Overhead: nil,
                TopologySpreadConstraints: nil,
            },
            Status: {
                Phase: "Failed",
                Conditions: [
                    {
                        Type: "Initialized",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:08Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                    {
                        Type: "Ready",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:22Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "ContainersReady",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:22Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "PodScheduled",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:08Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                ],
                Message: "",
                Reason: "",
                NominatedNodeName: "",
                HostIP: "10.0.149.197",
                PodIP: "10.129.4.4",
                PodIPs: [{IP: "10.129.4.4"}],
                StartTime: {
                    Time: 2020-07-12T17:11:08Z,
                },
                InitContainerStatuses: nil,
                ContainerStatuses: [
                    {
                        Name: "sre-build-test",
                        State: {
                            Waiting: nil,
                            Running: nil,
                            Terminated: {
                                ExitCode: 1,
                                Signal: 0,
                                Reason: "Error",
                                Message: "",
                                StartedAt: {
                                    Time: 2020-07-12T17:11:10Z,
                                },
                                FinishedAt: {
                                    Time: 2020-07-12T17:11:22Z,
                                },
                                ContainerID: "cri-o://437e0cd04a46622b527129e61f7792a4d67c73a8364cdeadc98061bdc704d303",
                            },
                        },
                        LastTerminationState: {Waiting: nil, Running: nil, Terminated: nil},
                        Ready: false,
                        RestartCount: 0,
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        ImageID: "image-registry.openshift-image-registry.svc:5000/openshift/cli@sha256:235093fbeb02933d72ec259aa9a8889d4bdec2506da19c69ea349a6bcbd949f0",
                        ContainerID: "cri-o://437e0cd04a46622b527129e61f7792a4d67c73a8364cdeadc98061bdc704d303",
                        Started: false,
                    },
                ],
                QOSClass: "BestEffort",
                EphemeralContainerStatuses: nil,
            },
        },
        {
            TypeMeta: {Kind: "", APIVersion: ""},
            ObjectMeta: {
                Name: "sre-build-test-1594573860-pgjk6",
                GenerateName: "sre-build-test-1594573860-",
                Namespace: "openshift-build-test",
                SelfLink: "/api/v1/namespaces/openshift-build-test/pods/sre-build-test-1594573860-pgjk6",
                UID: "5b85fe77-571a-4877-90ea-0b7f94ae260c",
                ResourceVersion: "51524",
                Generation: 0,
                CreationTimestamp: {
                    Time: 2020-07-12T17:11:47Z,
                },
                DeletionTimestamp: nil,
                DeletionGracePeriodSeconds: nil,
                Labels: {
                    "controller-uid": "51af3427-cb34-4da0-84a3-4d67c3267512",
                    "job-name": "sre-build-test-1594573860",
                },
                Annotations: {
                    "k8s.v1.cni.cncf.io/networks-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.6\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "openshift.io/scc": "restricted",
                    "k8s.v1.cni.cncf.io/network-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.6\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                },
                OwnerReferences: [
                    {
                        APIVersion: "batch/v1",
                        Kind: "Job",
                        Name: "sre-build-test-1594573860",
                        UID: "51af3427-cb34-4da0-84a3-4d67c3267512",
                        Controller: true,
                        BlockOwnerDeletion: true,
                    },
                ],
                Finalizers: nil,
                ClusterName: "",
                ManagedFields: [
                    {
                        Manager: "kube-controller-manager",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:47Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:controller-uid\":{},\"f:job-name\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"51af3427-cb34-4da0-84a3-4d67c3267512\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:spec\":{\"f:affinity\":{\".\":{},\"f:nodeAffinity\":{\".\":{},\"f:requiredDuringSchedulingIgnoredDuringExecution\":{\".\":{},\"f:nodeSelectorTerms\":{}}}},\"f:containers\":{\"k:{\\\"name\\\":\\\"sre-build-test\\\"}\":{\".\":{},\"f:command\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"JOB_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:valueFrom\":{\".\":{},\"f:fieldRef\":{\".\":{},\"f:apiVersion\":{},\"f:fieldPath\":{}}}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:enableServiceLinks\":{},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:serviceAccount\":{},\"f:serviceAccountName\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}",
                        },
                    },
                    {
                        Manager: "multus",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:11:50Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:annotations\":{\"f:k8s.v1.cni.cncf.io/network-status\":{},\"f:k8s.v1.cni.cncf.io/networks-status\":{}}}}",
                        },
                    },
                    {
                        Manager: "kubelet",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:12:02Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:status\":{\"f:conditions\":{\"k:{\\\"type\\\":\\\"ContainersReady\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Initialized\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:containerStatuses\":{},\"f:hostIP\":{},\"f:phase\":{},\"f:podIP\":{},\"f:podIPs\":{\".\":{},\"k:{\\\"ip\\\":\\\"10.129.4.6\\\"}\":{\".\":{},\"f:ip\":{}}},\"f:startTime\":{}}}",
                        },
                    },
                ],
            },
            Spec: {
                Volumes: [
                    {
                        Name: "sre-build-test-token-knxq7",
                        VolumeSource: {
                            HostPath: nil,
                            EmptyDir: nil,
                            GCEPersistentDisk: nil,
                            AWSElasticBlockStore: nil,
                            GitRepo: nil,
                            Secret: {
                                SecretName: "sre-build-test-token-knxq7",
                                Items: nil,
                                DefaultMode: 420,
                                Optional: nil,
                            },
                            NFS: nil,
                            ISCSI: nil,
                            Glusterfs: nil,
                            PersistentVolumeClaim: nil,
                            RBD: nil,
                            FlexVolume: nil,
                            Cinder: nil,
                            CephFS: nil,
                            Flocker: nil,
                            DownwardAPI: nil,
                            FC: nil,
                            AzureFile: nil,
                            ConfigMap: nil,
                            VsphereVolume: nil,
                            Quobyte: nil,
                            AzureDisk: nil,
                            PhotonPersistentDisk: nil,
                            Projected: nil,
                            PortworxVolume: nil,
                            ScaleIO: nil,
                            StorageOS: nil,
                            CSI: nil,
                        },
                    },
                ],
                InitContainers: nil,
                Containers: [
                    {
                        Name: "sre-build-test",
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        Command: [
                            "/bin/bash",
                            "-c",
                            "# ensure we fail if something exits non-zero\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# cleanup traps on exiting, so these always run\ncleanup () {\n  echo \"$(date): Done, deleting build NS=$NS\"\n  oc delete ns \"${NS}\"\n}\ntrap \"cleanup\" EXIT SIGINT\n\n# set NS to include job name, to ease linking namespace to a specific job\nexport NS=\"openshift-build-test-${JOB_NAME##sre-build-test-}\"\noc create ns \"${NS}\"\n\n# run build\noc -n \"${NS}\" new-build nodejs~https://github.com/openshift/nodejs-ex --name=sre-build-test\necho \"$(date): Waiting for build to complete.\"\nwhile :\ndo\n  export ST=$(oc -n \"${NS}\" get build -o custom-columns=STATUS:.status.phase --no-headers)\n  case ${ST} in\n    \"\")\n      # if build status is blank, assume we are still starting the build\n      ST=\"Starting\"\n      ;;\n    Failed)\n      echo \"$(date): Build Failed\" >&2\n      exit 1\n      ;;\n    Cancelled)\n      echo \"$(date): Build was Cancelled\" >&2\n      exit 1\n      ;;\n    Complete)\n      echo \"$(date): Build Complete\"\n      break\n      ;;\n  esac\n  echo \"$(date): Build is ${ST}; checking build again in 15 seconds, NS=${NS}\"\n  sleep 15\ndone\nexit 0\n",
                        ],
                        Args: nil,
                        WorkingDir: "",
                        Ports: nil,
                        EnvFrom: nil,
                        Env: [
                            {
                                Name: "JOB_NAME",
                                Value: "",
                                ValueFrom: {
                                    FieldRef: {
                                        APIVersion: "v1",
                                        FieldPath: "metadata.name",
                                    },
                                    ResourceFieldRef: nil,
                                    ConfigMapKeyRef: nil,
                                    SecretKeyRef: nil,
                                },
                            },
                        ],
                        Resources: {Limits: nil, Requests: nil},
                        VolumeMounts: [
                            {
                                Name: "sre-build-test-token-knxq7",
                                ReadOnly: true,
                                MountPath: "/var/run/secrets/kubernetes.io/serviceaccount",
                                SubPath: "",
                                MountPropagation: nil,
                                SubPathExpr: "",
                            },
                        ],
                        VolumeDevices: nil,
                        LivenessProbe: nil,
                        ReadinessProbe: nil,
                        StartupProbe: nil,
                        Lifecycle: nil,
                        TerminationMessagePath: "/dev/termination-log",
                        TerminationMessagePolicy: "File",
                        ImagePullPolicy: "Always",
                        SecurityContext: {
                            Capabilities: {
                                Add: nil,
                                Drop: ["KILL", "MKNOD", "SETGID", "SETUID"],
                            },
                            Privileged: nil,
                            SELinuxOptions: nil,
                            WindowsOptions: nil,
                            RunAsUser: 1000620000,
                            RunAsGroup: nil,
                            RunAsNonRoot: nil,
                            ReadOnlyRootFilesystem: nil,
                            AllowPrivilegeEscalation: nil,
                            ProcMount: nil,
                        },
                        Stdin: false,
                        StdinOnce: false,
                        TTY: false,
                    },
                ],
                EphemeralContainers: nil,
                RestartPolicy: "Never",
                TerminationGracePeriodSeconds: 30,
                ActiveDeadlineSeconds: nil,
                DNSPolicy: "ClusterFirst",
                NodeSelector: nil,
                ServiceAccountName: "sre-build-test",
                DeprecatedServiceAccount: "sre-build-test",
                AutomountServiceAccountToken: nil,
                NodeName: "ip-10-0-149-197.ec2.internal",
                HostNetwork: false,
                HostPID: false,
                HostIPC: false,
                ShareProcessNamespace: nil,
                SecurityContext: {
                    SELinuxOptions: {User: "", Role: "", Type: "", Level: "s0:c25,c10"},
                    WindowsOptions: nil,
                    RunAsUser: nil,
                    RunAsGroup: nil,
                    RunAsNonRoot: nil,
                    SupplementalGroups: nil,
                    FSGroup: 1000620000,
                    Sysctls: nil,
                    FSGroupChangePolicy: nil,
                },
                ImagePullSecrets: [
                    {
                        Name: "sre-build-test-dockercfg-5xplv",
                    },
                ],
                Hostname: "",
                Subdomain: "",
                Affinity: {
                    NodeAffinity: {
                        RequiredDuringSchedulingIgnoredDuringExecution: {
                            NodeSelectorTerms: [
                                {
                                    MatchExpressions: [
                                        {Key: ..., Operator: ..., Values: ...},
                                    ],
                                    MatchFields: nil,
                                },
                            ],
                        },
                        PreferredDuringSchedulingIgnoredDuringExecution: nil,
                    },
                    PodAffinity: nil,
                    PodAntiAffinity: nil,
                },
                SchedulerName: "default-scheduler",
                Tolerations: [
                    {
                        Key: "node-role.kubernetes.io",
                        Operator: "Equal",
                        Value: "infra",
                        Effect: "NoSchedule",
                        TolerationSeconds: nil,
                    },
                    {
                        Key: "node.kubernetes.io/not-ready",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                    {
                        Key: "node.kubernetes.io/unreachable",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                ],
                HostAliases: nil,
                PriorityClassName: "",
                Priority: 0,
                DNSConfig: nil,
                ReadinessGates: nil,
                RuntimeClassName: nil,
                EnableServiceLinks: true,
                PreemptionPolicy: nil,
                Overhead: nil,
                TopologySpreadConstraints: nil,
            },
            Status: {
                Phase: "Failed",
                Conditions: [
                    {
                        Type: "Initialized",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:47Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                    {
                        Type: "Ready",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:02Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "ContainersReady",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:02Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "PodScheduled",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:11:47Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                ],
                Message: "",
                Reason: "",
                NominatedNodeName: "",
                HostIP: "10.0.149.197",
                PodIP: "10.129.4.6",
                PodIPs: [{IP: "10.129.4.6"}],
                StartTime: {
                    Time: 2020-07-12T17:11:47Z,
                },
                InitContainerStatuses: nil,
                ContainerStatuses: [
                    {
                        Name: "sre-build-test",
                        State: {
                            Waiting: nil,
                            Running: nil,
                            Terminated: {
                                ExitCode: 1,
                                Signal: 0,
                                Reason: "Error",
                                Message: "",
                                StartedAt: {
                                    Time: 2020-07-12T17:11:50Z,
                                },
                                FinishedAt: {
                                    Time: 2020-07-12T17:12:02Z,
                                },
                                ContainerID: "cri-o://f3485fc882e02c335cd14e69350c2e9908dee2ccc6dc096872a9472d99c6eb5e",
                            },
                        },
                        LastTerminationState: {Waiting: nil, Running: nil, Terminated: nil},
                        Ready: false,
                        RestartCount: 0,
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        ImageID: "image-registry.openshift-image-registry.svc:5000/openshift/cli@sha256:235093fbeb02933d72ec259aa9a8889d4bdec2506da19c69ea349a6bcbd949f0",
                        ContainerID: "cri-o://f3485fc882e02c335cd14e69350c2e9908dee2ccc6dc096872a9472d99c6eb5e",
                        Started: false,
                    },
                ],
                QOSClass: "BestEffort",
                EphemeralContainerStatuses: nil,
            },
        },
        {
            TypeMeta: {Kind: "", APIVersion: ""},
            ObjectMeta: {
                Name: "sre-build-test-1594573860-t9lnx",
                GenerateName: "sre-build-test-1594573860-",
                Namespace: "openshift-build-test",
                SelfLink: "/api/v1/namespaces/openshift-build-test/pods/sre-build-test-1594573860-t9lnx",
                UID: "55dc7e8c-d4cf-4202-8eb4-601f0e5d447b",
                ResourceVersion: "52100",
                Generation: 0,
                CreationTimestamp: {
                    Time: 2020-07-12T17:12:47Z,
                },
                DeletionTimestamp: nil,
                DeletionGracePeriodSeconds: nil,
                Labels: {
                    "controller-uid": "51af3427-cb34-4da0-84a3-4d67c3267512",
                    "job-name": "sre-build-test-1594573860",
                },
                Annotations: {
                    "k8s.v1.cni.cncf.io/network-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.8\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "k8s.v1.cni.cncf.io/networks-status": "[{\n    \"name\": \"openshift-sdn\",\n    \"interface\": \"eth0\",\n    \"ips\": [\n        \"10.129.4.8\"\n    ],\n    \"default\": true,\n    \"dns\": {}\n}]",
                    "openshift.io/scc": "restricted",
                },
                OwnerReferences: [
                    {
                        APIVersion: "batch/v1",
                        Kind: "Job",
                        Name: "sre-build-test-1594573860",
                        UID: "51af3427-cb34-4da0-84a3-4d67c3267512",
                        Controller: true,
                        BlockOwnerDeletion: true,
                    },
                ],
                Finalizers: nil,
                ClusterName: "",
                ManagedFields: [
                    {
                        Manager: "kube-controller-manager",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:12:47Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:generateName\":{},\"f:labels\":{\".\":{},\"f:controller-uid\":{},\"f:job-name\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"51af3427-cb34-4da0-84a3-4d67c3267512\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:spec\":{\"f:affinity\":{\".\":{},\"f:nodeAffinity\":{\".\":{},\"f:requiredDuringSchedulingIgnoredDuringExecution\":{\".\":{},\"f:nodeSelectorTerms\":{}}}},\"f:containers\":{\"k:{\\\"name\\\":\\\"sre-build-test\\\"}\":{\".\":{},\"f:command\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"JOB_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:valueFrom\":{\".\":{},\"f:fieldRef\":{\".\":{},\"f:apiVersion\":{},\"f:fieldPath\":{}}}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:enableServiceLinks\":{},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:serviceAccount\":{},\"f:serviceAccountName\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}",
                        },
                    },
                    {
                        Manager: "multus",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:12:50Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:metadata\":{\"f:annotations\":{\"f:k8s.v1.cni.cncf.io/network-status\":{},\"f:k8s.v1.cni.cncf.io/networks-status\":{}}}}",
                        },
                    },
                    {
                        Manager: "kubelet",
                        Operation: "Update",
                        APIVersion: "v1",
                        Time: {
                            Time: 2020-07-12T17:13:02Z,
                        },
                        FieldsType: "FieldsV1",
                        FieldsV1: {
                            Raw: "{\"f:status\":{\"f:conditions\":{\"k:{\\\"type\\\":\\\"ContainersReady\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Initialized\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Ready\\\"}\":{\".\":{},\"f:lastProbeTime\":{},\"f:lastTransitionTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:containerStatuses\":{},\"f:hostIP\":{},\"f:phase\":{},\"f:podIP\":{},\"f:podIPs\":{\".\":{},\"k:{\\\"ip\\\":\\\"10.129.4.8\\\"}\":{\".\":{},\"f:ip\":{}}},\"f:startTime\":{}}}",
                        },
                    },
                ],
            },
            Spec: {
                Volumes: [
                    {
                        Name: "sre-build-test-token-knxq7",
                        VolumeSource: {
                            HostPath: nil,
                            EmptyDir: nil,
                            GCEPersistentDisk: nil,
                            AWSElasticBlockStore: nil,
                            GitRepo: nil,
                            Secret: {
                                SecretName: "sre-build-test-token-knxq7",
                                Items: nil,
                                DefaultMode: 420,
                                Optional: nil,
                            },
                            NFS: nil,
                            ISCSI: nil,
                            Glusterfs: nil,
                            PersistentVolumeClaim: nil,
                            RBD: nil,
                            FlexVolume: nil,
                            Cinder: nil,
                            CephFS: nil,
                            Flocker: nil,
                            DownwardAPI: nil,
                            FC: nil,
                            AzureFile: nil,
                            ConfigMap: nil,
                            VsphereVolume: nil,
                            Quobyte: nil,
                            AzureDisk: nil,
                            PhotonPersistentDisk: nil,
                            Projected: nil,
                            PortworxVolume: nil,
                            ScaleIO: nil,
                            StorageOS: nil,
                            CSI: nil,
                        },
                    },
                ],
                InitContainers: nil,
                Containers: [
                    {
                        Name: "sre-build-test",
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        Command: [
                            "/bin/bash",
                            "-c",
                            "# ensure we fail if something exits non-zero\nset -o errexit\nset -o nounset\nset -o pipefail\n\n# cleanup traps on exiting, so these always run\ncleanup () {\n  echo \"$(date): Done, deleting build NS=$NS\"\n  oc delete ns \"${NS}\"\n}\ntrap \"cleanup\" EXIT SIGINT\n\n# set NS to include job name, to ease linking namespace to a specific job\nexport NS=\"openshift-build-test-${JOB_NAME##sre-build-test-}\"\noc create ns \"${NS}\"\n\n# run build\noc -n \"${NS}\" new-build nodejs~https://github.com/openshift/nodejs-ex --name=sre-build-test\necho \"$(date): Waiting for build to complete.\"\nwhile :\ndo\n  export ST=$(oc -n \"${NS}\" get build -o custom-columns=STATUS:.status.phase --no-headers)\n  case ${ST} in\n    \"\")\n      # if build status is blank, assume we are still starting the build\n      ST=\"Starting\"\n      ;;\n    Failed)\n      echo \"$(date): Build Failed\" >&2\n      exit 1\n      ;;\n    Cancelled)\n      echo \"$(date): Build was Cancelled\" >&2\n      exit 1\n      ;;\n    Complete)\n      echo \"$(date): Build Complete\"\n      break\n      ;;\n  esac\n  echo \"$(date): Build is ${ST}; checking build again in 15 seconds, NS=${NS}\"\n  sleep 15\ndone\nexit 0\n",
                        ],
                        Args: nil,
                        WorkingDir: "",
                        Ports: nil,
                        EnvFrom: nil,
                        Env: [
                            {
                                Name: "JOB_NAME",
                                Value: "",
                                ValueFrom: {
                                    FieldRef: {
                                        APIVersion: "v1",
                                        FieldPath: "metadata.name",
                                    },
                                    ResourceFieldRef: nil,
                                    ConfigMapKeyRef: nil,
                                    SecretKeyRef: nil,
                                },
                            },
                        ],
                        Resources: {Limits: nil, Requests: nil},
                        VolumeMounts: [
                            {
                                Name: "sre-build-test-token-knxq7",
                                ReadOnly: true,
                                MountPath: "/var/run/secrets/kubernetes.io/serviceaccount",
                                SubPath: "",
                                MountPropagation: nil,
                                SubPathExpr: "",
                            },
                        ],
                        VolumeDevices: nil,
                        LivenessProbe: nil,
                        ReadinessProbe: nil,
                        StartupProbe: nil,
                        Lifecycle: nil,
                        TerminationMessagePath: "/dev/termination-log",
                        TerminationMessagePolicy: "File",
                        ImagePullPolicy: "Always",
                        SecurityContext: {
                            Capabilities: {
                                Add: nil,
                                Drop: ["KILL", "MKNOD", "SETGID", "SETUID"],
                            },
                            Privileged: nil,
                            SELinuxOptions: nil,
                            WindowsOptions: nil,
                            RunAsUser: 1000620000,
                            RunAsGroup: nil,
                            RunAsNonRoot: nil,
                            ReadOnlyRootFilesystem: nil,
                            AllowPrivilegeEscalation: nil,
                            ProcMount: nil,
                        },
                        Stdin: false,
                        StdinOnce: false,
                        TTY: false,
                    },
                ],
                EphemeralContainers: nil,
                RestartPolicy: "Never",
                TerminationGracePeriodSeconds: 30,
                ActiveDeadlineSeconds: nil,
                DNSPolicy: "ClusterFirst",
                NodeSelector: nil,
                ServiceAccountName: "sre-build-test",
                DeprecatedServiceAccount: "sre-build-test",
                AutomountServiceAccountToken: nil,
                NodeName: "ip-10-0-149-197.ec2.internal",
                HostNetwork: false,
                HostPID: false,
                HostIPC: false,
                ShareProcessNamespace: nil,
                SecurityContext: {
                    SELinuxOptions: {User: "", Role: "", Type: "", Level: "s0:c25,c10"},
                    WindowsOptions: nil,
                    RunAsUser: nil,
                    RunAsGroup: nil,
                    RunAsNonRoot: nil,
                    SupplementalGroups: nil,
                    FSGroup: 1000620000,
                    Sysctls: nil,
                    FSGroupChangePolicy: nil,
                },
                ImagePullSecrets: [
                    {
                        Name: "sre-build-test-dockercfg-5xplv",
                    },
                ],
                Hostname: "",
                Subdomain: "",
                Affinity: {
                    NodeAffinity: {
                        RequiredDuringSchedulingIgnoredDuringExecution: {
                            NodeSelectorTerms: [
                                {
                                    MatchExpressions: [
                                        {Key: ..., Operator: ..., Values: ...},
                                    ],
                                    MatchFields: nil,
                                },
                            ],
                        },
                        PreferredDuringSchedulingIgnoredDuringExecution: nil,
                    },
                    PodAffinity: nil,
                    PodAntiAffinity: nil,
                },
                SchedulerName: "default-scheduler",
                Tolerations: [
                    {
                        Key: "node-role.kubernetes.io",
                        Operator: "Equal",
                        Value: "infra",
                        Effect: "NoSchedule",
                        TolerationSeconds: nil,
                    },
                    {
                        Key: "node.kubernetes.io/not-ready",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                    {
                        Key: "node.kubernetes.io/unreachable",
                        Operator: "Exists",
                        Value: "",
                        Effect: "NoExecute",
                        TolerationSeconds: 300,
                    },
                ],
                HostAliases: nil,
                PriorityClassName: "",
                Priority: 0,
                DNSConfig: nil,
                ReadinessGates: nil,
                RuntimeClassName: nil,
                EnableServiceLinks: true,
                PreemptionPolicy: nil,
                Overhead: nil,
                TopologySpreadConstraints: nil,
            },
            Status: {
                Phase: "Failed",
                Conditions: [
                    {
                        Type: "Initialized",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:48Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                    {
                        Type: "Ready",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:13:02Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "ContainersReady",
                        Status: "False",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:13:02Z,
                        },
                        Reason: "ContainersNotReady",
                        Message: "containers with unready status: [sre-build-test]",
                    },
                    {
                        Type: "PodScheduled",
                        Status: "True",
                        LastProbeTime: {
                            Time: 0001-01-01T00:00:00Z,
                        },
                        LastTransitionTime: {
                            Time: 2020-07-12T17:12:48Z,
                        },
                        Reason: "",
                        Message: "",
                    },
                ],
                Message: "",
                Reason: "",
                NominatedNodeName: "",
                HostIP: "10.0.149.197",
                PodIP: "10.129.4.8",
                PodIPs: [{IP: "10.129.4.8"}],
                StartTime: {
                    Time: 2020-07-12T17:12:48Z,
                },
                InitContainerStatuses: nil,
                ContainerStatuses: [
                    {
                        Name: "sre-build-test",
                        State: {
                            Waiting: nil,
                            Running: nil,
                            Terminated: {
                                ExitCode: 1,
                                Signal: 0,
                                Reason: "Error",
                                Message: "",
                                StartedAt: {
                                    Time: 2020-07-12T17:12:50Z,
                                },
                                FinishedAt: {
                                    Time: 2020-07-12T17:13:02Z,
                                },
                                ContainerID: "cri-o://60cb0a770879eb5bdd674cf8bc26a87c007051e96809add6883ac23be0946e2e",
                            },
                        },
                        LastTerminationState: {Waiting: nil, Running: nil, Terminated: nil},
                        Ready: false,
                        RestartCount: 0,
                        Image: "image-registry.openshift-image-registry.svc:5000/openshift/cli:latest",
                        ImageID: "image-registry.openshift-image-registry.svc:5000/openshift/cli@sha256:235093fbeb02933d72ec259aa9a8889d4bdec2506da19c69ea349a6bcbd949f0",
                        ContainerID: "cri-o://60cb0a770879eb5bdd674cf8bc26a87c007051e96809add6883ac23be0946e2e",
                        Started: false,
                    },
                ],
                QOSClass: "BestEffort",
                EphemeralContainerStatuses: nil,
            },
        },
    ]
to have length 0
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/pods.go:69
				from junit_26o.xml

Filter through log files


OSD e2e suite [install] [Suite: e2e] Workload (redmine) should get created in the cluster 10m4s

go run hack/e2e.go -v -test --test_args='--ginkgo.focus=OSD\se2e\ssuite\s\[install\]\s\[Suite\:\se2e\]\sWorkload\s\(redmine\)\sshould\sget\screated\sin\sthe\scluster$'
/go/src/github.com/openshift/osde2e/pkg/e2e/workloads/redmine/redmine.go:36
objects not created in a timely manner
Unexpected error:
    <*errors.errorString | 0xc000323f00>: {
        s: "timed out waiting for the condition",
    }
    timed out waiting for the condition
occurred
/go/src/github.com/openshift/osde2e/pkg/e2e/workloads/redmine/redmine.go:60
				from junit_26o.xml

Filter through log files


Show 54 Passed Tests

Show 26 Skipped Tests