summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-17 07:15:15 +0100
committerGitHub <noreply@github.com>2020-03-17 07:15:15 +0100
commit89f6c1e4115b73d41e775099822688b3433481be (patch)
tree0edaf26ac128c1f6e6fead8e4dfe16dee2d6a36b
parent0d5e2497b68da783d28a6ec50f4caa6c7575f013 (diff)
parentc9c11633e3098ed4e0bdd0b6986e0ea0068315bd (diff)
downloadvyos-documentation-89f6c1e4115b73d41e775099822688b3433481be.tar.gz
vyos-documentation-89f6c1e4115b73d41e775099822688b3433481be.zip
Merge pull request #220 from jestabro/debug-flags
T2132: Document kernel boot parameter 'vyos-config-debug'
-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