opennetworkinglab / ngsdn-tutorial

Hands-on tutorial to learn the building blocks of the Next-Gen SDN architecture
https://www.opennetworking.org/ng-sdn/
Apache License 2.0
321 stars 187 forks source link

Error pushing the netcfg to the controller #113

Open URIB4u opened 1 year ago

URIB4u commented 1 year ago

Hello,

I was trying to push a netcfg file on to my onos controller using the NG-SDN tutorial, I have two onos controllers in the network thus, the little change in the netcfg name. but whenever I call the 'make netcfg' it resulted in the error as shown on the pic below.

Screenshot from 2023-04-25 11-14-59

But when I checked the configuration file from the browser, it shows that the config has been pushed.

Screenshot from 2023-04-25 11-36-53

so I tried to go ahead, since I can see the netcfg in the controller, I built the app and tried installing it. which resulted in a similar error as shown below. Screenshot from 2023-04-25 11-41-50

the curl is not working and I have no idea how to fix it.

please I need help how to work around it, thanks

Usman

URIB4u commented 1 year ago

Hello @Dscano please any idea on how to fix this?

Dscano commented 1 year ago

Hi,

URIB4u commented 1 year ago

Hi,

  • Are you running ONOS within some container?
  • you can push the netcfg also via ONOS REST API, there should be at network config call
  • Whne you push the netcfg the devices are discovered? What you see in the ONOS logs?

Thanks for your response. yes I have a topology with multiple onos controllers running as docker containers, for the containers I did port mapping 6612:8181 and 8112:8101 then 6634:8181 and 8134:8101 I can access the controllers GUI but couldn't see any of the devices.

After I tried pushing the netcfg the devices are not showing in the controller despite that I can see the config as in the above screenshot 2.

Regards

Dscano commented 1 year ago

I think that you are not exposing the port 80 as you can see in the error messages, try to run just one ONOS docker withe the flag --network host (you have to remove the por mapping) i belive that in this way you will be able to push the configuration and see the devices. After that try to use the 2 controller but pay attention to port mapping

URIB4u commented 1 year ago

I think that you are not exposing the port 80 as you can see in the error messages, try to run just one ONOS docker withe the flag --network host (you have to remove the por mapping) i belive that in this way you will be able to push the configuration and see the devices. After that try to use the 2 controller but pay attention to port mapping

Hi, Sorry for the late reply, some other things took me away. i disabled the other controllers and added a port mapping 80:80 but still the curl timeout, the devices are not shown despite if I use URL of the config I can see it through the browser.