PERMISSION_DENIED error while update configure in Tofino.

66 views
Skip to first unread message

남석현

unread,
Jul 17, 2020, 10:39:32 AM7/17/20
to P4 brigade
Hi, I'm using Tofino Webedge100bf-32 switch. Recently, I installed Stratum in my switch.
But I want to change the p4 program of stratum, so I tried two ways.
First, I tried to run P4Runtime with my p4 configure file, and I tried to run update_config.py in Stratum/hal/bin/barefoot. 
In both cases, I get the same error. The error code is PERMISSIO_DENIED.
How can I fix this problem?

Thanks a lot.

Brian O'Connor

unread,
Jul 17, 2020, 11:49:41 AM7/17/20
to 남석현, P4 brigade
Have you confirmed that you are the master for the switch?
For example, by sending a master arbitration update:
https://p4.org/p4runtime/spec/master/P4Runtime-Spec.html#sec-master-arbitration-update

Also, which device ID are you using? BF-SDE default to 0, Stratum uses 1

If that doesn't work, please provide a little more details about the messages you are sending to/from the switch.

Thanks!
Brian

--
You received this message because you are subscribed to the Google Groups "P4 brigade" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-p4+...@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-p4/8f1a95b0-3a50-4674-b879-d1e3c4a47b27o%40onosproject.org.

남석현

unread,
Jul 17, 2020, 12:36:00 PM7/17/20
to P4 brigade, 2012ob...@gmail.com
Oh, thanks. 
I changed election-id to 1,1 and it works.
But I get another error.

here is my command and error message.

$ ./p4runtime-sh-docker --grpc-addr 192.168.1.8:28000 --device-id 1 --election-id 1,1 --config ~/tofino/p4info.txt,int.bin

$ CRITICAL:root:Error when setting config
$ CRITICAL:root:P4Runtime RPC error (UNKNOWN): Error without message at stratum/hal/lib/common/p4_service.cc:365

I wrote p4info.txt and make int bin with tofino.py inside p4runtime-shell.
In switch, I installed Stratum and I run it with next command.

$ start-stratum.sh --bf_sim -bf_switchd_background=false

How can I fix my problem? Thanks a lot.


2020년 7월 18일 토요일 오전 12시 49분 41초 UTC+9, Brian O'Connor 님의 말:
Have you confirmed that you are the master for the switch?
For example, by sending a master arbitration update:
https://p4.org/p4runtime/spec/master/P4Runtime-Spec.html#sec-master-arbitration-update

Also, which device ID are you using? BF-SDE default to 0, Stratum uses 1

If that doesn't work, please provide a little more details about the messages you are sending to/from the switch.

Thanks!
Brian

On Fri, Jul 17, 2020 at 10:39 AM 남석현 <2012ob...@gmail.com> wrote:
Hi, I'm using Tofino Webedge100bf-32 switch. Recently, I installed Stratum in my switch.
But I want to change the p4 program of stratum, so I tried two ways.
First, I tried to run P4Runtime with my p4 configure file, and I tried to run update_config.py in Stratum/hal/bin/barefoot. 
In both cases, I get the same error. The error code is PERMISSIO_DENIED.
How can I fix this problem?

Thanks a lot.

--
You received this message because you are subscribed to the Google Groups "P4 brigade" group.
To unsubscribe from this group and stop receiving emails from it, send an email to briga...@onosproject.org.
Reply all
Reply to author
Forward
0 new messages