Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Feb 21, 2022

We've had the warning at least since this repo was created in 3abf60a. But since we grew --allow-explicit-upgrade in 0501d04 (#109), --to-image has been just as restricted to recommended updates as --to. Removing the warning here avoids unnecessary alarm. We can save the warning for --allow-explicit-upgrade, whose help text I'm consolidating in this
commit. The new structure is:

  • --to and --to-image together, since in the absence of --allow-explicit-upgrade those are equally safe.

  • The paragraph about unsupported updates or broken CVO <-> upstream update service communication. Before this paragraph had focused on --to-image, but I've adjusted it to focus on --allow-explicit-upgrade.

  • The --allow-upgrade-with-warnings paragraph. I've moved the sentence about retargeting updates over to this paragraph, since --allow-upgrade-with-warnings is the relevant flag for that issue.

  • The --force paragraph, because that's about a cluster-side check that occurs after the oc-side --allow-* checks, so having it last in the help text gives us the same order in help as we get for check application.

@wking wking force-pushed the soften-upgrade-to-image-warning branch from b754c4b to b6bb202 Compare February 21, 2022 18:37
@openshift-ci openshift-ci bot requested review from mfojtik and soltysh February 21, 2022 18:37
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 21, 2022
@wking wking changed the title pkg/cli/admin/upgrade: Drop --to-image help warning Bug 2056893: pkg/cli/admin/upgrade: Drop --to-image help warning Feb 22, 2022
@openshift-ci openshift-ci bot added bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Feb 22, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 22, 2022

@wking: This pull request references Bugzilla bug 2056893, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @evakhoni

Details

In response to this:

Bug 2056893: pkg/cli/admin/upgrade: Drop --to-image help warning

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/test-infra repository.

@openshift-ci openshift-ci bot requested a review from evakhoni February 22, 2022 17:56
If the cluster is already being upgraded, or if the cluster is reporting a failure or
other error, you must pass --allow-upgrade-with-warnings to proceed (see note below on
the implications). Avoid upgrading when the cluster is reporting errors or when another
upgrade is in progress unless the upgrade cannot make progress.
Copy link
Member

Choose a reason for hiding this comment

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

Avoid upgrading when the cluster is reporting errors or when another upgrade is in progress unless the upgrade cannot make progress. is confusing and do not communicate the context properly. Here is my suggestion You should understand risks from the error/warnings before considering to use --allow-upgrade-with-warnings oe something like that. I am looking for a smaller sentence here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed with b6bb202 -> 4e3339f:

If the cluster is already being upgraded, or if the cluster is reporting a failure or other error, the update will not be triggered. It is usually best to give these conditions time to resolve, or to actively work to resolve them. But if you decide to trigger the update regardless of these concerns, use --allow-upgrade-with-warnings.

We've had the warning at least since this repo was created in
3abf60a (setup oc repo, 2019-06-17).  But since we grew
--allow-explicit-upgrade in 0501d04 (upgrade: Separate flags for
safety instead of abusing force, 2019-09-27, openshift#109), --to-image has
been just as restricted to recommended updates as --to.  Removing the
warning here avoids unnecessary alarm.  We can save the warning for
--allow-explicit-upgrade, whose help text I'm consolidating in this
commit.  The new structure is:

* --to and --to-image together, since in the absence of
  --allow-explicit-upgrade those are equally safe.

* The paragraph about unsupported updates or broken CVO <-> upstream
  update service communication.  Before this paragraph had focused on
  --to-image, but I've adjusted it to focus on
  --allow-explicit-upgrade.

* The --allow-upgrade-with-warnings paragraph.  I've moved the
  sentence about retargeting updates over to this paragraph, since
  --allow-upgrade-with-warnings is the relevant flag for that issue.

* The --force paragraph, because that's about a cluster-side check
  that occurs after the oc-side --allow-* checks, so having it last in
  the help text gives us the same order in help as we get for check
  application.
@wking wking force-pushed the soften-upgrade-to-image-warning branch from b6bb202 to 4e3339f Compare March 14, 2022 16:40
Copy link
Member

@LalatenduMohanty LalatenduMohanty 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 Mar 14, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 14, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LalatenduMohanty, 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-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

6 similar comments
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 15, 2022

@wking: 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/e2e-metal-ipi-ovn-ipv6 4e3339f link false /test e2e-metal-ipi-ovn-ipv6

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 074d112 into openshift:master Mar 15, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 15, 2022

@wking: An error was encountered updating to the MODIFIED state for bug 2056893 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. code 32000: Sub-component is mandatory for the component 'oc' in the product 'OpenShift Container Platform'.

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

Details

In response to this:

Bug 2056893: pkg/cli/admin/upgrade: Drop --to-image help warning

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/test-infra repository.

@wking wking deleted the soften-upgrade-to-image-warning branch March 15, 2022 05:01
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. bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants