Page MenuHomeVyOS Platform

Cannot configure syslog on 1.2.0-rolling+201904260337
Closed, ResolvedPublicBUG

Description

Attempting to configure anything related to syslog results in an error and commit failure:

[email protected]:~$ conf
[edit]
[email protected]# set system sys
sysctl  syslog
[edit]
[email protected]# set system syslog host 192.168.1.30 facility all level
Possible completions:
   emerg        Emergency messages
   alert        Urgent messages
   crit         Critical messages
   err          Error messages
   warning      Warning messages
   notice       Messages for further investigation
   info         Informational messages
   debug        Debug messages
   all          Log everything


[edit]
[email protected]uter0# set system syslog host 192.168.1.30 facility all level info
[edit]
[email protected]# show system syslog
+host 192.168.1.30 {
+    facility all {
+        level info
+    }
+}
[edit]
[email protected]# commit
[ system syslog ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/syslog.py", line 293, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/syslog.py", line 282, in apply
    if not os.path.exits('/var/run/rsyslogd.pid'):
AttributeError: 'module' object has no attribute 'exits'

[[system syslog]] failed
Commit failed

Details

Difficulty level
Easy (less than an hour)
Version
1.2.0-rolling+201904260337
Why the issue appeared?
Implementation mistake

Event Timeline

https://github.com/vyos/vyos-1x/commit/d654990111894c0f89ca4141862775ddd7a22b76

Already fixed by @hagbard and deployed into current rolling release.

Please update.

Problem does not exist on crux branch.

c-po assigned this task to hagbard.
c-po triaged this task as High priority.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.