Issue #9460 has been updated by Josh Cooper. Status changed from Unreviewed to Accepted Priority changed from Normal to High
---------------------------------------- Bug #9460: Puppet agent fails if the PuppetLabs/puppet directory doesn't exist on Windows https://projects.puppetlabs.com/issues/9460 Author: Josh Cooper Status: Accepted Priority: High Assignee: Category: windows Target version: 2.7.x Affected Puppet version: development Keywords: Branch: The puppet install.rb script creates the parent directories under which the puppet agent stores its var, conf, etc directories: <pre> configdir = File.join(Dir::COMMON_APPDATA, "PuppetLabs", "puppet", "etc") ... FileUtils.makedirs(configdir) if InstallOptions.configs </pre> If you run the install script, and then delete the directories later, then puppet agent will not run (though puppet apply and puppet resource do work). Puppet should create the parent directories as necessary. <pre> Z:\work\puppet>puppet agent --server puppetmaster --no-daemonize ... err: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc]/ensure: change from absent to directory failed: Cannot create C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc; parent directory C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet does not exist notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/certs]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/certs]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/private_keys]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/private_keys]: Skipping because of failed dependencies err: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var]/ensure: change from absent to directory failed: Cannot create C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var; parent directory C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet does not exist notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/lib]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/lib]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/client_yaml]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/client_yaml]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/client_data]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/client_data]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/run]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/run]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/log]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/log]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/private]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/private]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/facts]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/facts]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/certificate_requests]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/certificate_requests]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/state]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/state]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/state/graphs]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/state/graphs]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/public_keys]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl/public_keys]: Skipping because of failed dependencies notice: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/clientbucket]: Dependency File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var] has failures: true warning: /File[C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var/clientbucket]: Skipping because of failed dependencies debug: Finishing transaction 130113396 Could not prepare for execution: Got 2 failure(s) while initializing: change from absent to directory failed: Cannot create C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/etc; parent directory C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet does not exist; change from absent to directory failed: Cannot create C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet/var; parent directory C:/Documents and Settings/All Users/Application Data/PuppetLabs/puppet does not exist -- 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.
