Skip to content

do not merge: OCPBUGS-98213 Verification - #6033

Closed
Ben Vesel (bennerv) wants to merge 4 commits into
Azure:mainfrom
bennerv:bvesel/ocpbugs-98213-test
Closed

do not merge: OCPBUGS-98213 Verification#6033
Ben Vesel (bennerv) wants to merge 4 commits into
Azure:mainfrom
bennerv:bvesel/ocpbugs-98213-test

Conversation

@bennerv

Copy link
Copy Markdown
Member

What

Help verify router pod doesn't get deployed until all route are able to be rendered in the router configmap.

Why

Testing

Copilot AI review requested due to automatic review settings July 12, 2026 20:30
@bennerv

Copy link
Copy Markdown
Member Author

/hold will not merge.

@bennerv Ben Vesel (bennerv) changed the title OCPBUGS-98213 Verification do not merge: OCPBUGS-98213 Verification Jul 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a verification-oriented change to help confirm HyperShift router behavior (router pod should not be deployed until routes can be rendered into the router ConfigMap). It does this by (1) forcing a single focused E2E scenario and (2) adding mgmt-agent watchers to emit Kubernetes event timelines (router ConfigMap lifecycle).

Changes:

  • Focuses the “Private KeyVault” cluster-create E2E and pins it to an explicitly resolved OCP 4.23 candidate install version, plus an out-of-band CPO image override tag.
  • Adds a ConfigMapWatcher in mgmt-agent to log router ConfigMap create/update/delete events (via a field-selector-scoped informer).
  • Wires the new watcher into mgmt-agent startup under leader election and adds basic unit tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
test/e2e/cluster_create_private_kv.go Focused E2E test + explicit version resolution + experimental tag to override CPO image
mgmt-agent/pkg/controller/cmwatcher.go New informer-backed ConfigMap watcher that logs router ConfigMap events
mgmt-agent/pkg/controller/cmwatcher_test.go Unit tests for the new watcher/logging helper
mgmt-agent/cmd/options.go Wires ConfigMap watcher/informers into mgmt-agent lifecycle under leader election

Comment thread test/e2e/cluster_create_private_kv.go
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread mgmt-agent/pkg/controller/cmwatcher.go
Comment thread mgmt-agent/pkg/controller/cmwatcher_test.go
Copilot AI review requested due to automatic review settings July 13, 2026 01:31
@bennerv
Ben Vesel (bennerv) force-pushed the bvesel/ocpbugs-98213-test branch from 2138cb4 to 5971d81 Compare July 13, 2026 01:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

Comment thread test/e2e/cluster_create_private_kv.go
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread mgmt-agent/pkg/controller/cmwatcher.go
Comment thread mgmt-agent/cmd/options.go
Comment thread test/e2e/cluster_create_private_kv.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

Comment thread test/e2e/cluster_create_private_kv.go
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread mgmt-agent/pkg/controller/cmwatcher.go
Comment thread mgmt-agent/cmd/options.go
@bennerv

Copy link
Copy Markdown
Member Author

KQL queries to show that there is a single revision of router pod replicasets during installation. Can use these for cluster installs if we know the hostedcluster namespace.

let hcNamespace="";
cluster('https://hcp-dev-us-2.eastus2.kusto.windows.net').database('ServiceLogs').kubeAudit
| where timestamp between (datetime(2026-07-13T15:43:01Z) .. datetime(2026-07-14T16:06:00Z))
| where resourceId has 'ci01-j8862720-mgmt-1'
| where stage == 'ResponseComplete'
| where tostring(objectRef.namespace) == 'ocm-arohcpci01-2rhbkb9hj5tgfjeb1avcm9ncp7upjvb1-e1j5q9p7g7s1v2z'
| where objectRef.resource in("deployments", "replicasets")
| project timestamp=requestReceivedTimestamp,
    verb,
    resource = tostring(objectRef.resource),
    name = tostring(objectRef.name),
    userName = tostring(user.username),
    responseCode = toint(responseStatus.code)
| order by timestamp asc

cluster('https://hcp-dev-us-2.eastus2.kusto.windows.net').database('ServiceLogs').kubernetesEvents
| where timestamp between (datetime(2026-07-13T15:43:01Z) .. datetime(2026-07-13T16:06:00Z))
| where cluster in ('ci01-j8862720-svc', 'ci01-j8862720-mgmt-1')
| where eventNamespace == hcNamespace
| where objectKind == 'Deployment' and reason == 'ScalingReplicaSet'
| extend firstSeen = coalesce(firstSeen, todatetime(log.event_time))
| project firstSeen, objectName, message
| order by firstSeen asc

Copilot AI review requested due to automatic review settings July 13, 2026 21:16
@bennerv
Ben Vesel (bennerv) force-pushed the bvesel/ocpbugs-98213-test branch from 8baf66f to 786bef5 Compare July 13, 2026 21:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread test/e2e/cluster_create_private_kv.go
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread mgmt-agent/pkg/controller/cmwatcher.go
Copilot AI review requested due to automatic review settings July 14, 2026 01:59
@bennerv
Ben Vesel (bennerv) force-pushed the bvesel/ocpbugs-98213-test branch from 786bef5 to 399a89a Compare July 14, 2026 01:59
@openshift-ci

openshift-ci Bot commented Jul 14, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bennerv

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

The pull request process is described here

