Issue #8547 has been updated by Pieter Lexis.

The patched script does the job, However, the problem is now reversed.

When the DB information is in main (and not in master), the new version works
When the DB information is in master (and not in main), the new version doesn't 
work (it tries to open a sqlite DB):
    /usr/lib/ruby/1.8/sqlite3/errors.rb:62:in `check': could not open database: 
unable to open database file (SQLite3::CantOpenException)

When the DB information is in main (and not in master), the packaged version is 
broken (Invalid db adapter  (ArgumentError))
When the DB information is in master (and not in main), the packaged version 
works.

So, while the new script is a solution for me, it isn't a permanent solution, 
as it will most likely break other setups.
----------------------------------------
Bug #8547: puppetstoredconfigclean checks only [master] for database 
configuration, should also check [main]
https://projects.puppetlabs.com/issues/8547

Author: Pieter Lexis
Status: Investigating
Priority: Normal
Assignee: Nan Liu
Category: ext
Target version: 
Affected Puppet version: 2.6.8
Keywords: puppetstoredconfigclean
Branch: 


I use stored configs on the puppetmaster. The database information is in the 
[main] section of puppet.conf (because of queuing, puppetqd checks the [main] 
for this information).

The [master] section of puppet.conf is empty. Puppet works as expected. However,
    puppetstoredconfigclean
doesn't

The following error is thrown: 
    /usr/sbin/puppetstoredconfigclean:74: Invalid db adapter  (ArgumentError)

When the database information is specified in the [master] section, 
puppetstoredconfigclean works as expected. I would expect that 
puppetstoredconfigclean behaves the same as the puppetmaster when reading it's 
configuration.

The puppet version is 2.6.8 from debian-backports.


-- 
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.

Reply via email to