OCPBUGS-83872: pkg/cli/admin/upgrade: Tighten force warnings#2165
Conversation
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-cherrypick-robot: Failed to create a cherry-pick bug in Jira: 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 DetailsIn response to this:
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. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
|
/label backport-risk-assessed |
|
/jira refresh |
|
@oarribas: This pull request references Jira Issue OCPBUGS-65757, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
The jira creation failed, and it is still linked to the 4.19 one. I don't know if there is any command to re-try the jira creation. |
|
/jira refresh |
|
@wking: This pull request references Jira Issue OCPBUGS-65757, which is invalid:
Comment DetailsIn response to this:
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. |
|
Pick the 4.19.z OCPBUGS-65757 (which got this patch in #2146) back to 4.18.z: /jira cherrypick OCPBUGS-65757 |
|
@wking: An error was encountered cloning bug for cherrypick for bug OCPBUGS-65757 on the Jira server at https://redhat.atlassian.net. No known errors were detected, please see the full error message for details. Full error message.
request failed. Please analyze the request body for more details. Status code: 400: {"errorMessages":["QA Contact: User 'Jia Liu' is not valid for this user picker."],"errors":{"customfield_10470":"User 'Jia Liu' is not valid for this user picker."}}
Please contact an administrator to resolve this issue, then request a bug refresh with DetailsIn response to this:
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. |
|
/retitle OCPBUGS-83872: pkg/cli/admin/upgrade: Tighten force warnings |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-83872, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
/jira refresh |
|
@wking: This pull request references Jira Issue OCPBUGS-83872, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (jiajliu@redhat.com), skipping review request. DetailsIn response to this:
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. |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Following @jiajliu's verification process: $ git checkout origin/pr/2165
$ go build ./cmd/oc
$ ./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.
$ ./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.
...Looks good. /verified by @wking |
|
@wking: This PR has been marked as verified by DetailsIn response to this:
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. |
6febe61
into
openshift:release-4.18
|
@openshift-cherrypick-robot: Jira Issue Verification Checks: Jira Issue OCPBUGS-83872 Jira Issue OCPBUGS-83872 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn response to this:
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. |
|
Fix included in release 4.18.0-0.nightly-2026-04-21-225743 |
This is an automated cherry-pick of #2146
/assign openshift-cherrypick-robot