Open sajith opened 1 month ago
Ok, I finally understood what is going on. I was running Docker in rootless mode, and that seems to affect mininet container's ability to load kernel modules.
https://docs.docker.com/engine/security/rootless/
I switched to Docker "rootful" mode, and that seems to solve the problem.
$ docker logs mininet
Inserting openvswitch module.
/etc/openvswitch/conf.db does not exist ... (warning).
Creating empty database /etc/openvswitch/conf.db.
Starting ovsdb-server.
Configuring Open vSwitch system IDs.
Starting ovs-vswitchd.
Enabling remote OVSDB managers.
Now the new problem is that kytos-sdx containers keep restarting.
$ docker logs amlight
Starting enhanced syslogd: rsyslogdrsyslog startup failure, child did not respond within startup timeout (60 seconds)
already started.
/etc/openvswitch/conf.db does not exist ... (warning).
Creating empty database /etc/openvswitch/conf.db.
Starting ovsdb-server.
Configuring Open vSwitch system IDs.
Starting ovs-vswitchd.
Enabling remote OVSDB managers.
Starting Kytos controller in a tmux session: done
tail: cannot open '/var/log/syslog' for reading: No such file or directory
tail: no files remaining
The container keeps restarting, and the above log messages keep repeating.
These lines are troublesome:
Upon commenting them out, I was able to get things running with docker compose restart
. I could also get a response out of http://0.0.0.0:{port}/api/kytos/topology/v3/switches
. I also had to do docker restart tenet
once, because it errored out the first time.
The trouble with rsyslogd seems to be a real one; I don't know who should handle that.
The trouble with kernel module is one of my own making. I could add these to a troubleshooting section in https://sdx-docs.readthedocs.io/en/latest/sdx_deploy_single_server.html. Assigning this issue to myself for now.
This perhaps is a question to @italovalcy rather than an issue.
I am following https://sdx-docs.readthedocs.io/en/latest/sdx_deploy_single_server.html. I did a
docker compose up
. Nowcurl -s http://0.0.0.0:8181/api/kytos/topology/v3/switches
etc gets a response of{"switches":{}}
.This might be the problem:
I am running this on Debian 12.7, on x86_64 hardware. I have not made any changes to the compose spec. What could be the problem?