Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1826533: pkg/cli/admin/upgrade: Warn when --force is used #387

Merged
merged 1 commit into from Apr 22, 2020

Conversation

wking
Copy link
Member

@wking wking commented Apr 16, 2020

Also soften "operator blocking upgrades" to the more generic "update precondition failures", because the cluster-version operator may learn about other preconditions with time. The warning is intended to raise awareness about --force being an "I've exhausted all other options and performed a bunch of undocumented manual verification" safety valve, and not something that anyone should be doing frequently.

Also soften "operator blocking upgrades" to the more generic "update
precondition failures", because the cluster-version operator may learn
about other preconditions with time.  The warning is intended to raise
awareness about --force being an "I've exhausted all other options and
performed a bunch of undocumented manual verification" safety valve,
and not something that anyone should be doing frequently.
@wking
Copy link
Member Author

wking commented Apr 16, 2020

images:

description: 'Job cannot be started: pods "546cb4f9-8022-11ea-9883-0a58ac10fbe1" already exists'

/retest

@wking
Copy link
Member Author

wking commented Apr 16, 2020

e2e-cmd:

 error: could not run steps: step e2e-cmd failed: could not wait for template instance to be ready: failed to create objects: rolebindings.authorization.openshift.io "e2e-cmd-image-puller" already exists
rolebindings.authorization.openshift.io "e2e-cmd-namespace-admins" already exists

/retest

@wking
Copy link
Member Author

wking commented Apr 16, 2020

Same e2e-cmd error again.

Copy link
Member

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: soltysh, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 20, 2020
@openshift-bot
Copy link
Contributor

/retest

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

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@wking wking changed the title pkg/cli/admin/upgrade: Warn when --force is used Bug 1826533: pkg/cli/admin/upgrade: Warn when --force is used Apr 21, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. label Apr 21, 2020
@openshift-ci-robot
Copy link

@wking: This pull request references Bugzilla bug 1826533, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

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

In response to this:

Bug 1826533: pkg/cli/admin/upgrade: Warn when --force is used

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-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Apr 21, 2020
@wking
Copy link
Member Author

wking commented Apr 22, 2020

/retest

@openshift-bot
Copy link
Contributor

/retest

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

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

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

@openshift-merge-robot openshift-merge-robot merged commit be477e3 into openshift:master Apr 22, 2020
@openshift-ci-robot
Copy link

@wking: An error was encountered searching for bug 1826533 on the Bugzilla server at https://bugzilla.redhat.com:

Get https://bugzilla.redhat.com/rest/bug/1826533?api_key=CENSORED: dial tcp 209.132.183.69:443: i/o timeout
Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 1826533: pkg/cli/admin/upgrade: Warn when --force is used

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 warn-on-force branch April 22, 2020 16:38
wking added a commit to wking/oc that referenced this pull request Oct 13, 2023
We've been warning folks not to use this since at least 7a5d837
(pkg/cli/admin/upgrade: Warn when --force is used, 2020-04-16, openshift#387).
But folks are still tempted to use it sometimes.  To protect folks
from the temptation, drop the option.  Folks who are willing to take
on all the 'force: true' risk (like QE testing unsigned CI builds) can
use 'oc patch ...' to update ClusterVersion's spec more directly.
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.

None yet

5 participants