Details 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread test/e2e/cluster_create_private_kv.go
Comment thread test/e2e/cluster_create_private_kv.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread test/e2e/cluster_create_private_kv.go
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread test/e2e/cluster_create_private_kv.go Outdated
Copilot AI review requested due to automatic review settings July 14, 2026 18:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

Comment thread test/e2e/cluster_create_private_kv.go Outdated
Comment thread test/e2e/cluster_create_cpo_override_20251223.go
Comment thread test/e2e/cluster_create_cpo_override_20240610.go
Comment thread test/e2e/cluster_create_cpo_override_20251223.go Outdated
Comment thread test/e2e/cluster_create_cpo_override_20240610.go Outdated
Copilot AI review requested due to automatic review settings July 14, 2026 20:24
@bennerv
Ben Vesel (bennerv) force-pushed the bvesel/ocpbugs-98213-test branch from 1dfbac6 to 50c4645 Compare July 14, 2026 20:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Comment thread test/e2e/cluster_create_private_kv.go
Comment thread test/e2e/cluster_create_cpo_override_20240610.go
Comment thread test/e2e/cluster_create_cpo_override_20251223.go
Comment thread test/e2e/setup.go Outdated
Comment thread test/e2e/cluster_create_cpo_override_20240610.go
Comment thread test/e2e/cluster_create_cpo_override_20251223.go
Comment thread test/e2e/cluster_create_cpo_override_20240610.go
@bennerv

Copy link
Copy Markdown
Member Author

/test e2e-parallel

@bennerv

Copy link
Copy Markdown
Member Author

main HyperShift operator updates good on the below scenarios. Only a single replicaset is seen during the lifetime of the cluster.

  • non-swift cluster (check for successful pass)
  • swift cluster public key vault
  • swift cluster private key vault

https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/Azure_ARO-HCP/6033/pull-ci-Azure-ARO-HCP-main-e2e-parallel/2077130989351473152

Data explorer query

let swiftClusterPublicKv="cpo-override-2512-nswttw";
let swiftClusterPrivateKv="private-keyvault-2l2gqg";
let _startTime = datetime(2026-07-14T20:24:07.0000000Z);
let _endTime = datetime(2026-07-14T23:27:29.0000000Z);
let cid = (database('ServiceLogs').table('clustersServiceLogs')
| where timestamp between (_startTime .. _endTime)
| where resource_id has swiftClusterPrivateKv
| where strlen( cid) > 0
| distinct cid);
let hcNamespace=(database('HostedControlPlaneLogs').table('containerLogs')
| where timestamp between (_startTime .. _endTime)
| where namespace_name has_any (cid)
| distinct namespace_name);
database('ServiceLogs').kubernetesEvents
| where eventNamespace  has_any (hcNamespace)
    and objectName contains 'router'
| extend firstSeen = coalesce(firstSeen, todatetime(log.event_time)), lastSeen = coalesce(lastSeen, todatetime(log.event_time))
| summarize arg_max(count, firstSeen, lastSeen) by objectKind, objectName, reason, message
| project objectKind, objectName, reason, message, firstSeen, lastSeen, count
| order by firstSeen asc

@mgahagan73

Copy link
Copy Markdown
Collaborator

Hi, If you plan on merging the 2 new CPO tests they will need MI Container labels added (labels.MIContainers(n) where n is the number of MI Containers), a rebase will pull in the new verify checks for the MI container labels.

@bennerv
Ben Vesel (bennerv) force-pushed the bvesel/ocpbugs-98213-test branch from 21ccb31 to fa7eacf Compare August 3, 2026 19:38
@bennerv

Copy link
Copy Markdown
Member Author

/test e2e-parallel

should test 4.22 release now based on openshift/hypershift#9212

Built from openshift/hypershift cherry-pick-OCPBUGS-98213-to-release-4.22
at commit 829f43241b (openshift/hypershift#9212).

Image: arohcpocpdev.azurecr.io/control-plane-operator@sha256:2a9a553057e74e9263829ad636213cad63f9d8ae91a104e0a3d593a0164ce294

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bennerv
Ben Vesel (bennerv) force-pushed the bvesel/ocpbugs-98213-test branch from b80818b to c84eb71 Compare August 4, 2026 14:27
@bennerv

Copy link
Copy Markdown
Member Author

/test e2e-parallel

@openshift-ci

openshift-ci Bot commented Aug 4, 2026

Copy link
Copy Markdown

Ben Vesel (@bennerv): The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/test-unit 1dfbac6 link true /test test-unit
ci/prow/mega-linter 1dfbac6 link true /test mega-linter
ci/prow/integration 1dfbac6 link true /test integration
ci/prow/verify 50c4645 link true /test verify
ci/prow/e2e-parallel c84eb71 link true /test e2e-parallel

Full PR test history. Your PR dashboard.

Details

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.

@bennerv

Copy link
Copy Markdown
Member Author

/close

Todd will do validation on the HyperShift PRs. This isn't needed but he can cherry-pick out the changes as needed to validate in his own PR if he wants.

Todd Wolff (twolff-gh) added a commit to twolff-gh/ARO-HCP that referenced this pull request Aug 5, 2026
Revert to the CPO image bennerv built and validated on PR Azure#6033.
The locally-built image from the cherry-pick branch had version
mismatch issues with the 4.22 release payload.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants