Bug 1220708 - Warning: The unit file, source configuration file or drop-ins of apparmor.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Summary: Warning: The unit file, source configuration file or drop-ins of apparmor.ser...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: AppArmor (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Christian Boltz
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-29 16:02 UTC by Gerald Pfeifer
Modified: 2024-03-04 02:10 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer 2024-02-29 16:02:31 UTC
Running "zypper dup" on Tumbleweed yesterday, I got the following
confusing warnings at the end of the process, both related to AppArmor:

%posttrans(apparmor-abstractions-3.1.7-3.1.noarch) script output:
Warning: The unit file, source configuration file or drop-ins of apparmor.service changed on disk. Run 'systemctl daemon-reload' to reload units.

%posttrans(apparmor-profiles-3.1.7-3.1.noarch) script output:
Warning: The unit file, source configuration file or drop-ins of apparmor.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Running post-transaction scripts 

It's not clear what, or whether there is anything, actually to do for
me as operator here.

Intuitively, should such a restart happen automatically? Or am I really
expected to copy&paste&run those two commands?
Comment 1 Gerald Pfeifer 2024-02-29 16:03:30 UTC
This looks similar to https://bugzilla.suse.com/show_bug.cgi?id=729348
which was about nscd (and reported fixed there).
Comment 2 Christian Boltz 2024-03-01 22:31:37 UTC
This looks like a combination of an old workaround for bnc#853019 (yes, from bnc times) aka boo#853019 in combination with (probably) a change in what the %service_del_postun_without_restart macro does. It seems to do nothing nowadays, while in the past it at least did the systemctl daemon-reload IIRC.

Fortunately there's a better workaround in apparmor.service nowadays which means I could drop the systemctl workaround and switch over to the %service_del_postun macro.

Note: the fix was in %postun of apparmor-parser, which means you'll see the warnings once more on the next update (caused by the currently installed package).

See SR 1154195 for the diff for this bugreport, and SR 1154197 towards Factory (which includes some more changes).
Comment 3 OBSbugzilla Bot 2024-03-01 23:35:06 UTC
This is an autogenerated message for OBS integration:
This bug (1220708) was mentioned in
https://build.opensuse.org/request/show/1154197 Factory / apparmor