After the Onos connects to the p4 switch, there is a problem that the device is not online. This is the configuration file I wrote to the Onos


@lq1

there is a similar thread here, please take a look ONOS+Stratum+P4 - #3 by DavideS

Best
Davide

Now this package “org.stratumproject.fabric.montara_sde_9_7_0” is compiled with maven, because I use a higher version of onos, only support bazel tool compilation, now I use bazel tool to build my own definition of APP, similar to this application “org.stratumproject.fabric.montara_sde_9_7_0”, However, the delivery was unsuccessful, and the error is the problem in the picture above.

Hi @lq1

could you please share the onos logs? because there is displayed everything.

This is all the onos logs:

2022-11-17T23:30:39,531 | WARN | features-3-thread-1 | FabricPipeconfLoader | 239 - org.onosproject.onos-pipelines-fabric-impl - 3.0.0.SNAPSHOT | Unable to build pipeconf at p4c-out/fabric-mlnx/spectrum/default/ because file is missing: spectrum.bin
2022-11-17T23:30:39,792 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-bng (fingerprint=f4:e4:13:34:16:98:2c:0e)
2022-11-17T23:30:39,792 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-full (fingerprint=32:d9:f1:6a:8a:71:e6:d0)
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-int (fingerprint=fb:7f:78:48:5a:bc:cb:dc)
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-spgw-int (fingerprint=4c:ea:33:c6:d2:e3:f9:ec)
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric-spgw (fingerprint=69:b9:43:4b:26:30:13:9d)
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | PiPipeconfManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | New pipeconf registered: org.onosproject.pipelines.fabric (fingerprint=07:bf:76:0d:51:b4:37:20)
2022-11-17T23:30:39,793 | INFO | features-3-thread-1 | FabricPipeconfLoader | 239 - org.onosproject.onos-pipelines-fabric-impl - 3.0.0.SNAPSHOT | Started
2022-11-17T23:30:39,795 | INFO | features-3-thread-1 | FabricPipeconfLoader | 239 - org.onosproject.onos-pipelines-fabric-impl - 3.0.0.SNAPSHOT | Started
2022-11-17T23:30:39,798 | INFO | features-3-thread-1 | CommandExtension | 54 - org.apache.karaf.shell.core - 4.2.14 | Registering commands for bundle org.onosproject.onos-pipelines-fabric-impl/3.0.0.SNAPSHOT
2022-11-17T23:30:39,798 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:30:39,799 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.pipelines.fabric has been activated
2022-11-17T23:30:45,440 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-apps-fwd/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]
2022-11-17T23:30:45,824 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:
2022-11-17T23:30:45,825 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root
2022-11-17T23:30:45,825 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:
2022-11-17T23:30:45,825 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-fwd/3.0.0-SNAPSHOT
2022-11-17T23:30:45,826 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:
2022-11-17T23:30:45,826 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-fwd/3.0.0-SNAPSHOT
2022-11-17T23:30:45,834 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:
2022-11-17T23:30:45,834 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-apps-fwd/3.0.0.SNAPSHOT
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Packet-out only forwarding is disabled
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Forwarding using OFPP_TABLE port is disabled
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. IPv6 forwarding is disabled
2022-11-17T23:30:45,859 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Match Dst MAC Only is disabled
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching Vlan ID is disabled
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 Addresses is disabled
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 DSCP and ECN is disabled
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 Addresses is disabled
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 FlowLabel is disabled
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching TCP/UDP fields is disabled
2022-11-17T23:30:45,860 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching ICMP (v4 and v6) fields is disabled
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Ignore IPv4 multicast packets is disabled
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. record metrics is disabled
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Timeout is configured to 10 seconds
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Priority is configured to 10
2022-11-17T23:30:45,861 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Inherit flow treatment is disabled
2022-11-17T23:30:45,865 | INFO | features-3-thread-1 | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Started
2022-11-17T23:30:45,867 | INFO | features-3-thread-1 | CommandExtension | 54 - org.apache.karaf.shell.core - 4.2.14 | Registering commands for bundle org.onosproject.onos-apps-fwd/3.0.0.SNAPSHOT
2022-11-17T23:30:45,867 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:30:45,868 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.fwd has been activated
2022-11-17T23:30:46,112 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Packet-out only forwarding is disabled
2022-11-17T23:30:46,112 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Forwarding using OFPP_TABLE port is disabled
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. IPv6 forwarding is disabled
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Match Dst MAC Only is disabled
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching Vlan ID is disabled
2022-11-17T23:30:46,113 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 Addresses is disabled
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv4 DSCP and ECN is disabled
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 Addresses is disabled
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching IPv6 FlowLabel is disabled
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching TCP/UDP fields is disabled
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Matching ICMP (v4 and v6) fields is disabled
2022-11-17T23:30:46,114 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Ignore IPv4 multicast packets is disabled
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. record metrics is disabled
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Timeout is configured to 10 seconds
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Flow Priority is configured to 10
2022-11-17T23:30:46,115 | INFO | CM Event Dispatcher (Fire ConfigurationEvent: pid=org.onosproject.fwd.ReactiveForwarding) | ReactiveForwarding | 240 - org.onosproject.onos-apps-fwd - 3.0.0.SNAPSHOT | Configured. Inherit flow treatment is disabled
2022-11-17T23:31:02,965 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-gnmi/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]
2022-11-17T23:31:03,266 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:
2022-11-17T23:31:03,266 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root
2022-11-17T23:31:03,266 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:
2022-11-17T23:31:03,267 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnmi/3.0.0-SNAPSHOT
2022-11-17T23:31:03,267 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:
2022-11-17T23:31:03,268 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnmi/3.0.0-SNAPSHOT
2022-11-17T23:31:03,278 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:
2022-11-17T23:31:03,278 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-gnmi/3.0.0.SNAPSHOT
2022-11-17T23:31:03,284 | INFO | features-3-thread-1 | GnmiDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started
2022-11-17T23:31:03,284 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:31:03,286 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.gnmi has been activated
2022-11-17T23:31:03,290 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-protocols-gnoi/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-api/3.0.0-SNAPSHOT
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-ctl/3.0.0-SNAPSHOT
2022-11-17T23:31:03,564 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-stub/3.0.0-SNAPSHOT
2022-11-17T23:31:03,566 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:
2022-11-17T23:31:03,566 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-api/3.0.0-SNAPSHOT
2022-11-17T23:31:03,567 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-ctl/3.0.0-SNAPSHOT
2022-11-17T23:31:03,568 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-protocols-gnoi-stub/3.0.0-SNAPSHOT
2022-11-17T23:31:03,576 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:
2022-11-17T23:31:03,576 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-protocols-gnoi-stub/3.0.0.SNAPSHOT
2022-11-17T23:31:03,577 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-protocols-gnoi-api/3.0.0.SNAPSHOT
2022-11-17T23:31:03,578 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-protocols-gnoi-ctl/3.0.0.SNAPSHOT
2022-11-17T23:31:03,607 | INFO | features-3-thread-1 | GnoiControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Started
2022-11-17T23:31:03,608 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:31:03,609 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.protocols.gnoi has been activated
2022-11-17T23:31:03,612 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-gnoi/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:
2022-11-17T23:31:03,898 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnoi/3.0.0-SNAPSHOT
2022-11-17T23:31:03,899 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:
2022-11-17T23:31:03,899 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-gnoi/3.0.0-SNAPSHOT
2022-11-17T23:31:03,908 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:
2022-11-17T23:31:03,908 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-gnoi/3.0.0.SNAPSHOT
2022-11-17T23:31:03,938 | INFO | features-3-thread-1 | GnoiDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started
2022-11-17T23:31:03,938 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:31:03,940 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.gnoi has been activated
2022-11-17T23:31:03,955 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-stratum/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]
2022-11-17T23:31:04,279 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:
2022-11-17T23:31:04,279 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root
2022-11-17T23:31:04,279 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:
2022-11-17T23:31:04,280 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-stratum/3.0.0-SNAPSHOT
2022-11-17T23:31:04,280 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:
2022-11-17T23:31:04,281 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-stratum/3.0.0-SNAPSHOT
2022-11-17T23:31:04,289 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:
2022-11-17T23:31:04,289 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-stratum/3.0.0.SNAPSHOT
2022-11-17T23:31:04,319 | INFO | features-3-thread-1 | StratumDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started
2022-11-17T23:31:04,320 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:31:04,322 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.stratum has been activated
2022-11-17T23:31:04,330 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-drivers-barefoot/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:
2022-11-17T23:31:04,633 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-barefoot/3.0.0-SNAPSHOT
2022-11-17T23:31:04,635 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:
2022-11-17T23:31:04,635 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-drivers-barefoot/3.0.0-SNAPSHOT
2022-11-17T23:31:04,643 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:
2022-11-17T23:31:04,643 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-drivers-barefoot/3.0.0.SNAPSHOT
2022-11-17T23:31:04,672 | INFO | features-3-thread-1 | BarefootDriversLoader | 193 - org.onosproject.onos-api - 3.0.0.SNAPSHOT | Started
2022-11-17T23:31:04,673 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:31:04,674 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.drivers.barefoot has been activated
2022-11-17T23:31:35,331 | INFO | onos-store-app-app-activation | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Adding features: onos-apps-p4_connect-pipeconf/[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]
2022-11-17T23:31:35,670 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Changes to perform:
2022-11-17T23:31:35,671 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Region: root
2022-11-17T23:31:35,671 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Bundles to install:
2022-11-17T23:31:35,671 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-p4_connect-pipeconf/3.0.0-SNAPSHOT
2022-11-17T23:31:35,672 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Installing bundles:
2022-11-17T23:31:35,672 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | mvn:org.onosproject/onos-apps-p4_connect-pipeconf/3.0.0-SNAPSHOT
2022-11-17T23:31:35,681 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Starting bundles:
2022-11-17T23:31:35,682 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | org.onosproject.onos-apps-p4_connect-pipeconf/3.0.0.SNAPSHOT
2022-11-17T23:31:35,685 | INFO | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4_connect-pipeconf - 3.0.0.SNAPSHOT | @@@@@@@#$$$$$$$$%%%%%%%%^^^^^^^^^^^
2022-11-17T23:31:35,685 | ERROR | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4_connect-pipeconf - 3.0.0.SNAPSHOT | @##########################%%%%%%%%%%%%
2022-11-17T23:31:35,686 | WARN | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4_connect-pipeconf - 3.0.0.SNAPSHOT | #$%#@%#@$%#$%#@^$%^$%^@!#$@#%&%^&%$^&%$
2022-11-17T23:31:35,689 | INFO | features-3-thread-1 | PipeconfLoader | 248 - org.onosproject.onos-apps-p4_connect-pipeconf - 3.0.0.SNAPSHOT | Started
2022-11-17T23:31:35,690 | INFO | features-3-thread-1 | FeaturesServiceImpl | 13 - org.apache.karaf.features.core - 4.2.14 | Done.
2022-11-17T23:31:35,690 | INFO | onos-store-app-app-activation | ApplicationManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Application org.onosproject.fabric.tofino has been activated
2022-11-17T23:33:14,135 | INFO | onos-gdp-0 | GrpcChannelControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating new gRPC channel grpc://192.168.17.124:28000?device_id=1…
2022-11-17T23:33:14,185 | INFO | onos-gdp-0 | P4RuntimeControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating P4Runtime client for device:openmesh-switch…
2022-11-17T23:33:14,192 | INFO | onos-gdp-0 | GnmiControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating gNMI client for device:openmesh-switch…
2022-11-17T23:33:14,240 | INFO | onos-gdp-0 | GnoiControllerImpl | 224 - org.onosproject.onos-protocols-grpc-ctl - 3.0.0.SNAPSHOT | Creating gNOI client for device:openmesh-switch…
2022-11-17T23:33:14,245 | WARN | onos-gdp-0 | GossipDeviceStore | 196 - org.onosproject.onos-core-dist - 3.0.0.SNAPSHOT | Device device:openmesh-switch does not exist in store
2022-11-17T23:33:14,250 | INFO | onos-gdp-0 | DeviceManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Local role is MASTER for device:openmesh-switch
2022-11-17T23:33:14,253 | WARN | onos-event-dispatch-default0 | ModelCache | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | DeviceID device:openmesh-switch not found as a UiDevice
2022-11-17T23:33:14,255 | WARN | onos-event-dispatch-default0 | ModelCache | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | DeviceID device:openmesh-switch not found as a UiDevice
2022-11-17T23:33:14,256 | INFO | onos-gdp-0 | GeneralDeviceProvider | 229 - org.onosproject.onos-providers-general-device - 3.0.0.SNAPSHOT | Notifying role MASTER (preference 0) for term 1 to device:openmesh-switch
2022-11-17T23:33:14,259 | INFO | onos-gdp-0 | StreamClientImpl | 231 - org.onosproject.onos-protocols-p4runtime-ctl - 3.0.0.SNAPSHOT | Setting mastership on device:openmesh-switch… master=true, newElectionId=20, masterElectionId=null, sessionOpen=false
2022-11-17T23:33:14,269 | INFO | onos-event-dispatch-topology0 | DeviceFlowTable | 196 - org.onosproject.onos-core-dist - 3.0.0.SNAPSHOT | Activating term 1 for device device:openmesh-switch
2022-11-17T23:33:14,284 | INFO | onos-topo-build-1 | TopologyManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Topology DefaultTopology{time=21634551595911, creationTime=1668756794283, computeCost=83784, clusters=0, devices=0, links=0} changed
2022-11-17T23:33:14,291 | WARN | MeterDriverProvider-0 | P4RuntimeMeterProgrammable | 225 - org.onosproject.onos-protocols-grpc-utils - 3.0.0.SNAPSHOT | Missing pipeconf for device:openmesh-switch, cannot perform getMeterFeatures()
2022-11-17T23:33:14,311 | INFO | onos-gdp-0 | DeviceManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Device device:openmesh-switch registered
2022-11-17T23:33:14,377 | INFO | onos-gdp-3 | DeviceManager | 197 - org.onosproject.onos-core-net - 3.0.0.SNAPSHOT | Role has been acknowledged for device device:openmesh-switch
2022-11-17T23:33:34,878 | INFO | qtp1944491263-135 | UiSharedTopologyModel | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | Registering topology session {UiTopoSession for user }
2022-11-17T23:33:34,941 | WARN | qtp1944491263-135 | Topo2OverlayCache | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | added overlay: UiTopo2Overlay{id=“traffic-2-overlay”, class=“Traffic2Overlay”}
2022-11-17T23:33:34,949 | INFO | qtp1944491263-135 | UiWebSocket | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | GUI client connected – user
2022-11-17T23:33:34,953 | INFO | qtp1944491263-559 | UiWebSocket | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | Session token authenticated
2022-11-17T23:33:35,034 | WARN | qtp1944491263-558 | UiWebSocket | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | No GUI message handler for type alarmTopovDisplayStart
2022-11-17T23:33:40,484 | WARN | qtp1944491263-558 | UiWebSocket | 202 - org.onosproject._onos-gui2-base-jar - 3.0.0.SNAPSHOT | No GUI message handler for type alarmTopovDisplayStop
2022-11-17T23:41:55,165 | WARN | sshd-SshServer1579f084-nio2-thread-2 | ServerSessionImpl | 65 - org.apache.sshd.osgi - 2.5.1 | exceptionCaught(ServerSessionImpl[onos@/127.0.0.1:42944])[state=Opened] InterruptedByTimeoutException: null

