Creating custom preflight check
Create a custom preflight check to detect and fix specified configuration settings on DataStax Enterprise nodes.
Procedure
-
Create a new Python file in /checks:
cd /checks
touch my_test.py
-
Add the new test to the
all
section of /checks/init.py:__all__ = ['my_test', 'disk', 'blockdev', ...]
-
Add your test to the preflight_check script.
-
Run the preflight check script with the new test:
sudo ./preflight_check [ options ]