Skip to content

Ptp fix - #83152

Open
TimurMP wants to merge 1 commit into
openshift:mainfrom
TimurMP:ptp_fix
Open

Ptp fix#83152
TimurMP wants to merge 1 commit into
openshift:mainfrom
TimurMP:ptp_fix

Conversation

@TimurMP

@TimurMP TimurMP commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Updates the cnf-ran-ptp-sno-4.18 CI configuration for hub and spoke clusters.
  • Removes default_channel from Advanced Cluster Management, Multicluster Engine, and Cluster Logging hub operator definitions.
  • Changes the spoke Cluster Logging channel from stable-6.4 to stable-6.1 and removes its default_channel.

@openshift-ci
openshift-ci Bot requested review from eifrach and neisw August 9, 2026 15:32
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 4e5caf38-26a9-49fd-84ea-83560cf7f6ec

📥 Commits

Reviewing files that changed from the base of the PR and between 6fd6d16 and 823c6c7.

📒 Files selected for processing (1)
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.18.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.18.yaml

Walkthrough

The operator configuration removes selected default_channel values and changes the spoke Cluster Logging channel from stable-6.4 to stable-6.1.

Changes

Operator channel updates

Layer / File(s) Summary
Hub operator channel declarations
ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.18.yaml
Hub Advanced Cluster Management, Multicluster Engine, and Cluster Logging entries remove default_channel.
Spoke Cluster Logging channel
ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.18.yaml
Spoke Cluster Logging changes from stable-6.4 to stable-6.1 and removes default_channel.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: neisw, eifrach

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title identifies a PTP-related fix, which matches the changes to the PTP SNO configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR changes only one CI YAML configuration file; it adds or changes no Ginkgo test titles such as It(), Describe(), Context(), or When().
Test Structure And Quality ✅ Passed The commit changes only one YAML CI configuration file; it adds no Ginkgo test code, so the listed test-structure requirements are not applicable.
Microshift Test Compatibility ✅ Passed The patch changes one CI YAML configuration only; it adds no Ginkgo tests or new API/resource references, so the MicroShift compatibility check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The PR changes only one CI YAML file for operator channels and default_channel fields; it adds no Ginkgo tests or multi-node assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed The only changed file is CI operator metadata; changes remove default_channel and set a logging channel, with no affinity, spread, replica, selector, taint, or toleration constraints.
Ote Binary Stdout Contract ✅ Passed The PR changes only one ci-operator YAML file; it adds no OTE source, main or suite setup, logging configuration, or stdout writes.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The patch changes one CI YAML file only; it adds no Ginkgo e2e tests or new test networking code, so this compatibility check is not applicable.
No-Weak-Crypto ✅ Passed The PR changes one YAML file only; added lines alter operator channels and remove metadata, and scans found no MD5, SHA1, DES, RC4, Blowfish, ECB, crypto, or timing-comparison usage.
Container-Privileges ✅ Passed The commit changes one CI configuration file and adds no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, root, or allowPrivilegeEscalation settings.
No-Sensitive-Data-In-Logs ✅ Passed The commit changes only operator channel metadata and removes an internal repository URL; added lines contain no logging statements or sensitive-data indicators.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 9, 2026

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-config/telcov10n-functional-cnf-ran-ibi-target-hub-config-commands.sh`:
- Around line 2-3: Update the shell options at the start of the step script to
enable nounset alongside errexit and pipefail, using the required default `set
-euo pipefail` configuration.

In
`@ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-mirror-spoke-operators/telcov10n-functional-cnf-ran-ibi-target-mirror-spoke-operators-commands.sh`:
- Around line 2-3: Update the script’s shell options to enable nounset alongside
errexit and pipefail, using the standard commands-script default of set -euo
pipefail. This ensures the CLUSTER_NAME handoff is validated before constructing
the kubeconfig path.

In
`@ci-operator/step-registry/telcov10n/functional/cnf-ran/ibu-target-hub-deploy/telcov10n-functional-cnf-ran-ibu-target-hub-deploy-ref.yaml`:
- Around line 49-67: Remove the kni-qe-128 credential mount entries from the
target hub deploy ref, including the hub, bastion, group, and hypervisor mounts.
Update the documentation block to describe only the IBU target hub and its
supported default, kni-qe-109; leave IBI credentials to the separate IBI ref.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: adecc515-cc7e-4a02-9bd1-3e064207f517

📥 Commits

Reviewing files that changed from the base of the PR and between 6fd6d16 and ebc9ae4.

📒 Files selected for processing (26)
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ibi-4.20.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.14.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.16.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.18.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.19.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.20.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.22.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-5.0.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-5.1.yaml
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-config/telcov10n-functional-cnf-ran-hub-config-commands.sh
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-config/telcov10n-functional-cnf-ran-hub-config-ref.yaml
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-deploy/telcov10n-functional-cnf-ran-hub-deploy-commands.sh
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-config/OWNERS
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-config/telcov10n-functional-cnf-ran-ibi-target-hub-config-commands.sh
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-config/telcov10n-functional-cnf-ran-ibi-target-hub-config-ref.metadata.json
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-config/telcov10n-functional-cnf-ran-ibi-target-hub-config-ref.yaml
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-deploy/OWNERS
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-deploy/telcov10n-functional-cnf-ran-ibi-target-hub-deploy-commands.sh
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-deploy/telcov10n-functional-cnf-ran-ibi-target-hub-deploy-ref.metadata.json
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-deploy/telcov10n-functional-cnf-ran-ibi-target-hub-deploy-ref.yaml
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-mirror-spoke-operators/OWNERS
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-mirror-spoke-operators/telcov10n-functional-cnf-ran-ibi-target-mirror-spoke-operators-commands.sh
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-mirror-spoke-operators/telcov10n-functional-cnf-ran-ibi-target-mirror-spoke-operators-ref.metadata.json
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-mirror-spoke-operators/telcov10n-functional-cnf-ran-ibi-target-mirror-spoke-operators-ref.yaml
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi/telcov10n-functional-cnf-ran-ibi-workflow.yaml
  • ci-operator/step-registry/telcov10n/functional/cnf-ran/ibu-target-hub-deploy/telcov10n-functional-cnf-ran-ibu-target-hub-deploy-ref.yaml
💤 Files with no reviewable changes (7)
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.20.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.14.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-5.1.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.19.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.22.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-4.16.yaml
  • ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-ptp-sno-5.0.yaml

Comment on lines +2 to +3
set -e
set -o pipefail

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.

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Enable nounset in the step script.

Line 2 and Line 3 omit nounset. An unset input can expand to an empty value and produce an invalid deployment configuration. Use the required default shell options.

As per coding guidelines, step registry command scripts must default to set -euo pipefail.

Proposed fix
-set -e
-set -o pipefail
+set -euo pipefail
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
set -e
set -o pipefail
set -euo pipefail
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-hub-config/telcov10n-functional-cnf-ran-ibi-target-hub-config-commands.sh`
around lines 2 - 3, Update the shell options at the start of the step script to
enable nounset alongside errexit and pipefail, using the required default `set
-euo pipefail` configuration.

