Skip to content

Conversation

@openshift-cherrypick-robot

This is an automated cherry-pick of #2140

/assign openshift-cherrypick-robot

/cherrypick release-4.18

Catching the --help and stderr warnings for --force up with the recent
openshift/api@b618d5bd8c (config/v1/types_cluster_version: Tighten
force and rollback warnings, 2025-10-18, openshift/api#2539) wording.
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-65481 has been cloned as Jira Issue OCPBUGS-65757. Will retitle bug to link to clone.
/retitle [release-4.19] OCPBUGS-65757: pkg/cli/admin/upgrade: Tighten force warnings

Details

In response to this:

This is an automated cherry-pick of #2140

/assign openshift-cherrypick-robot

/cherrypick release-4.18

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.

@coderabbitai
Copy link

coderabbitai bot commented Nov 18, 2025

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@openshift-ci openshift-ci bot changed the title [release-4.19] OCPBUGS-65481: pkg/cli/admin/upgrade: Tighten force warnings [release-4.19] OCPBUGS-65757: pkg/cli/admin/upgrade: Tighten force warnings Nov 18, 2025
@openshift-ci-robot openshift-ci-robot added jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 18, 2025
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-65757, which is invalid:

  • expected dependent Jira Issue OCPBUGS-65481 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is POST instead

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.

Details

In response to this:

This is an automated cherry-pick of #2140

/assign openshift-cherrypick-robot

/cherrypick release-4.18

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
Copy link
Contributor

openshift-ci bot commented Nov 18, 2025

@openshift-cherrypick-robot: 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/prow/security 42b145a link false /test security

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.

@wking
Copy link
Member

wking commented Dec 9, 2025

/jira refresh
/retest-required

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 9, 2025
@openshift-ci-robot
Copy link

@wking: This pull request references Jira Issue OCPBUGS-65757, 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.19.z) matches configured target version for branch (4.19.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-65481 is in the state Closed (Done), which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-65481 targets the "4.20.z" version, which is one of the valid target versions: 4.20.0, 4.20.z
  • bug has dependents

Requesting review from QA contact:
/cc @jiajliu

Details

In response to this:

/jira refresh
/retest-required

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 openshift-ci bot requested a review from jiajliu December 9, 2025 17:47
Copy link
Member

@wking wking left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 9, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, wking

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 9, 2025
@jiajliu
Copy link

jiajliu commented Dec 10, 2025

# git checkout cherry-pick-2140-to-release-4.19
Updating files: 100% (10994/10994), done.
branch 'cherry-pick-2140-to-release-4.19' set up to track 'origin/cherry-pick-2140-to-release-4.19'.
Switched to a new branch 'cherry-pick-2140-to-release-4.19'
# make oc
# ./oc version
Client Version: v4.2.0-alpha.0-2663-g42b145a
Kustomize Version: v5.5.0
Server Version: 4.20.6
Kubernetes Version: v1.33.5
  1. check --help info -- pass
# ./oc adm upgrade --help|grep -A5 "Cluster-side guards"
 Cluster-side guards include checks for release verification and upgradeable conditions. You can push through them with --force, which is passed through to ClusterVersion's spec.desiredUpdate.force, but only do that if:

  *  you are testing unsigned release images in short-lived test clusters or
  *  you are working around a known bug in the cluster-version operator and you have verified the authenticity of the provided image yourself.

 The provided image will run with full administrative access to the cluster. Do not use --force with images that come from unknown or potentially malicious sources.
  1. check --force option -- pass
# ./oc adm upgrade --allow-explicit-upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:44f596dfa0ab5e7c02d0261eb90bc5307a825a82927032419fefd7d2c6ebc450 --force
warning: The requested upgrade image is not one of the available updates. You have used --allow-explicit-upgrade for the update to proceed anyway
warning: --force overrides cluster verification of your supplied release image and waives any update precondition failures. Only use this if you are testing unsigned release images or you are working around a known bug in the cluster-version operator and you have verified the authenticity of the provided image yourself.
Requested update to release image registry.ci.openshift.org/ocp/release@sha256:44f596dfa0ab5e7c02d0261eb90bc5307a825a82927032419fefd7d2c6ebc450

pre-merge test pass.
/verified by @jiajliu

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Dec 10, 2025
@openshift-ci-robot
Copy link

@jiajliu: This PR has been marked as verified by @jiajliu.

Details

In response to this:

# git checkout cherry-pick-2140-to-release-4.19
Updating files: 100% (10994/10994), done.
branch 'cherry-pick-2140-to-release-4.19' set up to track 'origin/cherry-pick-2140-to-release-4.19'.
Switched to a new branch 'cherry-pick-2140-to-release-4.19'
# make oc
# ./oc version
Client Version: v4.2.0-alpha.0-2663-g42b145a
Kustomize Version: v5.5.0
Server Version: 4.20.6
Kubernetes Version: v1.33.5
  1. check --help info -- pass
# ./oc adm upgrade --help|grep -A5 "Cluster-side guards"
Cluster-side guards include checks for release verification and upgradeable conditions. You can push through them with --force, which is passed through to ClusterVersion's spec.desiredUpdate.force, but only do that if:

 *  you are testing unsigned release images in short-lived test clusters or
 *  you are working around a known bug in the cluster-version operator and you have verified the authenticity of the provided image yourself.

The provided image will run with full administrative access to the cluster. Do not use --force with images that come from unknown or potentially malicious sources.
  1. check --force option -- pass
# ./oc adm upgrade --allow-explicit-upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:44f596dfa0ab5e7c02d0261eb90bc5307a825a82927032419fefd7d2c6ebc450 --force
warning: The requested upgrade image is not one of the available updates. You have used --allow-explicit-upgrade for the update to proceed anyway
warning: --force overrides cluster verification of your supplied release image and waives any update precondition failures. Only use this if you are testing unsigned release images or you are working around a known bug in the cluster-version operator and you have verified the authenticity of the provided image yourself.
Requested update to release image registry.ci.openshift.org/ocp/release@sha256:44f596dfa0ab5e7c02d0261eb90bc5307a825a82927032419fefd7d2c6ebc450

pre-merge test pass.
/verified by @jiajliu

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.

@ardaguclu
Copy link
Member

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Dec 19, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 24755b6 into openshift:release-4.19 Dec 19, 2025
14 of 15 checks passed
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: An error was encountered searching for bug OCPBUGS-65757 on the Jira server at https://issues.redhat.com/. No known errors were detected, please see the full error message for details.

Full error message. invalid character '<' looking for beginning of value: file already closed

Please contact an administrator to resolve this issue, then request a bug refresh with /jira refresh.

Details

In response to this:

This is an automated cherry-pick of #2140

/assign openshift-cherrypick-robot

/cherrypick release-4.18

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-cherrypick-robot
Copy link
Author

@openshift-cherrypick-robot: new pull request created: #2165

Details

In response to this:

This is an automated cherry-pick of #2140

/assign openshift-cherrypick-robot

/cherrypick release-4.18

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.

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.