Page MenuHomeVyOS Platform

Ensure graceful shutdown of vyos-http-api
Closed, ResolvedPublicBUG

Description

The current mechanism of systemd restart/stop is to send SIGTERM (systemd default) to the process (vyos-http-api sytemd setting), which does not guarantee a clean exit since python has no default handler for SIGTERM. Consequently, configsession does not call teardown session from del, polluting the unionfs hierarchy. Changing the systemd KillSignal to SIGINT will address the issue with configsession, however, this will leave a (non-fatal) warning

ResourceWarning: unclosed <socket ...

from python3-bottle before version 0.13-dev (still unreleased fix).

Evaluate the best solution, to enure graceful shutdown/restart.

Details

Difficulty level
Normal (likely a few hours)
Version
vyos-1.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Improvement (missing useful functionality)

Event Timeline

jestabro created this task.
jestabro created this object in space S1 VyOS Public.
jestabro updated the task description. (Show Details)
erkin set Issue type to Improvement (missing useful functionality).Aug 30 2021, 7:05 AM