
The test_loop function was only gracefully interrupted with a keyboard interrupt before. This is fine for interactive testing, but in an automated scenario the script may be running in the background and need to receive a signal from some other process, such as Ansible. This patch adds a handler for SIGINT and SIGTERM that will allow the current iteration of the loop to finish, then exit the program cleanly by putting the test_loop function into a class. The test_loop function is not refactored other than to add the `stop_now` flag, though the internal variables may be amenable to later refactoring to use the class. Change-Id: I0667d2c7093e2821afdfcea987cec6b58515885f
Team and repository tags
OpenStack-Ansible Operator Tooling
This repository is a collecting point for various scripts and tools which OpenStack-Ansible Developers and Operators have found to be useful and want to share and collaboratively improve.
The contents of this repository are not strictly quality managed and are only tested by hand by the contributors and consumers. Anyone using the tooling is advised to very clearly understand what it is doing before using it on a production environment.
Galaxy roles
OpenStack Ansible backup
This role will perform backups for OpenStack-Ansible deployments and it needs to run on the deploy node. It will backup data on container and then synchronize backup files to the deploy node.
Description
Languages
Jinja
82.1%
Shell
12.1%
Python
4.7%
PHP
1.1%