Skip to content

pkg/cli/admin/upgrade: Drop "force" from "No updates available"#1291

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
wking:non-recommended-updates-do-not-require-force
Nov 22, 2022
Merged

pkg/cli/admin/upgrade: Drop "force" from "No updates available"#1291
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
wking:non-recommended-updates-do-not-require-force

Conversation

@wking
Copy link
Copy Markdown
Member

@wking wking commented Nov 21, 2022

The outgoing wording dates back to the initial subcommand implementation in openshift/origin@65cce8c37d (openshift/origin#21605). But "force" is easy to conflate with the --force option, and we occasionally hear of users who set --force under the mistaken impression that it is related to the recommended-ness of the target release image. There's already a paragraph in the generic --help text discussing the risks of --allow-explicit-upgrade, and folks who use --to-image in the absence of recommended updates will hear about --allow-explicit-upgrade when a bare --to-image fails to turn up the requested pullspec in availableUpdates.

@openshift-ci openshift-ci Bot requested review from ardaguclu and deads2k November 21, 2022 19:23
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 21, 2022
Comment thread pkg/cli/admin/upgrade/upgrade.go Outdated
The outgoing wording dates back to the initial subcommand
implementation in openshift/origin@65cce8c37d (Add `oc adm upgrade` to
display available updates or trigger an update, 2018-12-04,
openshift/origin#21605).  But "force" is easy to conflate with the
--force option, and we occasionally hear of users who set --force
under the mistaken impression that it is related to the
recommended-ness of the target release image.

This message is only rendered when availableUpdates is empty, so
--to-image is unlikely to be sufficient.  The current output will be:

  $ oc adm upgrade --to-image quay.io/openshift-release-dev/ocp-release@sha256:20e270c3349fe2fcb38fd0da155329babc02d6b53e7e06ff235346c3c1cf11b5
  error: no recommended updates, specify --allow-explicit-upgrade to continue with the update or wait for new updates to be available.

which we could stiffen up by including some of --help's current
warnings about --allow-explicit-upgrade risk, but we can address that
in follow-up work.
@wking wking force-pushed the non-recommended-updates-do-not-require-force branch from 1ea7a9d to bdccf16 Compare November 21, 2022 21:02
Copy link
Copy Markdown
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 Nov 21, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 21, 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

@wking
Copy link
Copy Markdown
Member Author

wking commented Nov 21, 2022

Install error seems rare:

level=error msg=Cluster operator network Degraded is True with ApplyOperatorConfig: Error while updating operator configuration: could not apply (/v1, Kind=ServiceAccount) openshift-multus/metrics-daemon-sa: failed to apply / update (/v1, Kind=ServiceAccount) openshift-multus/metrics-daemon-sa: Patch "https://api-int.ci-op-vkvihi4d-57f76.origin-ci-int-aws.dev.rhcloud.com:6443/api/v1/namespaces/openshift-multus/serviceaccounts/metrics-daemon-sa?fieldManager=cluster-network-operator%2Foperconfig&force=true": read tcp 10.0.156.120:45978->10.0.156.134:6443: read: connection reset by peer

/test ci/prow/e2e-aws-ovn-upgrade

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 21, 2022

@wking: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test build-rpms-from-tar
  • /test e2e-agnostic-ovn-cmd
  • /test e2e-aws-ovn
  • /test e2e-aws-ovn-builds
  • /test e2e-aws-ovn-serial
  • /test e2e-aws-ovn-upgrade
  • /test images
  • /test rpm-build
  • /test unit
  • /test verify
  • /test verify-deps

The following commands are available to trigger optional jobs:

  • /test e2e-metal-ipi-ovn-ipv6

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-openshift-oc-master-build-rpms-from-tar
  • pull-ci-openshift-oc-master-e2e-agnostic-ovn-cmd
  • pull-ci-openshift-oc-master-e2e-aws-ovn
  • pull-ci-openshift-oc-master-e2e-aws-ovn-serial
  • pull-ci-openshift-oc-master-e2e-aws-ovn-upgrade
  • pull-ci-openshift-oc-master-e2e-metal-ipi-ovn-ipv6
  • pull-ci-openshift-oc-master-images
  • pull-ci-openshift-oc-master-rpm-build
  • pull-ci-openshift-oc-master-unit
  • pull-ci-openshift-oc-master-verify
  • pull-ci-openshift-oc-master-verify-deps
Details

In response to this:

Install error seems rare:

level=error msg=Cluster operator network Degraded is True with ApplyOperatorConfig: Error while updating operator configuration: could not apply (/v1, Kind=ServiceAccount) openshift-multus/metrics-daemon-sa: failed to apply / update (/v1, Kind=ServiceAccount) openshift-multus/metrics-daemon-sa: Patch "https://api-int.ci-op-vkvihi4d-57f76.origin-ci-int-aws.dev.rhcloud.com:6443/api/v1/namespaces/openshift-multus/serviceaccounts/metrics-daemon-sa?fieldManager=cluster-network-operator%2Foperconfig&force=true": read tcp 10.0.156.120:45978->10.0.156.134:6443: read: connection reset by peer

/test ci/prow/e2e-aws-ovn-upgrade

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
Copy link
Copy Markdown
Member Author

wking commented Nov 21, 2022

/test e2e-aws-ovn-upgrade

@openshift-ci-robot
Copy link
Copy Markdown

/retest-required

Remaining retests: 0 against base HEAD 3ac1b02 and 2 for PR HEAD bdccf16 in total

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 22, 2022

@wking: all tests passed!

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 f2c45e9 into openshift:master Nov 22, 2022
@wking wking deleted the non-recommended-updates-do-not-require-force branch November 22, 2022 03:52
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. 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