Issue #7078 has been updated by Jamie McClelland.
Thanks for re-opening :) > It should be noted that this is just a warning though. It’s not causing any > operations to fail. That is my experience as well. > One Warning per run is probably fine (maybe make it possible to turn it off > via config), but not a warning for each statement as we get it now I'd really like to push for no warnings at all, not even one per run. puppet should only emit warnings if there is something wrong. If the use case in comment 6 is wrong, then we should emit a warning. However, if that's reasonable code for a system with storeconfigs disabled, then one warning seems like one warning too many. Watching the output from puppet is really useful - having to get in the habit of ignoring certain warnings make developing and testing error prone. jamie ---------------------------------------- Bug #7078: resource_type search can produce errors if storedconfigs is not configured. https://projects.puppetlabs.com/issues/7078 Author: Dan Bode Status: Investigating Priority: Normal Assignee: Category: Target version: Affected Puppet version: 2.7.0rc1 Keywords: Branch: (NOTE: the following is run against 2.7 (currently next), I have also seen the same warnings in 2.6.x) If I have a manifest which tries to export resources, then I get the following warning when retrieving the resource_type: <pre> # cat /tmp/foo.pp class foo ($bar) { @@notify { 'foo': } } [root@mypuppetmaster motd]# puppet resource_type search '*' --manifest /tmp/foo.pp warning: You cannot collect without storeconfigs being set on line 2 in file /tmp/foo.pp [ { "name": "foo", "arguments": { "bar": null }, "line": 1, "type": "hostclass", "file": "/tmp/foo.pp" } ] </pre> This warning should not occur, since having stored configs configured is not a requirement for querying the type. configuring stored configs on the server makes the errors go away I also verified that the resource_type call is not exporting resources if storedconfigs is enabled. -- 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.
