stratum / fabric-tna

The SD-Fabric data plane
https://docs.sd-fabric.org/
30 stars 15 forks source link

Install pipeconf app in ONOS #522

Open tisasi001 opened 2 years ago

tisasi001 commented 2 years ago

Hello, I'm trying to install the pipeconf app in ONOS and I get the following output when introducing the command: make pipeconf-install ONOS_HOST=localhost.

root@onos-stratum-2:/home/ubuntu/fabric-tna# make pipeconf-install ONOS_HOST=localhost Installing and activating pipeconf app in ONOS at localhost... curl --fail -sSL --user onos:rocks --noproxy localhost -X POST -H Content-Type:application/octet-stream \ http://localhost:8181/onos/v1/applications?activate=true \ --data-binary @/home/ubuntu/fabric-tna/target/fabric-tna-1.2.0-SNAPSHOT.oar curl: (22) The requested URL returned error: 409 Conflict make: [Makefile:139: pipeconf-install] Error 22

However, the firt time I entered it I got a different message: image But I checked in ONOS CLI typing pipeconfs and none of them appeared: karaf@root onos> pipeconfs 09:49:18 karaf@root onos> summary 09:49:21 node=172.17.0.1, version=2.7.0 clusterId=default nodes=1, devices=0, links=0, hosts=0, SCC(s)=0, flows=0, intents=0

I already installed ONOS version 2.7.0, following this guide.

I already did make build too to install the .oar package and I didn't get any problem: [INFO] Building jar: /mvn-src/target/fabric-tna-1.2.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:51 min [INFO] Finished at: 2022-05-17T09:14:56Z [INFO] ------------------------------------------------------------------------ *** ONOS pipeconf .oar package created succesfully /home/ubuntu/fabric-tna/target/fabric-tna-1.2.0-SNAPSHOT.oar

Do you know which could be my problem? Thank you so much.

tisasi001 commented 2 years ago

UPDATE: Even though the pipeconfs didn't appear I activated the Barefoot drivers: -incompatible_enable_bfrt_legacy_bytestring_responses.

After that I changed the tofino-netcfg.json file and added the IP of the machine where I have stratum running, and the stratum detected it. So I checked the pipeconfs again and now these appear: karaf@root onos> pipeconfs 10:03:49 id=org.onosproject.pipelines.int, behaviors=[PiPipelineInterpreter, Pipeliner, PortStatisticsDiscovery, IntProgrammable], extensions=[P4_INFO_TEXT, BMV2_JSON] id=org.stratumproject.fabric-upf.mavericks_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner, UpfProgrammable], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric-upf-int.mavericks_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner, IntProgrammable, UpfProgrammable], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric-upf.bmv2, behaviors=[PiPipelineInterpreter, Pipeliner, UpfProgrammable], extensions=[P4_INFO_TEXT, BMV2_JSON] id=org.stratumproject.fabric-int.mavericks_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner, IntProgrammable], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric-int.bmv2, behaviors=[PiPipelineInterpreter, Pipeliner, IntProgrammable], extensions=[P4_INFO_TEXT, BMV2_JSON] id=org.stratumproject.fabric.mavericks_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric-int.montara_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner, IntProgrammable], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric-upf.montara_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner, UpfProgrammable], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric-upf-int.montara_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner, IntProgrammable, UpfProgrammable], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric.montara_sde_9_7_0, behaviors=[PiPipelineInterpreter, Pipeliner], extensions=[P4_INFO_TEXT, RAW_DEVICE_CONFIG] id=org.stratumproject.fabric-upf-int.bmv2, behaviors=[PiPipelineInterpreter, Pipeliner, IntProgrammable, UpfProgrammable], extensions=[P4_INFO_TEXT, BMV2_JSON] id=org.stratumproject.fabric.bmv2, behaviors=[PiPipelineInterpreter, Pipeliner], extensions=[P4_INFO_TEXT, BMV2_JSON] id=org.onosproject.pipelines.basic, behaviors=[PiPipelineInterpreter, Pipeliner, PortStatisticsDiscovery], extensions=[P4_INFO_TEXT, BMV2_JSON]

Are these the pipeconfs that I should have?