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

Enabling new Napp while Kytos is running makes the endpoint not being accessible #469

Open
italovalcy opened this issue Apr 12, 2024 · 0 comments
Labels
2024.2 Kytos-ng 2024.2 bug Something isn't working

Comments

@italovalcy
Copy link

If you enable a new Napp while kytos is running, the endpoints of the Napp wont be accessible. Even though you see on the logs that the Napp was enabled and its endpoints were loaded, you cannot submit requests:

# Kytos logs:
Apr 12 20:07:44 bcd69a5b0fea kytos.core.api_server:INFO api_server:429:  Started /api/talitarp/contention_block/v1/contention_block - POST

# Kytos napps list:

root@bcd69a5b0fea:/contention_block# kytos napps list
WARNING Config file /root/.kytosrc not found.
WARNING Creating a new empty config file.

Status |            NApp ID            |                                                                Description
=======+===============================+===========================================================================================================================================
 [ie]  | amlight/coloring:2023.1.0     | NApp to color a network topology
 [ie]  | amlight/kytos_stats:2023.1.0  | Show statistics about flows and tables.
 [ie]  | amlight/sdntrace:2023.1.0     | An OpenFlow Data Path Tracing
 [ie]  | amlight/sdntrace_cp:2023.1.0  | Run tracepaths on OpenFlow in the Control Plane
 [ie]  | kytos/flow_manager:2023.1.0   | Manage switches' flows through a REST API.
 [ie]  | kytos/maintenance:2023.1.0    | This NApp creates maintenance windows, allowing the maintenance of network devices (switch, link, and interface) without receiving alerts.
 [ie]  | kytos/mef_eline:2023.1.0      | NApp to provision circuits from user request
 [ie]  | kytos/of_core:2023.1.0        | OpenFlow Core of Kytos Controller, responsible for main OpenFlow operations.
 [ie]  | kytos/of_lldp:2023.1.0        | Discover network-to-network interfaces (NNIs) using the LLDP protocol.
 [ie]  | kytos/of_multi_table:2023.1.0 | This NApp implements Oplenflow multi tables
 [ie]  | kytos/pathfinder:2023.1.0     | Keeps track of topology changes, and calculates the best path between two points.
 [ie]  | kytos/topology:2023.1.0       | Manage the network topology.
 [ie]  | talitarp/contention_block:1.0 | Napp kytos for lock-type containment

Status: (i)nstalled, (e)nabled
root@bcd69a5b0fea:/contention_block# curl -X POST http://127.0.0.1:8181/api/talitarp/contention_block/v1/contention_block -d '{"xpto": 123}'
{"description":"Method Not Allowed","code":405}root@bcd69a5b0fea:/contention_block#

If you restart Kytos, then it starts working fine.

@italovalcy italovalcy added bug Something isn't working 2024.1 Kytos-ng 2024.1 labels Apr 15, 2024
@viniarck viniarck added 2024.2 Kytos-ng 2024.2 and removed 2024.1 Kytos-ng 2024.1 labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024.2 Kytos-ng 2024.2 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants