Page MenuHomeVyOS Platform

vyos.vyos.vyos_logging_global incompatibility with VyOS1.5 LTS
In progress, LowPublic

Description

There are differences between the VyOS documentation (syslog) and the Ansible documentation for the corresponding module (vyos.vyos.vyos_logging_global). The parameters listed there apparently do not work with v1.5. It appears to be designed for the parameters of v1.4.

When I try to configure the following:

set system syslog local facility all level 'info'
set system syslog local facility local7 level 'debug'
-> Ansible:

  • name: Apply the provided configuration vyos.vyos.vyos_logging_global: config: files: # Not "local"
    • path: /var/log/messages # ? facilities:
      • facility: all severity: info
      • facility: local7 severity: debug

It doesn't work because the module turns it into set system syslog file /var/log/messages facility all level info?

TASK [vyos : Configure syslog] ******************************************************
fatal: [sonny.vyos.eu-west-par-b.ovh.invers.systems]: FAILED! => {"changed": false, "module_stderr": "set system syslog file /var/log/messages facility all level info\r\n\r\n Configuration path: system syslog [file] is not valid\r\n Set failed\r\n\r\n[edit]\r\r\nbastian.albrecht@sonny.vyos.eu-west-par-b.ovh.invers.systems# ", "module_stdout": "", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error"}
However, the documentation of the ansible module states that it is tested with v1.5. I couldn't find anything about this on vyos.dev.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

evgmol changed the task status from Open to In progress.Thu, Jun 11, 7:48 PM
evgmol changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).