Red Hat Bugzilla – Bug 1254616
Provider systemd is not functional on this host
Last modified: 2017-06-01 01:10:09 EDT
I am running puppet to enable or disable services using the systemd provider and I am getting the following error:
Error: /Stage[main]/Time::Service/Service[ntpd.service]: Provider systemd is not functional on this host
When I run it manually e.g. by executing:
systemctl enable ntpd.service
it works fine:
Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service
This is a chroot setup, so puppet runs within the chroot. Within the chroot the directory /run/systemd/system does not exist, but now seems to be required by:
confine :exists => "/run/systemd/system"
I found this problem too when using diskimage-builder in upstream nodepool to build fedora23 images.
I opened  and created  to see what we can do about this
Created attachment 1103692 [details]
workaround for the systemd confine
I have used this to successfully run puppet in a chroot on Fedora
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Still appears on F25. Not sure if your patch ever made it to the package.
puppet-4.2.1-5.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8ad8d1bd86
Thanks for sending the patch upstream, I've applied it to the Fedora 25 branch. F26 onwards should already contain it.
puppet-4.2.1-5.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8ad8d1bd86
puppet-4.2.1-5.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.