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

Improve error reporting when using P4Runtime #584

Open
ccascone opened this issue Apr 12, 2018 · 0 comments
Open

Improve error reporting when using P4Runtime #584

ccascone opened this issue Apr 12, 2018 · 0 comments

Comments

@ccascone
Copy link
Member

ccascone commented Apr 12, 2018

For example, these are the messages shown in the simple_switch_grpc log when trying to remove a group unsuccessfully:

[23:05:35.526] [bmv2] [E] [thread 13223] Error when trying to remove group 0 from action profile 'next.ecmp_selector'
[23:05:35.526] [bmv2] [E] [thread 13223] [P4Runtime] Error when deleting group on target

While the P4Runtime server reports a generic UNKNOWN error.

There's no trace of the actual reason why the remove operation was unsuccessful. However, when performing the same operation using the Thrift CLI, the following message is printed on screen:

RuntimeCmd: act_prof_delete_group FabricIngress.next.ecmp_selector 0
Invalid table operation (GRP_STILL_USED)

It seems BMv2 already defines detailed error codes. It would be helpful to have the same codes being printed on the log and reported via P4Runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants