Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421207 - app-admin/puppet-2.7.13 : does not create /var/run/puppet
Summary: app-admin/puppet-2.7.13 : does not create /var/run/puppet
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-15 09:07 UTC by Gaetan
Modified: 2012-11-06 19:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gaetan 2012-06-15 09:07:52 UTC
When you emerge app-admin/puppet-2.7.13, the /var/run/puppet (refered in /etc/conf.d/puppet) is not created.

Then daemon fails to start :

"Please make sure PUPPET_PID_DIR is defined and points to a existing directory"

You need to manually "mkdir /var/run/puppet", to make it work.

Is this something expected?

GAëtan


Reproducible: Always

Steps to Reproduce:
1. emerge app-admin/puppet-2.7.13
2. /etc/init.d/puppet start
Actual Results:  
Please make sure PUPPET_PID_DIR is defined and points to a existing directory

Expected Results:  
Started OK.
Comment 1 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2012-06-15 09:12:03 UTC
I can't reproduce it. What's the result of equery f puppet ?
Comment 2 Gaetan 2012-06-15 09:14:57 UTC
equery f puppet
 * Searching for puppet ...
 * Contents of app-admin/puppet-2.7.13:
/etc
/etc/conf.d
/etc/conf.d/puppet
/etc/conf.d/puppetmaster
/etc/init.d
/etc/init.d/puppet
/etc/init.d/puppetmaster
/etc/puppet
/etc/puppet/auth.conf
/etc/puppet/fileserver.conf
/etc/puppet/manifests
/etc/puppet/manifests/.keep_app-admin_puppet-0
/etc/puppet/modules
/etc/puppet/modules/.keep_app-admin_puppet-0
/etc/puppet/puppet.conf
/usr
/usr/bin
/usr/bin/filebucket
/usr/bin/pi
/usr/bin/puppet
/usr/bin/puppetca
/usr/bin/puppetd
/usr/bin/puppetdoc
/usr/bin/puppetmasterd
/usr/bin/puppetqd
/usr/bin/puppetrun
/usr/bin/ralsh
...
/usr/sbin
/usr/share
/usr/share/doc
/usr/share/doc/puppet-2.7.13
/usr/share/doc/puppet-2.7.13/CHANGELOG.bz2
/usr/share/doc/puppet-2.7.13/README.md.bz2
/usr/share/doc/puppet-2.7.13/README_DEVELOPER.md.bz2
/usr/share/doc/puppet-2.7.13/conf
/usr/share/doc/puppet-2.7.13/conf/namespaceauth.conf.bz2
/usr/share/doc/puppet-2.7.13/examples
/usr/share/doc/puppet-2.7.13/examples/allatonce.bz2
/usr/share/doc/puppet-2.7.13/examples/assignments.bz2
/usr/share/doc/puppet-2.7.13/examples/components.bz2
/usr/share/doc/puppet-2.7.13/examples/etc
/usr/share/doc/puppet-2.7.13/examples/etc/init.d
/usr/share/doc/puppet-2.7.13/examples/etc/init.d/sleeper.bz2
/usr/share/doc/puppet-2.7.13/examples/etc/otherfile
/usr/share/doc/puppet-2.7.13/examples/etc/puppet
/usr/share/doc/puppet-2.7.13/examples/etc/puppet/fileserver.conf.bz2
/usr/share/doc/puppet-2.7.13/examples/etc/puppet/namespaceauth.conf.bz2
/usr/share/doc/puppet-2.7.13/examples/etc/puppet/puppet.conf.bz2
/usr/share/doc/puppet-2.7.13/examples/etc/puppet/tagmail.conf.bz2
/usr/share/doc/puppet-2.7.13/examples/execs.bz2
/usr/share/doc/puppet-2.7.13/examples/file.bl.bz2
/usr/share/doc/puppet-2.7.13/examples/filedefaults.bz2
/usr/share/doc/puppet-2.7.13/examples/fileparsing.bz2
/usr/share/doc/puppet-2.7.13/examples/filerecursion.bz2
/usr/share/doc/puppet-2.7.13/examples/functions.bz2
/usr/share/doc/puppet-2.7.13/examples/groups.bz2
/usr/share/doc/puppet-2.7.13/examples/head.bz2
/usr/share/doc/puppet-2.7.13/examples/importing.bz2
/usr/share/doc/puppet-2.7.13/examples/mac_automount.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mac_dscl.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mac_dscl_revert.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mac_pkgdmg.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mcx_dock_absent.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mcx_dock_default.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mcx_dock_full.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mcx_dock_invalid.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mcx_nogroup.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/mcx_notexists_absent.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/modules
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/README.txt.bz2
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/lib
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/lib/puppet
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/lib/puppet/parser
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/lib/puppet/parser/functions
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb.bz2
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/manifests
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/manifests/init.pp.bz2
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/templates
/usr/share/doc/puppet-2.7.13/examples/modules/sample-module/templates/sample.erb.bz2
/usr/share/doc/puppet-2.7.13/examples/nodes.bz2
/usr/share/doc/puppet-2.7.13/examples/one.bz2
/usr/share/doc/puppet-2.7.13/examples/relationships.bz2
/usr/share/doc/puppet-2.7.13/examples/selectors.bz2
/usr/share/doc/puppet-2.7.13/examples/simpletests.bz2
/usr/share/doc/puppet-2.7.13/examples/svncommit.bz2
/usr/share/doc/puppet-2.7.13/ext
/usr/share/doc/puppet-2.7.13/ext/autotest
/usr/share/doc/puppet-2.7.13/ext/autotest/Rakefile.bz2
/usr/share/doc/puppet-2.7.13/ext/autotest/config.bz2
/usr/share/doc/puppet-2.7.13/ext/autotest/readme.rst.bz2
/usr/share/doc/puppet-2.7.13/ext/cert_inspector.bz2
/usr/share/doc/puppet-2.7.13/ext/dbfix.sql.bz2
/usr/share/doc/puppet-2.7.13/ext/emacs
/usr/share/doc/puppet-2.7.13/ext/emacs/puppet-mode-init.el.bz2
/usr/share/doc/puppet-2.7.13/ext/emacs/puppet-mode.el.bz2
/usr/share/doc/puppet-2.7.13/ext/envpuppet.bat.bz2
/usr/share/doc/puppet-2.7.13/ext/envpuppet.bz2
/usr/share/doc/puppet-2.7.13/ext/ldap
/usr/share/doc/puppet-2.7.13/ext/ldap/puppet.schema.bz2
/usr/share/doc/puppet-2.7.13/ext/logcheck
/usr/share/doc/puppet-2.7.13/ext/logcheck/puppet.bz2
/usr/share/doc/puppet-2.7.13/ext/nagios
/usr/share/doc/puppet-2.7.13/ext/nagios/check_puppet.rb.bz2
/usr/share/doc/puppet-2.7.13/ext/nagios/naggen.bz2
/usr/share/doc/puppet-2.7.13/ext/puppet-load.rb.bz2
/usr/share/doc/puppet-2.7.13/ext/puppet-test.bz2
/usr/share/doc/puppet-2.7.13/ext/puppetlisten
/usr/share/doc/puppet-2.7.13/ext/puppetlisten/puppetlisten.rb.bz2
/usr/share/doc/puppet-2.7.13/ext/puppetlisten/puppetrun.rb.bz2
/usr/share/doc/puppet-2.7.13/ext/pure_ruby_dsl
/usr/share/doc/puppet-2.7.13/ext/pure_ruby_dsl/dsl_test.rb.bz2
/usr/share/doc/puppet-2.7.13/ext/rack
/usr/share/doc/puppet-2.7.13/ext/rack/README.bz2
/usr/share/doc/puppet-2.7.13/ext/rack/files
/usr/share/doc/puppet-2.7.13/ext/rack/files/apache2.conf.bz2
/usr/share/doc/puppet-2.7.13/ext/rack/files/config.ru.bz2
/usr/share/doc/puppet-2.7.13/ext/rack/manifest.pp.bz2
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/classes
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/classes/databases.bz2
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/classes/webservers.bz2
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/parameters
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/parameters/environment
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/parameters/environment/prod.bz2
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/parameters/environment/qa.bz2
/usr/share/doc/puppet-2.7.13/ext/regexp_nodes/regexp_nodes.rb.bz2
/usr/share/doc/puppet-2.7.13/ext/upload_facts.rb.bz2
/usr/share/doc/puppet-2.7.13/ext/vim
/usr/share/doc/puppet-2.7.13/ext/vim/README.bz2
/usr/share/doc/puppet-2.7.13/ext/vim/ftdetect
/usr/share/doc/puppet-2.7.13/ext/vim/ftdetect/puppet.vim.bz2
/usr/share/doc/puppet-2.7.13/ext/vim/ftplugin
/usr/share/doc/puppet-2.7.13/ext/vim/ftplugin/puppet.vim.bz2
/usr/share/doc/puppet-2.7.13/ext/vim/indent
/usr/share/doc/puppet-2.7.13/ext/vim/indent/puppet.vim.bz2
/usr/share/doc/puppet-2.7.13/ext/vim/syntax
/usr/share/doc/puppet-2.7.13/ext/vim/syntax/puppet.vim.bz2
/usr/share/doc/puppet-2.7.13/ext/yaml_nodes.rb.bz2
/usr/share/man
/usr/share/man/man5
/usr/share/man/man5/puppet.conf.5.bz2
/usr/share/man/man8
/usr/share/man/man8/filebucket.8.bz2
/usr/share/man/man8/pi.8.bz2
/usr/share/man/man8/puppet-agent.8.bz2
/usr/share/man/man8/puppet-apply.8.bz2
/usr/share/man/man8/puppet-catalog.8.bz2
/usr/share/man/man8/puppet-cert.8.bz2
/usr/share/man/man8/puppet-certificate.8.bz2
/usr/share/man/man8/puppet-certificate_request.8.bz2
/usr/share/man/man8/puppet-certificate_revocation_list.8.bz2
/usr/share/man/man8/puppet-config.8.bz2
/usr/share/man/man8/puppet-describe.8.bz2
/usr/share/man/man8/puppet-device.8.bz2
/usr/share/man/man8/puppet-doc.8.bz2
/usr/share/man/man8/puppet-facts.8.bz2
/usr/share/man/man8/puppet-file.8.bz2
/usr/share/man/man8/puppet-filebucket.8.bz2
/usr/share/man/man8/puppet-help.8.bz2
/usr/share/man/man8/puppet-inspect.8.bz2
/usr/share/man/man8/puppet-key.8.bz2
/usr/share/man/man8/puppet-kick.8.bz2
/usr/share/man/man8/puppet-man.8.bz2
/usr/share/man/man8/puppet-master.8.bz2
/usr/share/man/man8/puppet-node.8.bz2
/usr/share/man/man8/puppet-parser.8.bz2
/usr/share/man/man8/puppet-plugin.8.bz2
/usr/share/man/man8/puppet-queue.8.bz2
/usr/share/man/man8/puppet-report.8.bz2
/usr/share/man/man8/puppet-resource.8.bz2
/usr/share/man/man8/puppet-resource_type.8.bz2
/usr/share/man/man8/puppet-secret_agent.8.bz2
/usr/share/man/man8/puppet-status.8.bz2
/usr/share/man/man8/puppet.8.bz2
/usr/share/man/man8/puppetca.8.bz2
/usr/share/man/man8/puppetd.8.bz2
/usr/share/man/man8/puppetdoc.8.bz2
/usr/share/man/man8/puppetmasterd.8.bz2
/usr/share/man/man8/puppetqd.8.bz2
/usr/share/man/man8/puppetrun.8.bz2
/usr/share/man/man8/ralsh.8.bz2
/var
/var/lib
/var/lib/puppet
/var/lib/puppet/facts
/var/lib/puppet/facts/.keep_app-admin_puppet-0
/var/lib/puppet/files
/var/lib/puppet/files/.keep_app-admin_puppet-0
/var/lib/puppet/ssl
/var/lib/puppet/ssl/.keep_app-admin_puppet-0
/var/log
/var/log/puppet
/var/log/puppet/.keep_app-admin_puppet-0
/var/run
/var/run/puppet
/var/run/puppet/.keep_app-admin_puppet-0
Comment 3 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2012-06-15 09:32:38 UTC
As you see from that output, /var/run/puppet is indeed being created. Plus, looking at the ebuild, the commands that create the dir are there as well. I suspect that something is wrong with your system, I'll let the maintainer reply in case he has any idea. Your emerge --info might also be useful, please attach it as well
Comment 4 LamkaSlim 2012-08-16 14:02:28 UTC
Reproduced it. 
On newly installed gentoo where /run is tmpfs and /var/run is symlink to /run. 

df -H | grep run
tmpfs 4,2G 480k 4,2G 1% /run
ls -l /var
lrwxrwxrwx  1 root   root      4 авг.  13 10:38 run -> /run

/var/run/puppet created after emerge, but after reboot /run (/var/run) is empty and init script fails with "Please make sure PUPPET_PID_DIR is defined and points to a existing directory"
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2012-10-18 00:08:32 UTC
Sounds like we just need a mkdir -p /var/run/puppet at the beginning of the start() function in the init script.
Comment 6 Christian Ruppert (idl0r) gentoo-dev 2012-11-06 19:20:19 UTC
Please test e.g. puppet-2.7.18 where it was fixed already or even 2.7.19.