Page MenuHomePhabricator

Puppet - Error: /Stage[main]/Apparmor/Service[apparmor]: Provider init is not functional on this host
Closed, ResolvedPublic

Description

Under the puppet 4 agent ubuntu trusty hosts emit Error: /Stage[main]/Apparmor/Service[apparmor]: Provider init is not functional on this host during a puppet run. This error does not break the puppet run, nor trigger a "puppet last run" alert. Still, it should be addressed.

Interestingly in modules/apparmor/manifests/init.pp the apparmor service explicitly specifies init as the provider. Could this be removed to let puppet select the provider automatically?

Event Timeline

herron triaged this task as Medium priority.Jan 2 2018, 10:38 PM
herron created this task.

I noticed this on the labvirts and labcontrol servers this morning too. I believe there is no reason for the init specification.

Ok, I'll prep a patch to remove the provider attribute

Change 401748 had a related patch set uploaded (by Herron; owner: Herron):
[operations/puppet@production] apparmor: remove service provider attribute

https://gerrit.wikimedia.org/r/401748

Change 401748 merged by Herron:
[operations/puppet@production] apparmor: remove service provider attribute

https://gerrit.wikimedia.org/r/401748

herron claimed this task.

Looking better now!

Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for labtestvirt2001.codfw.wmnet
Notice: /Stage[main]/Base::Environment/Tidy[/var/tmp/core]: Tidying 0 files
Info: Applying configuration version '1514997324'
Notice: Applied catalog in 9.52 seconds