Occasionally the Python venv can get in an inconsistent state. In this case, the easiest solution is to delete the environment and create it again. Symptoms of a broken venv can include errors during provisioning like:
With tpaexec installed in the default location, to create a virtual environment, run:
Strange AWS errors regarding credentials
If the time and date of the TPA server isn't correct, during provisioning, you can get AWS errors similar to this:
Solution: Set the time and date correctly.
Logging
By default, all tpaexec logging is saved in the log file <clusterdir>/ansible.log.
To change the log file location, set the environment variable ANSIBLE_LOG_PATH to the desired location. For example:
To increase the verbosity of logging, add -v/-vv/-vvv/-vvvv/-vvvvv to the tpaexec command line:
Cluster test
An easy way to smoke test an existing cluster is to run:
This command does a functional test of the cluster components, followed by a performance test of the cluster using pgbench. As pgbench can take a while to complete, you can omit benchmarking by running:
TPA server test
To check the installation of the TPA server, run:
Including or excluding specific tasks
When re-running a tpaexec provision or deploy after a failure or when running
tests, it can sometimes be useful to miss out tasks using TPA's task
selection mechanism.