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

Remove error logging for deleteFromNetwork call #83

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

Luap99
Copy link
Contributor

@Luap99 Luap99 commented Dec 3, 2020

While working on containers/podman#8571 I noticed that calling deleteFromNetwork
logs the same error twice. It errors for example if the iptables rules do
not exists and create a very verbose error. Since the error is returned
I do not see any point in logging it. The caller should decide if the
error should be logged or not.

It is super confusing for users to get a error logged when they have no
control to change anything. In case of containers/podman#8571 the user would only want
to call this if the iptables rules are flushed, getting a error in this case
is super confusing.

@openshift-ci-robot
Copy link

@Luap99: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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 dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Dec 3, 2020
@openshift-ci-robot
Copy link

@Luap99: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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.

@Luap99
Copy link
Contributor Author

Luap99 commented Dec 3, 2020

See containers/podman#8571 (comment) for a example error output.

@rhatdan
Copy link
Contributor

rhatdan commented Dec 3, 2020

/approve
LGTM
@haircommander @vrothberg @giuseppe @umohnani8 @mrunalp PTAL

@rhatdan rhatdan removed the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Dec 3, 2020
@rhatdan
Copy link
Contributor

rhatdan commented Dec 3, 2020

@saschagrunert PTAL

@rhatdan rhatdan added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: Luap99, rhatdan

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

@umohnani8
Copy link
Member

LGTM, needs a rebase though

While working on podman#8571 I noticed that calling `deleteFromNetwork`
logs the same error twice. For example it errors if the iptables rules do
not exists and this creates a very verbose error. Since the error is returned
I do not see any point in logging it. The caller should decide if the
error should be logged or not.

It is super confusing for users to get a error logged when they have no
control to change anything. In case of podman#8571 the user would only want
to call this if the iptables rules are flushed, getting a error in this case
is super confusing.

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99 Luap99 force-pushed the drop-error-logging branch from 6128d1e to acc88df Compare December 3, 2020 20:14
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@vrothberg
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 4, 2020
@openshift-merge-robot openshift-merge-robot merged commit b6cbe99 into cri-o:master Dec 4, 2020
@Luap99 Luap99 deleted the drop-error-logging branch December 4, 2020 10:55
Luap99 pushed a commit to Luap99/libpod that referenced this pull request Jan 14, 2021
The changes from cri-o/ocicni#83 are needed
to improve the user experience when using the new network reload command.

see: containers#8571 (comment)

Signed-off-by: Paul Holzinger <[email protected]>
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants