Open DavidePrincipi opened 2 months ago
Acceptance tests
/var/lib/nethserver/node/ports.sqlite
DB for each cluster node.*_ports_sequence
are removed.portsadm
can run allocate-ports
and deallocate-ports
actions on the local node agent.Useful commands
Dump the ports.sqlite DB with
podman run -i --rm --volume /var/lib/nethserver/node/state/ports.sqlite:/srv/ports.sqlite:z alpine ash -c 'apk add sqlite ; sqlite3 /srv/ports.sqlite' <<<"SELECT *, 'tcp' FROM TCP_PORTS UNION SELECT *, 'udp' FROM UDP_PORTS;"
The current implementation of TCP and UDP ports allocation has two limitations:
add-module
action, the only way to require more ports is with backup/restore or instance clone.Proposed solution
Alternative solutions
This feature is required. Keeping things as they are makes difficult to install NethVoice and manage the update of applications that increase their port requirements.
See also
Discussion https://mattermost.nethesis.it/nethesis/pl/5s131bmj7jdwzj7gaogukb5z6a