Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error pushing the netcfg to the controller #113

Open
URIB4u opened this issue Apr 25, 2023 · 5 comments
Open

Error pushing the netcfg to the controller #113

URIB4u opened this issue Apr 25, 2023 · 5 comments

Comments

@URIB4u
Copy link

URIB4u commented Apr 25, 2023

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
Copy link
Author

URIB4u commented Apr 25, 2023

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

@Dscano
Copy link

Dscano commented Apr 25, 2023

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?

@URIB4u
Copy link
Author

URIB4u commented Apr 25, 2023

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
Copy link

Dscano commented Apr 25, 2023

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
Copy link
Author

URIB4u commented May 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants