- ``targets``: what hosts to run on; this is a dictionary mapping
hosts to ssh host keys, like:
"username@hostname.example.com: ssh-rsa long_hostkey_here"
- It is possible to configure your installation so that if the targets line
- and host keys are omitted and teuthology is run with the --lock option,
- then teuthology will grab machines from a pool of available
- test machines.
- ``roles``: how to use the hosts; this is a list of lists, where each
entry lists all the roles to be run on a single host. For example, a
single entry might say ``[mon.1, osd.1]``.
./virtualenv/bin/teuthology example.yaml
+It is possible to configure installation so that specifying targets and host
+keys can be omitted. Teuthology is run with the ``--lock`` option which locks
+the targets based on ``roles`` in YAML. Teuthology grabs machines from a pool of
+available test machines; but since most times machines are busy, you might have
+to wait until they are free or else command fails due to lack of available
+machines. To avoid this you can specify ``--block`` with ``--lock`` which will
+make teuthology retry until it finds and locks required machines.
+
You could also pass the ``-v`` option for more verbose execution. See
``teuthology --help`` for more options.
You can override this with the ``--owner`` option when running
teuthology or teuthology-lock.
-With teuthology-lock you can also add a description, so you can
+With ``teuthology-lock`` you can also add a description, so you can
remember which tests you were running. This can be done when
locking or unlocking machines, or as a separate action with the
``--update`` option. To lock 3 machines and set a description, run::
interactive-on-error: true
as a config file for teuthology will make that possible. With that
-option, any *task* that fails, will have the ``interactive`` task
+option, any *task* that fails will have the ``interactive`` task
called after it. This means that before any cleanup happens, you get a
chance to inspect the system -- both through Teuthology and via extra
-SSH connections -- and the cleanup completes only when you choose so.
+SSH connections -- and the cleanup completes only when you choose.
Just exit the interactive Python session to continue the cleanup.
You can enable interactive-on-error with the ``teuthology`` command option