Issue #3644 has been updated by Markus Roberts.
Alan -- > Perhaps it's documented behaviour, but I don't think it's correct. I expect > "--onetime" to mean "don't loop more than once for any reason". I don't think you mean this, or at I expect you haven't thought it through. "Don't loop more than once for any reason" is an unreasonable expectation. For example, if you had a catalog with a file resource set to recurse, would you expect it to only do the first file it found, or loop through all of them? What about retrying bad tcp/ip packets--do you expect --onetime to turn that off? It seems pretty clear to me, not just from the documentation but from the logic of the situation, that an option like onetime only makes sense at the level of a catalog run; it isn't really reasonable to expect it to constrain steps taken internally pursuant to performing the single run, as the semantics of these vary wildly. If you aren't convinced, we can re-open the ticket as "needs design decision" and get a second opinion. -- Markus P.S. As for the disparity between 0.24.x and 0.25.x, the check on @one_time appears to have been introduced by Andrew Shafer in commit:"946081b3c0bf24dc68a3a08fbcb6b5347e01de8f" and removed by Luke in commit:"09ee814a8203c33c074a09e5a9802adc395ae309" after he deprecated it in commit:"c464bf21676c907642be3ad2c71b941318469325"; while it's still possible that this was an accidental change it looks at least on the surface like it was intentional. ---------------------------------------- Bug #3644: --waitforcert does not play nicely with --onetime http://projects.puppetlabs.com/issues/3644 Author: Alan Barrett Status: Rejected Priority: Normal Assigned to: Markus Roberts Category: executables Target version: 0.25.5 Affected version: 0.25.4 Keywords: Branch: running "puppetd --onetime --test --waitforcert 1" does not wait one second for the certificate and then exit; it loops forever printing <pre> warning: peer certificate won't be verified in this SSL session notice: Did not receive certificate </pre> once per second. -- 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.
