Jira (PUP-3761) puppet agent --onetime not honored

2023-03-24 Thread Jesse Hathaway (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Hathaway commented on  PUP-3761  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet agent --onetime not honored   
 

  
 
 
 
 

 
 Josh Cooper any chance we could re-open this issue?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.61271.141833753.259.1679675700148%40Atlassian.JIRA.


Jira (PUP-3761) puppet agent --onetime not honored

2023-03-23 Thread Jesse Hathaway (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Hathaway commented on  PUP-3761  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet agent --onetime not honored   
 

  
 
 
 
 

 
 It would be really nice if running in the foreground skipped the lock or if a flag was added to skip the lock. Otherwise there is a race condition as Dan Bode mentioned between enabling puppet and kicking off a run in the foreground.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.61271.141833753.7.1679602320062%40Atlassian.JIRA.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-19 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
There was a behavior change between 2.7.26 (the last release in the 2.7.x series) and 3.0.0. In 2.7.x, you could continue to run puppet agent in the foreground even if the agent was disabled. That's no longer true in 3.0.0 and up: 
 
 
 
 
 
 
0 ~/work/puppet (2.7.26)  $ bundle exec puppet agent -t 
 
 
 
 
/Users/josh/work/puppet/lib/puppet/external/pson/pure.rb:7:in `module:PSON': iconv will be deprecated in the future, use String#encode instead. 
 
 
 
 
... 
 
 
 
 
info: Applying configuration version '1419023831' 
 
 
 
 
notice: Finished catalog run in 0.11 seconds 
 
 
 
 
2 ~/work/puppet (2.7.26)  $ git checkout 3.0.0 
 
 
 
 
Previous HEAD position was 50bd24a... Merge pull request #39 from MosesMendoza/maint/2.7.x/update_packaging 
 
 
 
 
HEAD is now at 340fdf8... Update lib/puppet/version.rb for 3.0.0 
 
 
 
 
0 ~/work/puppet (3.0.0)  $ bundle update 
 
 
 

Jira (PUP-3761) puppet agent --onetime not honored

2014-12-19 Thread Dan Bode (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Dan Bode commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
I'm going to go ahead and close since it's not new behavior. Obviously, I'm doing something different on my end that caused me to start seeing it. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-3761 
 
 
 
  puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Cooper 
 
 
 
 
 
 
 
 
 
 whenrunningthefollowingcommand:  {noformat} puppetagent--nooppuppet-master.service.consul--test--onetime  {noformat} (NOTE:--onetimeaddedforclarifyhere,itisalsopartofthe--testalias)Igetthefollowingerror:  {noformat} Notice:SkippingrunofPuppetconfigurationclient;administrativelydisabled(Reason:'Disabledbydefaultonnewinstallations');Use'puppetagent--enable'tore-enable.  {noformat} Afterreadingabout \ - \ -enable,itlookslikeIwouldnotwanttoenablethisoption(--onetimemeansthatIjustwanttorunpuppetonce,andIdon'tnecessarilywantittoruninthebackground.Itseemsasif--test,--onetime,and--no-daemonize,havebeenrenderedunsupportedbythisadminlock.AmImissingsomething,oraretheseoptionsnotgoingtobesupportedanymore?Thatwouldbeashameb/ctheywerereallyuseful:( 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-3761 
 
 
 
  puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Cooper 
 
 
 

Assignee:
 
 DanBode 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
Dan Bode If the agent is administratively disabled, then both foreground and background puppet agent runs are disabled. Are you asking that puppet agent when running in the foreground with onetime, should be allowed to run (ignoring the lock file)? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Dan Bode (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Dan Bode commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
It appears that setting this flat to --enable means that the puppet agent will start running in the background (is that not true?) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Dan Bode (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Dan Bode commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
maybe --enable should just be added to the --test alias? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
I don't think we want -

test/onetime to imply 
-enable, since that would introduce race conditions where the background agent could run between the time the lock is removed and when the foreground agent runs. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Dan Bode (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Dan Bode commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
I need to look into this more. After looking at the code I can tell this isn't something new. I was a little confused b/c this message is what I see after a fresh Puppet install (ie: things are disabled by default). I may need to recreate and try to understand why I'm seeing it (b/c I didn't see any recent commits merged into 3.x that would cause this to be the default behavior) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-15 Thread Dan Bode (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Dan Bode commented on  PUP-3761 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 
 
I had another look today, and by default puppet agent --test doesn't work (the main thing that I'm confused about) 
I remember this command always just working before, so it seems like a significant break in backwards compat. Also you mentioned race conditions related to running puppet from the foreground. What is the safe way to run it? 
 service puppet stop puppet agent --enable puppet agent -t puppet agent --disable service puppet start  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-3761) puppet agent --onetime not honored

2014-12-11 Thread Dan Bode (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Dan Bode created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-3761 
 
 
 
  puppet agent --onetime not honored  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2014/12/11 2:38 PM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Dan Bode 
 
 
 
 
 
 
 
 
 
 
when running the following command: 
 puppet agent --noop puppet-master.service.consul --test --onetime  
(NOTE: --onetime added for clarify here, it is also part of the --test alias) 
I get the following error: 
 Notice: Skipping run of Puppet configuration client; administratively disabled (Reason: 'Disabled by default on new installations'); Use 'puppet agent --enable' to re-enable.  
After reading about -

enable, it looks like I would not want to enable this option (
-onetime means that I just want to run puppet once, and I don't necessarily want it to run in the background. It seems as if --test, --onetime, and --no-daemonize, have been rendered unsupported by this admin lock. 
Am I missing something, or are these options not going to be supported anymore? That would be a shame b/c they were really useful