Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-6504

Fix the test failure 71753-Prune fields from log messages

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Log QE
    • None
    • False
    • None
    • False
    • NEW
    • NEW
    • If Release Note Needed, Set a Value

      The test case failed for Openshift.ClusterID exist. But there isn't clusterID in google logging.

      Log Entry in Google

      {
        "insertId": "50o0mkfi7jfap",
        "jsonPayload": {
          "log_source": "container",
          "message": "{\"message\": \"MERGE_JSON_LOG=true\", \"level\": \"debug\",\"Layer1\": \"layer1 0\", \"layer2\": {\"name\":\"Layer2 1\", \"tips\":\"Decide by PRESERVE_JSON_LOG\"}, \"StringNumber\":\"10\", \"Number\": 10,\"foo.bar\":\"Dot Item\",\"{foobar}\":\"Brace Item\",\"[foobar]\":\"Bracket Item\", \"foo:bar\":\"Colon Item\",\"foo bar\":\"Space Item\" }",
          "kubernetes": {
            "container_image_id": "quay.io/openshifttest/ocp-logtest@sha256:6e2973d7d454ce412ad90e99ce584bf221866953da42858c4629873e53778606",
            "pod_owner": "ReplicationController/centos-logtest",
            "namespace_id": "823eefd8-44c7-4e25-a7c5-22ff529dab10",
            "labels": {
              "test": "centos-logtest",
              "run": "centos-logtest"
            },
            "pod_name": "centos-logtest-5hk8r",
            "container_id": "cri-o://c7374fc0cf2a76f618c648a2e73c3e440a9d54352747ccc5c2a3e95e60946dad",
            "container_image": "quay.io/openshifttest/ocp-logtest@sha256:6e2973d7d454ce412ad90e99ce584bf221866953da42858c4629873e53778606",
            "container_name": "centos-logtest",
            "pod_id": "23152aad-d6a0-4890-998b-53b22e04eb58",
            "namespace_labels": {
              "pod-security_kubernetes_io_warn-version": "v1.24",
              "pod-security_kubernetes_io_audit": "restricted",
              "kubernetes_io_metadata_name": "test-log-user1-1734423087",
              "pod-security_kubernetes_io_audit-version": "v1.24",
              "pod-security_kubernetes_io_warn": "restricted"
            },
            "pod_ip": "10.130.2.73"
          },
          "log_type": "application",
          "@timestamp": "2024-12-17T09:44:25.784480779Z",
          "hostname": "anligcp-qs59d-worker-c-pvffn"
        },
        "resource": {
          "type": "k8s_node",
          "labels": {
            "cluster_name": "",
            "node_name": "anligcp-qs59d-worker-c-pvffn",
            "project_id": "openshift-qe",
            "location": ""
          }
        },
        "timestamp": "2024-12-17T09:44:26.407970029Z",
        "logName": "projects/openshift-qe/logs/anligcp-qs59d-71753",
        "receiveTimestamp": "2024-12-17T09:44:26.407970029Z"
      }

      e2e.Output

          Dec 17 04:43:42.976: INFO: ===========extractedLogs[0]===================================
          Dec 17 04:43:42.976: INFO: {{map[containerType.logging.openshift.io/logging-centos-logtest:logging-centos-logtest k8s.ovn.org/pod-networks:{"default":{"ip_addresses":["10.130.2.100/23"],"mac_address":"0a:58:0a:82:02:64","gateway_ips":["10.130.2.1"],"routes":[{"dest":"10.128.0.0/14","nextHop":"10.130.2.1"},{"dest":"172.30.0.0/16","nextHop":"10.130.2.1"},{"dest":"169.254.169.5/32","nextHop":"10.130.2.1"},{"dest":"100.64.0.0/16","nextHop":"10.130.2.1"}],"ip_address":"10.130.2.100/23","gateway_ip":"10.130.2.1"}} k8s.v1.cni.cncf.io/network-status:[{
              "name": "ovn-kubernetes",
              "interface": "eth0",
              "ips": [
                  "10.130.2.100"
              ],
              "mac": "0a:58:0a:82:02:64",
              "default": true,
              "dns": {}
          }] openshift.io/scc:restricted-v2 seccomp.security.alpha.kubernetes.io/pod:runtime/default] cri-o://079f751d690a6f6e9a658f3dae14b0a8986e9c1832b351745b67e0256adfcf4f quay.io/openshifttest/ocp-logtest@sha256:6e2973d7d454ce412ad90e99ce584bf221866953da42858c4629873e53778606 quay.io/openshifttest/ocp-logtest@sha256:6e2973d7d454ce412ad90e99ce584bf221866953da42858c4629873e53778606 logging-centos-logtest []  map[run:centos-logtest test:logging-71753-test test_logging_io_logging_qe-test-label:logging-71753-test]  ed5fe9ed-6bc7-43e1-9d90-4663127a80cf map[kubernetes_io_metadata_name:e2e-test-vector-to-google-cloud-logging-2brpx pod-security_kubernetes_io_audit:restricted pod-security_kubernetes_io_audit-version:v1.24 pod-security_kubernetes_io_warn:restricted pod-security_kubernetes_io_warn-version:v1.24] e2e-test-vector-to-google-cloud-logging-2brpx 6c26e143-20c8-4bf2-aa83-0a9cd200f717 10.130.2.100 logging-centos-logtest-87x62 ReplicationController/logging-centos-logtest} {{               } { }}   application {"message": "MERGE_JSON_LOG=true", "level": "debug","Layer1": "layer1 0", "layer2": {"name":"Layer2 1", "tips":"Decide by PRESERVE_JSON_LOG"}, "StringNumber":"10", "Number": 10,"foo.bar":"Dot Item","{foobar}":"Brace Item","[foobar]":"Bracket Item", "foo:bar":"Colon Item","foo bar":"Space Item" } {} anligcp-qs59d-worker-c-pvffn 2024-12-17T09:43:43.166162655Z  {79f5aa00-0831-493e-9522-346d8da16ef6 1734428623353034200 map[]} {{    }} {   0      { }}}
          Dec 17 04:43:42.976: INFO: ===========extractedLogs[0]===================================
          Dec 17 04:43:42.976: INFO: {{map[containerType.logging.openshift.io/logging-centos-logtest:logging-centos-logtest k8s.ovn.org/pod-networks:{"default":{"ip_addresses":["10.130.2.100/23"],"mac_address":"0a:58:0a:82:02:64","gateway_ips":["10.130.2.1"],"routes":[{"dest":"10.128.0.0/14","nextHop":"10.130.2.1"},{"dest":"172.30.0.0/16","nextHop":"10.130.2.1"},{"dest":"169.254.169.5/32","nextHop":"10.130.2.1"},{"dest":"100.64.0.0/16","nextHop":"10.130.2.1"}],"ip_address":"10.130.2.100/23","gateway_ip":"10.130.2.1"}} k8s.v1.cni.cncf.io/network-status:[{
              "name": "ovn-kubernetes",
              "interface": "eth0",
              "ips": [
                  "10.130.2.100"
              ],
              "mac": "0a:58:0a:82:02:64",
              "default": true,
              "dns": {}
          }] openshift.io/scc:restricted-v2 seccomp.security.alpha.kubernetes.io/pod:runtime/default] cri-o://c7374fc0cf2a76f618c648a2e73c3e440a9d54352747ccc5c2a3e95e60946dad quay.io/openshifttest/ocp-logtest@sha256:6e2973d7d454ce412ad90e99ce584bf221866953da42858c4629873e53778606 quay.io/openshifttest/ocp-logtest@sha256:6e2973d7d454ce412ad90e99ce584bf221866953da42858c4629873e53778606 centos-logtest []  map[run:centos-logtest test:logging-71753-test test_logging_io_logging_qe-test-label:logging-71753-test]  823eefd8-44c7-4e25-a7c5-22ff529dab10 map[kubernetes_io_metadata_name:e2e-test-vector-to-google-cloud-logging-2brpx pod-security_kubernetes_io_audit:restricted pod-security_kubernetes_io_audit-version:v1.24 pod-security_kubernetes_io_warn:restricted pod-security_kubernetes_io_warn-version:v1.24] test-log-user1-1734423087 23152aad-d6a0-4890-998b-53b22e04eb58 10.130.2.73 centos-logtest-5hk8r ReplicationController/centos-logtest} {{               } { }}   application {"message": "MERGE_JSON_LOG=true", "level": "debug","Layer1": "layer1 0", "layer2": {"name":"Layer2 1", "tips":"Decide by PRESERVE_JSON_LOG"}, "StringNumber":"10", "Number": 10,"foo.bar":"Dot Item","{foobar}":"Brace Item","[foobar]":"Bracket Item", "foo:bar":"Colon Item","foo bar":"Space Item" } {} anligcp-qs59d-worker-c-pvffn 2024-12-17T09:43:42.736495362Z  {79f5aa00-0831-493e-9522-346d8da16ef6 1734428622832326100 map[]} {{    }} {   0      { }}}
          Dec 17 04:43:42.976: INFO: ==============================================
          Dec 17 04:43:42.976: INFO: ClusterID==79f5aa00-0831-493e-9522-346d8da16ef6
          Dec 17 04:43:42.976: INFO: ClusterID==79f5aa00-0831-493e-9522-346d8da16ef6
          Dec 17 04:43:42.976: INFO: ==============================================
          [FAILED] in [It] - /home/anli/cool_auto/openshift-tests-private/test/extended/logging/vector_google_cloud_logging.go:588 @ 12/17/24 04:43:42.976

              Unassigned Unassigned
              rhn-support-anli Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: