Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406449 - app-admin/puppet-2.7.11 fails to start puppetmaster
Summary: app-admin/puppet-2.7.11 fails to start puppetmaster
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-03-01 16:34 UTC by Eric Martin
Modified: 2012-03-03 00:09 UTC (History)
0 users

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


Attachments
changed --dir flag to --directory and it starts fine (file_406449.txt,320 bytes, text/plain)
2012-03-01 16:35 UTC, Eric Martin
Details
patched /etc/init.d/puppetmaster (puppetmaster.diff,320 bytes, patch)
2012-03-01 16:37 UTC, Eric Martin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.