Source: Coding guidelines

Comment on lines +2 to +3
set -e
set -o pipefail

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Enable unset-variable checks.

The script can continue with an empty CLUSTER_NAME when ${SHARED_DIR}/cluster_name is absent. It then constructs an invalid kubeconfig path on Line 30. Enable nounset so the step fails at the missing handoff boundary.

Proposed fix
-set -e
-set -o pipefail
+set -euo pipefail

As per coding guidelines, "**/*-commands.sh: ... default to set -euo pipefail without -x."

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
set -e
set -o pipefail
set -euo pipefail
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/telcov10n/functional/cnf-ran/ibi-target-mirror-spoke-operators/telcov10n-functional-cnf-ran-ibi-target-mirror-spoke-operators-commands.sh`
around lines 2 - 3, Update the script’s shell options to enable nounset
alongside errexit and pipefail, using the standard commands-script default of
set -euo pipefail. This ensures the CLUSTER_NAME handoff is validated before
constructing the kubeconfig path.

Source: Coding guidelines

Comment on lines +49 to +67
# kni-qe-128 (IBI target hub)
- namespace: test-credentials
name: telcov10n-ansible-hub-kni-qe-128
mount_path: /var/host_variables/kni-qe-128/master0
- namespace: test-credentials
name: telcov10n-ansible-kni-qe-128-bastion
mount_path: /var/host_variables/kni-qe-128/bastion
- namespace: test-credentials
name: telcov10n-ansible-group-hub-kni-qe-128-nodes
mount_path: /var/group_variables/kni-qe-128/nodes
- namespace: test-credentials
name: telcov10n-ansible-group-hub-kni-qe-128-masters
mount_path: /var/group_variables/kni-qe-128/masters
- namespace: test-credentials
name: telcov10n-ansible-hypervisors-helix107
mount_path: /var/host_variables/kni-qe-128/hypervisor
documentation: |-
Deploy IBU target hub (kni-qe-109).
The target hub manages the spoke clusters that will be upgraded via IBU.
Deploy IBU/IBI target hub (kni-qe-109 or kni-qe-128).
The target hub manages the spoke clusters that will be upgraded/installed via IBU/IBI.

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.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Keep IBI credentials in the IBI ref.

telcov10n-functional-cnf-ran-ibu-target-hub-deploy remains the IBU ref and defaults to kni-qe-109. The IBI workflow already invokes a separate telcov10n-functional-cnf-ran-ibi-target-hub-deploy ref with its own kni-qe-128 mounts. (raw.githubusercontent.com)

Remove the kni-qe-128 credential mounts from this IBU ref. Restore the documentation to describe only the IBU target hub. Otherwise, IBU jobs receive unrelated IBI credentials.

Proposed fix
-    # kni-qe-128 (IBI target hub)
-    - namespace: test-credentials
-      name: telcov10n-ansible-hub-kni-qe-128
-      mount_path: /var/host_variables/kni-qe-128/master0
-    - namespace: test-credentials
-      name: telcov10n-ansible-kni-qe-128-bastion
-      mount_path: /var/host_variables/kni-qe-128/bastion
-    - namespace: test-credentials
-      name: telcov10n-ansible-group-hub-kni-qe-128-nodes
-      mount_path: /var/group_variables/kni-qe-128/nodes
-    - namespace: test-credentials
-      name: telcov10n-ansible-group-hub-kni-qe-128-masters
-      mount_path: /var/group_variables/kni-qe-128/masters
-    - namespace: test-credentials
-      name: telcov10n-ansible-hypervisors-helix107
-      mount_path: /var/host_variables/kni-qe-128/hypervisor
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/telcov10n/functional/cnf-ran/ibu-target-hub-deploy/telcov10n-functional-cnf-ran-ibu-target-hub-deploy-ref.yaml`
around lines 49 - 67, Remove the kni-qe-128 credential mount entries from the
target hub deploy ref, including the hub, bastion, group, and hypervisor mounts.
Update the documentation block to describe only the IBU target hub and its
supported default, kni-qe-109; leave IBI credentials to the separate IBI ref.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@openshift-ci

openshift-ci Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: TimurMP

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

@TimurMP

TimurMP commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-kni-eco-ci-cd-main-cnf-ran-ptp-sno-4.18-cnf-ran-ptp-tests

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@TimurMP: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@TimurMP: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
periodic-ci-openshift-kni-eco-ci-cd-main-cnf-ran-ptp-sno-4.18-cnf-ran-ptp-tests N/A periodic Ci-operator config changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@openshift-ci

openshift-ci Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

@TimurMP: The following test 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/rehearse/periodic-ci-openshift-kni-eco-ci-cd-main-cnf-ran-ptp-sno-4.18-cnf-ran-ptp-tests 823c6c7 link unknown /pj-rehearse periodic-ci-openshift-kni-eco-ci-cd-main-cnf-ran-ptp-sno-4.18-cnf-ran-ptp-tests

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant