Page MenuHomeVyOS Platform

ospfd logs inacessbile for user
Closed, InvalidPublicBUG

Description

The /var/log/frr is inaccessible to a user due to wrong permissions:

ls -ld /var/log/frr
drwxr-x--- 1 frr frr 4096 Jun 20 05:17 /var/log/frr

The user not in frr group:

id
uid=1003(ilya) gid=100(users) groups=100(users),4(adm),6(disk),27(sudo),30(dip),107(vyattacfg),110(frrvty)

The `show log` command not including information from /var/log/frr/*

The only way to get ospfd logs is to use sudo / su and acesss /var/log/frr/* directly.

I think there is should be command like `show logs ospf` to get the ospfd logs.

Details

Version
1.2.6
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

I've not checked later versions. Maybe it was already fixed on 1.2.7 or 1.3/1.4 ?

Viacheslav subscribed.

@Harliff Try 1.2.7/1.3 it was fixed with commit https://github.com/vyos/vyos-build/pull/138/files#diff-c7d29a506307d9cf8d86c3cd3f65ca4e4058ea442cacdf9a89d2485b56c7417aR67
T2061

All FRR logs you can find with:

show log
show log all

For example:

vyos@r4-1.3:~$ show log all | match ospf | tail -n 7
Jun 23 14:01:57 r4-1 watchfrr[799]: ospf6d state -> up : connect succeeded
Jun 23 14:02:04 r4-1 ospf6d[867]: SPF: Scheduled in 0 msec
Jun 23 14:02:04 r4-1 ospf6d[867]: SPF processing: # Areas: 1, SPF runtime: 0 sec 9 usec, Reason: R+, L+
Jun 23 14:02:05 r4-1 ospf6d[867]: SPF: Scheduled in 0 msec
Jun 23 14:02:05 r4-1 ospf6d[867]: SPF processing: # Areas: 1, SPF runtime: 0 sec 13 usec, Reason: L+
Jun 23 14:02:05 r4-1 ospf6d[867]: SPF: Scheduled in 0 msec
Jun 23 14:02:05 r4-1 ospf6d[867]: SPF processing: # Areas: 1, SPF runtime: 0 sec 28 usec, Reason: L+
vyos@r4-1.3:~$