Hi,

Cold you specify the command that you run for strating Stratum on the switch? I suppose that you have started the stratum, barefoot applications on ONOS.
The driver in the json , used for de discovery od the device should be "driver": "stratum-tofino".

Hi,

1.The command that run for strating Stratum on the switch is

cd bf-sde-9.3.1
source set_sde.bash
. ./set_sde.bash
./install/bin/bf_kdrv_mod_load $SDE_INSTALL /
$SDE_INSTALL/bin/dma_setup.sh
start-stratum.sh --enable_onlp=false

2.In the onos cli,I only find the device driver “stratum”,no such driver “stratum-tofino” ,so the driver in the json write is “stratum”. when I write the json, I’m also confused about this driver"stratum-tofino" .

Hi,

  1. you are using SDE 9.3.1 while your pipeline seems compiled for the SDE 9.0.0.
  2. I don’t know the content of the script start.stratum.sh but in my case i run stratum version 22.03:
    sudo stratum_bfrt -bf_sde_install /home/tofino/SDE-9.7.0/bf-sde-9.7.0/install -bf_switchd_cfg /usr/share/stratum/tofino_skip_p4.conf -bf_switchd_background=false -enable_onlp=false -chassis_config_file ./chassis_config.pb.txt -experimental_enable_p4runtime_translation -incompatible_enable_bfrt_legacy_bytestring_responses
    Morover, by default the grpc control port exposed by stratum should be 9559. Did you check the version compatibility among stratum version and the sde that you are running? Releases · stratum/stratum · GitHub

