summaryrefslogtreecommitdiff
path: root/docs/contributing/development.rst
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-03-16 20:58:09 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-03-16 20:58:09 -0500
commitc9c11633e3098ed4e0bdd0b6986e0ea0068315bd (patch)
tree479460fb406a700d31a0075fa9db42ad767a63ef /docs/contributing/development.rst
parent5333fb2ed54144a03ea09fbb7be373b7c12c0099 (diff)
downloadvyos-documentation-c9c11633e3098ed4e0bdd0b6986e0ea0068315bd.tar.gz
vyos-documentation-c9c11633e3098ed4e0bdd0b6986e0ea0068315bd.zip
T2132: Document kernel boot parameter 'vyos-config-debug'
Diffstat (limited to 'docs/contributing/development.rst')
-rw-r--r--docs/contributing/development.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/contributing/development.rst b/docs/contributing/development.rst
index 009e84f7..0a8967d5 100644
--- a/docs/contributing/development.rst
+++ b/docs/contributing/development.rst
@@ -673,6 +673,34 @@ Migrating old CLI
- None
- All logic should be in the scripts
+Debugging
+=========
+
+There are two flags available to aid in debugging configuration scripts.
+Since configuration loading issues will manifest during boot, the flags are
+passed as kernel boot parameters.
+
+Kernel boot parameters
+----------------------
+
+``vyos-debug``
+^^^^^^^^^^^^^^
+
+Adding the parameter ``vyos-debug`` to the linux boot line will produce
+timing results for the execution of scripts during commit. If one is seeing
+an unexpected delay during manual or boot commit, this may be useful in
+identifying bottlenecks. The internal flag is ``VYOS_DEBUG``, and is found in
+vyatta-cfg_. Output is directed to ``/var/log/vyatta/cfg-stdout.log``.
+
+``vyos-config-debug``
+^^^^^^^^^^^^^^^^^^^^^
+
+During development, coding errors can lead to a commit failure on boot,
+possibly resulting in a failed initialization of the CLI. In this
+circumstance, the kernel boot parameter ``vyos-config-debug`` will ensure
+access to the system as user ``vyos``, and will log a Python stack trace to
+``/tmp/boot-config-trace``.
+
Continuous Integration
======================
@@ -701,5 +729,6 @@ http://dev.packages.vyos.net/repositories/.
.. _`IPv4, IPv6`: https://github.com/vyos/vyos-1x/tree/current/interface-definitions/include/address-ipv4-ipv6.xml.i
.. _`VLAN (VIF)`: https://github.com/vyos/vyos-1x/tree/current/interface-definitions/include/vif.xml.i
.. _`MAC address`: https://github.com/vyos/vyos-1x/tree/current/interface-definitions/include/interface-mac.xml.i
+.. _vyatta-cfg: https://github.com/vyos/vyatta-cfg
.. include:: ../common-references.rst