Page MenuHomeVyOS Platform

VPP: Report interface initialisation failures in system log and op-mode
In progress, HighPublic

Description

If a VPP interface can’t be brought to its configured state during boot, the operator isn’t told which interface failed or why. The failure should be reported in the system log and in op-mode, with the interface name and the reason.

Current behaviour:

  1. The VPP config is rejected at boot (for example, a configured NIC is missing). The whole vpp node isn’t applied, which is fine, but:
    • The error (Error: eth1 interface does not exist in the system) is lost, because the boot config loader drops the commit output when the commit fails.
    • show interfaces vpp prints VPP interfaces not configured.
  1. vpp.py fails during initialisation. The logged error doesn’t name the interface. Non-API errors appear only as a traceback, and the rollback doesn’t run. For example, lcp_pair_add() can fail with AttributeError when the interface isn’t in VPP.
  1. An interface ends up in the wrong state after boot (for example, a VLAN admin down although it isn’t disabled). show interfaces vpp shows only down, and nothing is logged.

Also worth fixing while working on this:

If VPP isn’t running, show interfaces vpp waits about 5 seconds and fails with a traceback. It should print a clear message instead.

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

natali-rs1985 changed the task status from Open to In progress.
natali-rs1985 triaged this task as High priority.