console icon indicating copy to clipboard operation
console copied to clipboard

[release-4.15] OCPBUGS-32793: Fix that telemetry events didn't incl. an userId anymore

Open christoph-jerolimov opened this issue 10 months ago • 9 comments

Fixes: https://issues.redhat.com/browse/OCPBUGS-32793

This is a manual backport of https://issues.redhat.com/browse/OCPBUGS-32791, the fix for that is included in #13786

Cluster bot 4.14

By default, no telemetry communication happens.

After setting these annotations on the console cluster config (Console CR, not ConfigMap):

    telemetry.console.openshift.io/SEGMENT_API_KEY: ...
    telemetry.console.openshift.io/SEGMENT_API_HOST: console.redhat.com/connections/api/v1
    telemetry.console.openshift.io/SEGMENT_JS_HOST: console.redhat.com/connections/cdn
    telemetry.console.openshift.io/ORGANIZATION_ID: console-team-cluster-bot-test

I could confirm this network communication:

image

When also adding

    telemetry.console.openshift.io/DEBUG: 'true'

The scripts are still loaded, but the events are not sent.

The Segment userId is sha1('kube:admin')

Cluster bot 4.15

By default, no telemetry communication happens.

After setting these annotations on the console cluster config (Console CR, not ConfigMap):

    telemetry.console.openshift.io/SEGMENT_API_KEY: ...
    telemetry.console.openshift.io/SEGMENT_API_HOST: console.redhat.com/connections/api/v1
    telemetry.console.openshift.io/SEGMENT_JS_HOST: console.redhat.com/connections/cdn
    telemetry.console.openshift.io/ORGANIZATION_ID: console-team-cluster-bot-test

I could confirm this network communication:

image

When also adding

    telemetry.console.openshift.io/DEBUG: 'true'

The scripts are still loaded, but the events are not sent.

The Segment userId is picked up from the ajs_user_id cookie, or null if the cookie isn't there.

christoph-jerolimov avatar Apr 24 '24 10:04 christoph-jerolimov

@jerolimov: This pull request references Jira Issue OCPBUGS-32793, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required"
  • expected Jira Issue OCPBUGS-32793 to depend on a bug targeting a version in 4.16.0 and in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Fixes: https://issues.redhat.com/browse/OCPBUGS-32793

This is a manual backport of https://issues.redhat.com/browse/OCPBUGS-32791, the fix for that is included in #13786

todo, will test and compare 4.14, 4.15 and this PR here...

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Apr 24 '24 10:04 openshift-ci-robot

/uncc rohitkrai03 kyoto /cc @jhadvig @TheRealJon @yapei

christoph-jerolimov avatar Apr 24 '24 11:04 christoph-jerolimov

/assign @jerolimov @jhadvig

christoph-jerolimov avatar Apr 24 '24 11:04 christoph-jerolimov

/retest

christoph-jerolimov avatar Apr 24 '24 13:04 christoph-jerolimov

/label backport-risk-assessed

christoph-jerolimov avatar Apr 24 '24 13:04 christoph-jerolimov

/label qe-approved /label cherry-pick-approved

yapei avatar Apr 25 '24 06:04 yapei

/retest

christoph-jerolimov avatar Apr 25 '24 07:04 christoph-jerolimov

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Jul 29 '24 01:07 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Aug 28 '24 08:08 openshift-bot

/jira refresh

vikram-raj avatar Sep 12 '24 05:09 vikram-raj

@vikram-raj: This pull request references Jira Issue OCPBUGS-32793, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.
  • expected Jira Issue OCPBUGS-32793 to depend on a bug targeting a version in 4.16.0, 4.16.z and in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Sep 12 '24 05:09 openshift-ci-robot

/jira refresh

vikram-raj avatar Sep 12 '24 05:09 vikram-raj

@vikram-raj: This pull request references Jira Issue OCPBUGS-32793, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.z) matches configured target version for branch (4.15.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note type set to "Release Note Not Required"
  • dependent bug Jira Issue OCPBUGS-32791 is in the state Closed (Done-Errata), which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-32791 targets the "4.16.0" version, which is one of the valid target versions: 4.16.0, 4.16.z
  • bug has dependents

Requesting review from QA contact: /cc @sanketpathak

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Sep 12 '24 05:09 openshift-ci-robot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jerolimov, vikram-raj

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Sep 12 '24 05:09 openshift-ci[bot]

@jerolimov: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Sep 12 '24 09:09 openshift-ci[bot]

[ART PR BUILD NOTIFIER]

Distgit: openshift-enterprise-console This PR has been included in build openshift-enterprise-console-container-v4.15.0-202409121137.p0.g5d6978c.assembly.stream.el8. All builds following this will include this PR.

openshift-bot avatar Sep 12 '24 13:09 openshift-bot