Skip to content

resource project Ids don't match environment #235

@daniel-sanche

Description

@daniel-sanche

Reported in #233

Another thing I just noticed, the metadata appears to be wrong. The target project we sent a log to here is cd-np-test1, the project_number of the project containing the GKE cluster is 982114195570. Those are not the same project. The resource records for the logs generated looks like this:

resource: {
    labels: {
        cluster_name: "nonprod"    
        container_name: ""    
        location: "projects/982114195570/zones/us-central1-a"    
        namespace_name: ""    
        pod_name: ""    
        project_id: "cd-np-test1"    
    }
    type: "k8s_container"   
 }

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions