tuned: fix dbus conf rules loading issue
Issue: After installing the dbus conf rules, dbus doesn't load them automatically and subsequent start of the service fails with following error ''' File "/usr/lib/python3.11/site-packages/dbus/connection.py", line 634, in call_blocking reply_message = self.send_message_with_reply_and_block( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.22" is not allowed to own the service "com.redhat.tuned" due to security policies in the configuration file ''' Fix: Relaod the dbus conf rules using below command: `killall -HUP dbus-daemon` Change-Id: Ic043b13e4aaa74fa629ec3d7783b180af6aa5861 Signed-off-by: Ankit Jain <ankit-aj.jain@broadcom.com> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/23961 Tested-by: gerrit-photon <photon-checkins@vmware.com> Reviewed-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
This commit is contained in:
parent
5649d883c2
commit
6a39a4c78d
|
@ -1,6 +1,6 @@
|
|||
Name: tuned
|
||||
Version: 2.21.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: A dynamic adaptive system tuning daemon
|
||||
License: GNU GENERAL PUBLIC LICENSE Version 2
|
||||
Group: System/Base
|
||||
|
@ -38,6 +38,7 @@ Requires: linux-python3-perf
|
|||
Requires: irqbalance
|
||||
Requires: systemd
|
||||
Requires: virt-what
|
||||
Requires(post): psmisc
|
||||
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: curl-devel
|
||||
|
@ -96,6 +97,12 @@ pip3 install unittest2
|
|||
make test %{?_smp_mflags}
|
||||
|
||||
%post
|
||||
# After installing the dbus conf rules, dbus doesn't load them automatically
|
||||
# and subsequent start of the service fails
|
||||
# Fix: relaod the dbus conf rules using below command
|
||||
if [ $1 = 1 ] ; then
|
||||
%{_bindir}/killall -HUP dbus-daemon 2>&1 > /dev/null
|
||||
fi
|
||||
%systemd_post tuned.service
|
||||
|
||||
%preun
|
||||
|
@ -149,6 +156,8 @@ make test %{?_smp_mflags}
|
|||
%{_mandir}/man8/scomes.*
|
||||
|
||||
%changelog
|
||||
* Thu May 23 2024 Ankit Jain <ankit-aj.jain@broadcom.com> 2.21.0-3
|
||||
- Fix dbus rule loading issue
|
||||
* Fri Mar 22 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 2.21.0-2
|
||||
- Bump version as a part of dbus upgrade
|
||||
* Tue Jan 23 2024 Roye Eshed <roye.eshed@broadcom.com> 2.21.0-1
|
||||
|
|
Loading…
Reference in New Issue