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

/api/v2/status/services shows ipsec as not running but /api/v1/services does #634

Open
robindbe opened this issue Jan 7, 2025 · 1 comment
Labels
breaking change Requires changes that may breaking existing usage bug Something isn't working

Comments

@robindbe
Copy link

robindbe commented Jan 7, 2025

Describe the bug
A GET on /api/v2/status/services returns the status on all services but I noticed that for IPsec it always returns "status": false while the service is running and tunnels are online. Using the same call from v1 /services does return "status": "running".
The Service status page also shows a green mark.

Expected behavior
The correct status of the ipsec service.

pfSense Version & Package Version:

  • pfSense Version: 24.03
  • Package Version v2.3.1

Affected Endpoints:

  • URL: /api/v2/status/services

Additional context

        {
            "id": 8,
            "name": "ipsec",
            "description": "IPsec VPN",
            "enabled": true,
            "status": false
        },
        {
            "name": "ipsec",
            "description": "IPsec VPN",
            "enabled": true,
            "status": "running"
        },
@jaredhendrickson13
Copy link
Owner

I can reproduce this. Seems like the ipsec service is not recognized by pfSense's is_service_running() function (which is called in v2 specifically) despite it being present in get_services(). I'll need to refactor this endpoint a bit to accommodate some of these services with unconventional parameters.

@jaredhendrickson13 jaredhendrickson13 added bug Something isn't working breaking change Requires changes that may breaking existing usage labels Jan 8, 2025
@jaredhendrickson13 jaredhendrickson13 moved this from Todo to In Progress in pfSense REST API v2.4.0 Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Requires changes that may breaking existing usage bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

2 participants