ngsdn-tutorial icon indicating copy to clipboard operation
ngsdn-tutorial copied to clipboard

Error pushing the netcfg to the controller

Open URIB4u opened this issue 2 years ago • 5 comments
trafficstars

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 avatar Apr 25 '23 09:04 URIB4u

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

URIB4u avatar Apr 25 '23 11:04 URIB4u

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?

Dscano avatar Apr 25 '23 12:04 Dscano

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

URIB4u avatar Apr 25 '23 13:04 URIB4u

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

Dscano avatar Apr 25 '23 13:04 Dscano

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.

URIB4u avatar May 08 '23 10:05 URIB4u