Bug 1876237 - [4.5.z] Typo in warning: You have used --allow-explicit-upgrade to the update to preceed anyway
Summary: [4.5.z] Typo in warning: You have used --allow-explicit-upgrade to the update...
Keywords:
Status: CLOSED DUPLICATE of bug 1876238
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.5
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
: 4.6.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On: 1846078
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-06 15:50 UTC by Micah Abbott
Modified: 2020-09-06 15:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1846078
Environment:
Last Closed: 2020-09-06 15:52:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Micah Abbott 2020-09-06 15:50:37 UTC
+++ This bug was initially created as a clone of Bug #1846078 +++

Description of problem:
The captioned sentence seems to contain a typo.
The word "preceed" probably should be "proceed".
The whole sentence suggested to be:
You have used --allow-explicit-upgrade to update.

Version-Release number of the following components:
rpm -q openshift-ansible - not installed
rpm -q ansible - not installed
ansible --version - not installed

How reproducible:

Steps to Reproduce:
1. Install 4.4.5 using Flexy

2. After 4.4.5 is running, 
oc adm upgrade --to-image=quay.io/openshift-release-dev/ocp-release@sha256:7613d8f7db639147b91b16b54b24cfa351c3cbde6aa7b7bf1b9c80c260efad06

(the image specified above is from "oc adm upgrade" which is currently available to public 4.4.5)

3. While step 2 is in progress, run
oc adm upgrade --to-image=quay.io/openshift-release-dev/ocp-release:4.5.0-rc.1-x86_64 --force --allow-explicit-upgrade=True

Watch for the output
oc adm upgrade --to-image=quay.io/openshift-release-dev/ocp-release:4.5.0-rc.1-x86_64 --force --allow-explicit-upgrade=True
warning: Using by-tag pull specs is dangerous, and while we still allow it in combination with --force for backward compatibility, it would be much safer to pass a by-digest pull spec instead
warning: The requested upgrade image is not one of the available updates.  You have used --allow-explicit-upgrade to the update to preceed anyway
warning: --force overrides cluster verification of your supplied release image and waives any update precondition failures.
error: already upgrading.

  Reason: UpgradePreconditionCheckFailed
  Message: Unable to apply quay.io/openshift-release-dev/ocp-release@sha256:7613d8f7db639147b91b16b54b24cfa351c3cbde6aa7b7bf1b9c80c260efad06: it may not be safe to apply this update



If you want to upgrade anyway, use --allow-upgrade-with-warnings.

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:
You have used --allow-explicit-upgrade.
(note the shortening of the sentence plus the period at the end to be consistent with other similar sentence)

Additional info:
code seems to be from here:
https://github.com/openshift/oc/blob/361c30813bf4b85e6b2764ecd8e3435f72484209/pkg/cli/admin/upgrade/upgrade.go#L258

--- Additional comment from To Hung Sze on 2020-06-10 17:54:29 UTC ---

code seems to be from here:
https://github.com/openshift/oc/blob/361c30813bf4b85e6b2764ecd8e3435f72484209/pkg/cli/admin/upgrade/upgrade.go#L258

--- Additional comment from errata-xmlrpc on 2020-06-22 19:11:17 UTC ---

This bug has been added to advisory RHBA-2020:54579 by OpenShift Release Team Bot (ocp-build/buildvm.openshift.eng.bos.redhat.com)

--- Additional comment from errata-xmlrpc on 2020-06-22 19:12:36 UTC ---

Bug report changed to ON_QA status by Errata System.
A QE request has been submitted for advisory RHBA-2020:54579-02
https://errata.devel.redhat.com/advisory/54579

--- Additional comment from To Hung Sze on 2020-06-23 21:04:57 UTC ---

Checked (linux):
4.5.0.0-0.nightly-2020-06-23-075004 - not fixed

4.6.0-0.nightly-2020-06-23-124328 - fixed
warning: The requested upgrade image is not one of the available updates.  You have used --allow-explicit-upgrade to the update to proceed anyway

Question: what other branch(es) will have this fix?

--- Additional comment from To Hung Sze on 2020-06-24 13:07:20 UTC ---

Looks like it is meant for 4.6 only. I will close this as verified.

Comment 1 Micah Abbott 2020-09-06 15:51:17 UTC
Saw this typo in `oc` 4.5.7


```
$ oc version
Client Version: 4.5.7
Server Version: 4.5.8
Kubernetes Version: v1.17.1+a1af596

$ oc adm upgrade --allow-explicit-upgrade --to-image quay.io/openshift-release-dev/ocp-release@sha256:ae61753ad8c8a26ed67fa233eea578194600d6c
72622edab2516879cfbf019fd 
warning: The requested upgrade image is not one of the available updates.  You have used --allow-explicit-upgrade to the update to preceed anyway
error: already upgrading.
...
```

Comment 2 Micah Abbott 2020-09-06 15:52:59 UTC
Argh, I forgot the cherry-pick bot creates BZs...closing in favor of 1876238

*** This bug has been marked as a duplicate of bug 1876238 ***


Note You need to log in before you can comment on or make changes to this bug.