Issue #4261 has been reported by Jos Boumans. ---------------------------------------- Bug #4261: A2mod can not be depended on in automated runs http://projects.puppetlabs.com/issues/4261
Author: Jos Boumans Status: Unreviewed Priority: Normal Assigned to: Category: Target version: Affected version: 0.25.4 Keywords: Branch: Hi, I've run into an interesting issue (partly known): when using the puppetlabs-apache module, and depending on an a2mod resource, the client does not know how to make sure that a2mod resource is enabled, and therefor does not start the apache service. This is know for the first run, where the definitions of a2mod have not yet been transfered. However, this persists for every *automated* run against. But, when logging in to the client, and running manually: puppetd --verbose --test, the a2mod resource is enabled, the dependency declared as resolved, and the apache service started. This is on Ubuntu 10.04 LTS, with the Puppet 0.25.4 as shipped with that release, running in Amazon EC2 Logs of the puppetmaster (masterhttp & syslog), syslog for the client and a manual run on the client are all attached. Here are the highlights: ### client syslog, automated runs: Jul 16 21:07:20 some-ec2-host puppetd[3394]: (//s_logger/A2mod[usertrack]) Failed to retrieve current state of resource: No ability to determine if a2mod exists Jul 16 21:07:20 some-ec2-host puppetd[3394]: (//apache/A2mod[headers]) Failed to retrieve current state of resource: No ability to determine if a2mod exists Jul 16 21:07:21 some-ec2-host puppetd[3394]: (//apache/Service[httpd]) Dependency a2mod[headers] has 1 failures Jul 16 21:07:21 some-ec2-host puppetd[3394]: (//apache/Service[httpd]) Skipping because of failed dependencies ### client, manual puppetd run: debug: //apache/A2mod[headers]: Changing ensure debug: //apache/A2mod[headers]: 1 change(s) debug: Puppet::Type::A2mod::ProviderA2mod: Executing '/usr/sbin/a2enmod headers' notice: //apache/A2mod[headers]/ensure: created info: //apache/A2mod[headers]: Scheduling refresh of Service[httpd] debug: //s_logger/A2mod[usertrack]: Changing ensure debug: //s_logger/A2mod[usertrack]: 1 change(s) debug: Puppet::Type::A2mod::ProviderA2mod: Executing '/usr/sbin/a2enmod usertrack' notice: //s_logger/A2mod[usertrack]/ensure: created notice: //apache/Service[httpd]: Triggering 'refresh' from 1 dependencies debug: Service[httpd](provider=debian): Executing '/etc/init.d/apache2 stop' debug: Service[httpd](provider=debian): Executing '/etc/init.d/apache2 start' -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
