365
365
Apparently Django needs a lot of debugging ;)
368
Introspecting regiond and clusterd
369
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
371
By default, the ``regiond``, ``regiond2``, and ``clusterd`` services
372
(when run from the tree) start an introspection service. You can connect
373
to these from the terminal to get a REPL-like environment *inside* the
376
There's a convenient script to help with this:
378
.. code-block:: console
380
$ utilities/introspect --help
381
usage: introspect [-h] service
383
Connect to a regiond's or clusterd's introspection service.
385
positional arguments:
386
service The name of a MAAS service to introspect.
387
Choose from: clusterd, regiond, regiond2
390
-h, --help show this help message and exit
392
.. code-block:: console
394
$ utilities/introspect regiond
396
.------------------------------------------------------
398
| Welcome to MAAS's Introspection Shell.
400
| This is the REGION.
406
Bear in mind that commands are evaluated **in the reactor thread**. If
407
you execute a blocking call, Twisted's reactor will *freeze* until that
408
call returns. You won't even be able to interact via the introspection
409
service because that relies upon the reactor!
368
412
Adding new dependencies
369
413
=======================