Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 406449

Summary: app-admin/puppet-2.7.11 fails to start puppetmaster
Product: Gentoo Linux Reporter: Eric Martin <eric.joshua.martin>
Component: Current packagesAssignee: MATSUU Takuto (RETIRED) <matsuu>
Status: RESOLVED FIXED    
Severity: major Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: changed --dir flag to --directory and it starts fine
patched /etc/init.d/puppetmaster

Description Eric Martin 2012-03-01 16:34:20 UTC
puppetmaster will not start after upgrade.  Complaining of bad flag:

Reproducible: Always

Steps to Reproduce:
/etc/init.d/puppetmaster start
Actual Results:  
emartin@atlas ~ $ sudo /etc/init.d/puppetmaster restart
 * Caching service dependencies ...                                                           [ ok ]
checkpath: option '--dir' is ambiguous
Usage: checkpath [options] path1 path2 ...

Options: [dDfFpm:o:ChqVv]
  -d, --directory                   Create a directory if not exists
  -D, --directory-truncate          Create/empty directory
  -f, --file                        Create a file if not exists
  -F, --file-truncate               Truncate file
  -p, --pipe                        Create a named pipe (FIFO) if not exists
  -m, --mode <arg>                  Mode to check
  -o, --owner <arg>                 Owner to check (user:group)
  -h, --help                        Display this help output
  -C, --nocolor                     Disable color output
  -V, --version                     Display software version
  -v, --verbose                     Run verbosely
  -q, --quiet                       Run quietly
 * ERROR: puppetmaster failed to start
Comment 1 Eric Martin 2012-03-01 16:35:37 UTC
Created attachment 303839 [details]
changed --dir flag to --directory and it starts fine

--dir is now --directory, so I changed it in /etc/init.d/puppetmaster and puppet starts fine
Comment 2 Eric Martin 2012-03-01 16:37:50 UTC
Created attachment 303841 [details, diff]
patched /etc/init.d/puppetmaster

--dir is now --directory.  I patched the file and it starts fine
Comment 3 lklm 2012-03-02 14:43:54 UTC
I confirm this.

The bug is due to shortened option used in initialization file. openrc had only --directory option before current version so it worked fine. Current trunk added a second option (--directory-truncate) so the shortened option name became ambiguous.

The attached patch works. Please push this upstream.
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2012-03-03 00:09:28 UTC
Fixed in cvs. thanks.