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

Log ipset command output on failure #6705

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Sep 30, 2024

The error returned from Cmd.Run is not very useful, for example, "error destroying ipset ANTREA-POL-F7B29A365E132446-4: exit status 1".

Ths patch adds the command's output to the error, for example, "error destroying ipset ANTREA-POL-4F5505D534DEB0EF-4, err: exit status 1, output: ipset v7.19: Set cannot be destroyed: it is in use by a kernel component".

For #6706

The error returned from `Cmd.Run` is not very useful, for example,
"error destroying ipset ANTREA-POL-F7B29A365E132446-4: exit status 1".

Ths patch adds the command's output to the error, for example,
"error destroying ipset ANTREA-POL-4F5505D534DEB0EF-4, err: exit status
1, output: ipset v7.19: Set cannot be destroyed: it is in use by a kernel
component".

Signed-off-by: Quan Tian <[email protected]>
@tnqn tnqn added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Sep 30, 2024
@tnqn tnqn marked this pull request as ready for review September 30, 2024 15:03
Copy link
Contributor

@hongliangl hongliangl left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas
Copy link
Contributor

/skip-all

@antoninbas antoninbas merged commit 1dad03b into antrea-io:main Sep 30, 2024
49 of 58 checks passed
@tnqn tnqn deleted the ipset-error branch October 8, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants