Skip to content

Ubbagent does not seem to be sending data #36

@maelvls

Description

@maelvls

It seems like there is something wrong with the ubbagent container that runs inside the cert-manager controller pod in 1.1.0-gcm.3.

Error 403: Permission 'servicemanagement.services.check' denied on service '<redacted_3rd_party_service>'

Full log:

I0311 16:34:28.003237       1 servicecontrol.go:87] ServiceControlEndpoint:Send(): serviceName:  jetstack-secure-for-cert-manager.jetstack-public.appspot.com  body:  {"operations":[{"consumerId":"project:pr-2e981f0d7882bc90","endTime":"2021-03-11T16:34:28Z","metricValueSets":[{"metricName":"jetstack-secure-for-cert-manager.jetstack-public.appspot.com/time","metricValues":[{"endTime":"2021-03-11T16:34:28Z","int64Value":"60","startTime":"2021-03-11T16:33:28Z"}]}],"operationId":"423286a5-edaa-45de-80cb-69dca73814d3","operationName":"jetstack-secure-for-cert-manager.jetstack-public.appspot.com/report","startTime":"2021-03-11T16:33:28Z","userLabels":{"goog-ubb-agent-id":"10663b6a-7a4b-4015-abd4-a4f6e2fdc1e1"}}]}
E0311 16:34:28.016559       1 retry.go:216] RetryingSender.maybeSend [*googleapi.Error - will NOT retry]: googleapi: Error 403: Permission 'servicemanagement.services.check' denied on service '<redacted_3rd_party_service>'., forbidden

converted to YAML, the body is:

operations:
  - consumerId: "project:pr-2e981f0d7882bc90"
    endTime: "2021-03-11T16:34:28Z"
    metricValueSets:
      - metricName: jetstack-secure-for-cert-manager.jetstack-public.appspot.com/time
        metricValues:
          - endTime: "2021-03-11T16:34:28Z"
            int64Value: "60"
            startTime: "2021-03-11T16:33:28Z"
    operationId: 423286a5-edaa-45de-80cb-69dca73814d3
    operationName: jetstack-secure-for-cert-manager.jetstack-public.appspot.com/report
    startTime: "2021-03-11T16:33:28Z"
    userLabels:
      goog-ubb-agent-id: 10663b6a-7a4b-4015-abd4-a4f6e2fdc1e1

It might be due to the fact that I did not know what to put in the Application deploy-info annotation. Currently, the annotation looks like this:

apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
  annotations:
    marketplace.cloud.google.com/deploy-info: '{"partner_id": "partner", "product_id": "jetstack-secure", "partner_name": "Jetstack"}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions