Acked-by: Mark Michelson <mmich...@redhat.com>
On 3/22/22 13:37, Vladislav Odintsov wrote:
If rpm is built with libcapng (default), /etc/logrotate.d/ovn
config file user is SEDed in postinstall section with 'ovn ovn'.
If one run logrotate, next error occurs:
```
[root@host ~]# logrotate /etc/logrotate.d/ovn
error: /etc/logrotate.d/ovn:9 unknown user 'ovn'
error: found error in /var/log/ovn/*.log , skipping
```
Replace 'ovn' user with 'openvswitch' to fix the issue.
Signed-off-by: Vladislav Odintsov <odiv...@gmail.com>
---
rhel/ovn-fedora.spec.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rhel/ovn-fedora.spec.in b/rhel/ovn-fedora.spec.in
index 3fb854a37..821eb03cc 100644
--- a/rhel/ovn-fedora.spec.in
+++ b/rhel/ovn-fedora.spec.in
@@ -323,7 +323,7 @@ ln -sf ovn_detrace.py %{_bindir}/ovn-detrace
%if %{with libcapng}
if [ $1 -eq 1 ]; then
sed -i 's:^#OVN_USER_ID=:OVN_USER_ID=:' %{_sysconfdir}/sysconfig/ovn
- sed -i 's:\(.*su\).*:\1 ovn ovn:' %{_sysconfdir}/logrotate.d/ovn
+ sed -i 's:\(.*su\).*:\1 openvswitch openvswitch:'
%{_sysconfdir}/logrotate.d/ovn
fi
%endif
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev