Description of problem: The puppet package in Fedora 19 changed to use systemd, and as part of that change it now uses "puppetagent.service" to start. In Fedora 18, it used /etc/init.d/puppet to start. The cloud-init package distributed with Fedora 19 does not account for this change and still tries to use "systemctl start puppet.service" which no longer works. This can be seen in the file /usr/lib/python2.7/site-packages/cloudinit/config/cc_puppet.py. This causes cloud-init to not automatically start puppet to not be started on Fedora 19. Version-Release number of selected component (if applicable): Latest How reproducible: Every time Steps to Reproduce: 1. Try to use cloud-init to start puppet. Actual results: Does not start puppet Expected results: Starts puppet Additional info: This should be a very easy change, just modify cc_puppet.py to use "puppetagent.service" instead of "puppet.service".
Created attachment 798072 [details] Revised Fedora-specific patch file This should fix it. This is a drop-in replacement for the existing patch file from the SRPM.
Created attachment 798618 [details] Working patch for starting and enabling The original patch fixed enabling the service but it still would not start. This patch also changes the startup command to use "puppetagent" which should now work to start puppet.
I can confirm the 2nd patch is working and tested, both to enable and start puppet. I rolled a new SRPM/RPM with it and I'm off and running.
cloud-init-0.7.2-6.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cloud-init-0.7.2-6.fc20
cloud-init-0.7.2-6.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cloud-init-0.7.2-6.fc19
Package cloud-init-0.7.2-7.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing cloud-init-0.7.2-7.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-17724/cloud-init-0.7.2-7.fc19 then log in and leave karma (feedback).
cloud-init-0.7.2-7.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/cloud-init-0.7.2-7.fc18
cloud-init-0.7.2-7.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
cloud-init-0.7.2-7.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
cloud-init-0.7.2-7.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
This is now broken again, at least in Fedora 19. A later update to the puppet package reverted to using puppet.service instead of puppetagent.service. While there is still a symbolic link to puppetagent.service in the /usr/lib/systemd/system directory, systemctl will not operate on it. # systemctl enable puppetagent.service Failed to issue method call: No such file or directory ... while this works: # systemctl enable puppet.service ln -s '/usr/lib/systemd/system/puppet.service' '/etc/systemd/system/multi-user.target.wants/puppet.service' Back to cloud-init, the original fix for this issue changed /usr/lib/python2.7/site-packages/cloudinit/config/cc_puppet.py to using puppetagent.service, so that should be backed out and changed to puppet.service. Otherwise cloud-init can not start the puppet service.
FYI, I can confirm this is still a problem in Fedora 20 as well as with the rawhide package cloud-init-0.7.2-8.fc21.src.rpm. Solution is the same - get rid of the puppetagent.service call in favor of puppet.service.
While we are at it, in Fedora 20 the location of the i18n file moved. In the cloud-init-fedora.cfg file it is specified as /etc/sysconfig/i18n, which is no longer correct. The new location in Fedora 20 is /etc/locale.conf.
cloud-init-0.7.2-10.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cloud-init-0.7.2-10.fc20
cloud-init-0.7.2-10.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cloud-init-0.7.2-10.fc19
Package cloud-init-0.7.2-10.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing cloud-init-0.7.2-10.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-7238/cloud-init-0.7.2-10.fc19 then log in and leave karma (feedback).
cloud-init-0.7.2-10.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
cloud-init-0.7.2-10.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.