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)