Hi,
When I use SDE 9.3.1, it is also the same error. Should it not be a problem in this regard, but may it be a problem in other aspects?

Hi,

Could be tha you may have errors at several levels:

In theory if you are not able to enstablish a connection to the grpc server on your swetch you should see any connection and errors appears periodically in the ONOS/stratum logs. While if you have some issue with pushing the pipeline you should see errors in the logs from onos/stratum.

Hi,

Can I use the code package you sent to compile it into an .oar file using “Maven” or “bazle” to connect to the switch?

Hi,

yes, you can. Those programs are developed according to the ONOS “develop workflow”.

The image below is all ONOS drivers after my startup package “GitHub-Dscano/Basic-tna”, and I wonder why there is no “stratum-tofino” driver in the driver.

@lq1 please try to send compact messages, the stratum driver is ok.
Why did you activate so many apps?, more in detail you activate also all the apps related to control optical devices and also the pipelines.fabric.
Please apply a step by step approach for your troubleshooting.

hi,
The previous reply just showed you all the driver information of ONOS, the following picture is the driver information I started myself, I want to know the “driver” in the “tofino-netcfg.json” configuration file you wrote: “stratum-tofino”, I can’t find it in the ONOS driver.

Hi @lq1,

I checked and stratum-tofino is correct, is just a matter of driver naming. The stratum-driver is enabled by the activation of barefoot driver app . As you can see is an “extension” of barefoot driver. onos/barefoot-drivers.xml at 852081866f6a18dbdc87c2480ecb942f46575cca · opennetworkinglab/onos · GitHub