Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2020-10-23 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Affects Version/s: 
 PUP 5.5.z  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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.251856.1526926167000.63119.1603497660128%40Atlassian.JIRA.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-02-26 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Affects Version/s: 
 PUP 5.3.z  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-01-08 Thread Jean Bond (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jean Bond updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Jean Bond  
 
 
Labels: 
 resolved-issue-added  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-01-08 Thread Jean Bond (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jean Bond commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Thanks Josh Cooper!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-01-08 Thread Jean Bond (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jean Bond updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Jean Bond  
 
 
Fix Version/s: 
 PUP 6.0.5  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-01-08 Thread Jean Bond (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jean Bond updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Jean Bond  
 
 
Release Notes Summary: 
 * `puppet device` now uses its own device-specific cache for pluginsynced code (facts, types and providers). Previously it would have used the cache of any agent running on the same system.* `puppet device` now supports a `--libdir` option for overriding any pluginsynced code with a local directory for testing, and other extra-ordinary usecases.Release note draft, jb: - Prior to this release, the `puppet device` command failed if the environment specified in `puppet.conf` or with the `--environment` option was not 'production'. This issue is fixed. Now `puppet device` uses its own device-specific cache for pluginsynced code (facts, types, and providers). Additionally, `puppet device` now supports a `--libdir` option for overriding any pluginsynced code with a local directory for testing. [PUP-8766](https://tickets.puppetlabs.com/browse/PUP-8766)  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To 

Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-01-08 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Merged to 5.5.x in https://github.com/puppetlabs/puppet/commit/f170937ba93027b6d54739d28f18c504fc4d9a45. This will also be released in 6.0.5.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-01-08 Thread Jean Bond (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jean Bond commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 David Schmitt or Josh Cooper, the fix version on this is 5.5.9, but I see that affected versions include 6.y. Is this going into 6.2 and/or 6.0.5.?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2019-01-08 Thread Branan Riley (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Branan Riley updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Branan Riley  
 
 
Fix Version/s: 
 PUP 5.5.9  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-11-19 Thread David Schmitt (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Schmitt commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Published draft code changes at https://github.com/puppetlabs/puppet/pull/7242 - waiting for review from Josh Cooper  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-31 Thread Rick Sherman (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rick Sherman commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Depending on the depth of this work, it may be a good time to look at PUP-8732 (limiting pluginsync to only remote providers w/ puppet device)  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-26 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 About the loaders failure. Puppet device should definitely be using Puppet::Node::Environment.remote when requesting a catalog from a remote puppetserver (like agent). 

We can workaround this by explicitly managing libdir in device.rb, but really this is a dangerous lack of consistency in the underlying settings framework. Josh Cooper, is there a chance of getting this fixed for all?
 Welcome to the insanity that is puppet settings. If you change the default value of vardir, then any derived settings like libdir will resolve based on the new value of vardir, however, hooks for the derived settings are never called, so you end up with the ruby $LOAD_PATH pointing to the default location:  
 
 
 
 
 irb(main):001:0> require 'puppet'  
 
 
 => true  
 
 
 irb(main):002:0> Puppet.initialize_settings  
 
 
 => [:debug, :info, :notice, :warning, :err, :alert, :emerg, :crit]  
 
 
 irb(main):003:0> Puppet[:vardir] = '/tmp/vardir'  
 
 
 => "/tmp/vardir"  
 
 
 irb(main):004:0> Puppet[:libdir]  
 
 
 => "/tmp/vardir/lib"  
 
 
 irb(main):005:0> $LOAD_PATH.grep /cache/  
 
 
 => ["/Users/josh/.puppetlabs/opt/puppet/cache/lib"]
  

Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-26 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Sorry, don't know PluginHandler and related logic well enough to be able to comment on suggested approach. Being able to ask-for/force a plugin sync as a separate thing seems to be of value though.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-26 Thread David Schmitt (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Schmitt updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 I could reproduce this in a local & clean 5.3 environment. Exploring this functionality raised two concerning issues: 
 
puppet device is loading plugin code from the proxy agent's cache. 
puppet device is using the plugin code before it is downloading the plugins required to do so 
 On the one hand this makes it actually work, on the other hand it completely evades environment isolation and will cause confusion when used. Charlie' fix above avoids the issue of the loaders failure, but does not help with the loadpath issue. Some background loading from the agent's libdir The device.rb#L253 changes the vardir setting, but this does not update the $LOAD_PATH. I've instrumented the code for some debug output:  
 
 
 
 
 david@zion:~/git/puppet$ bundle exec puppet device --verbose --trace  
 
 
 libdir: replacing '' with '/home/david/.puppetlabs/opt/puppet/cache/lib'  
 
 
 libdir: replacing '/home/david/.puppetlabs/opt/puppet/cache/lib' with '/home/david/.puppetlabs/opt/puppet/cache/lib'  
 
 
 vardir before configuring: /home/david/.puppetlabs/opt/puppet/cache  
 
 
 libdir before configuring: /home/david/.puppetlabs/opt/puppet/cache/lib  
 
 
 $LOAD_PATH.last before configuring: /home/david/.puppetlabs/opt/puppet/cache/lib  
 
 
 vardir after configuring: /home/david/.puppetlabs/opt/puppet/cache/devices/panos  
 
 
 libdir after 

Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-25 Thread David Schmitt (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Schmitt assigned an issue to David Schmitt  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 David Schmitt  
 
 
Assignee: 
 David Schmitt  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-25 Thread David Mallon (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Mallon updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 David Mallon  
 
 
Team: 
 Modules Network Automation  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-24 Thread David Mallon (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Mallon commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Davin Hanlon and David Schmitt - can we chat about this one tomorrow?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-10-19 Thread Thomas Mashos (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Mashos commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 I've got this same issue. I've found that I don't get that error if I set the environment in the ENC rather that in puppet.conf or in the command line.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Charlie suggests something like what puppet agent uses:  
 
 
 
 
 env = Puppet::Node::Environment.remote(Puppet[:environment])
  
 
 
 
  Or if the agent is compiling a catalog like puppet apply ...  
 
 
 
 
 env = if options[:apply].nil?  
 
 
   Puppet::Node::Environment.remote(Puppet[:environment])  
 
 
 else  
 
 
   Puppet.lookup(:environments).get(Puppet[:environment])  
 
 
 end
  
 
 
 
   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
  

Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Adam Bottchen (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adam Bottchen updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Adam Bottchen  
 
 
CS Priority: 
 Needs Priority Reviewed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Running `puppet device` on a non-master proxy puppet agent is common, if not recommended.  Simply adding an empty directory on the proxy agent avoids this error.   Some tests ...   With agent and device pinned to the development environment group in the Console ... With environment=development in puppet.conf on agent ...  
 
 
 
 
 [root@pe-201810-agent ~]# puppet config print environment  
 
 
 development
  
 
 
 
   
 
 
 
 
 [root@pe-201810-agent ~]# rm -rf /etc/puppetlabs/code
  
 
 
 
   
 
 
 
 
 [root@pe-201810-agent ~]# puppet device --verbose  
 
 
 Error: Could not run: undefined method `loaders' for nil:NilClass
  
 
 
 
   
 
 
 
 
 [root@pe-201810-agent ~]# puppet device --verbose --environment=development  
 
 
 Error: Could not run: undefined method `loaders' for nil:NilClass
  
 
  

Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Guessing that puppet device does not set up the environment the same way as the regular agent does. IIRC it creates something known as a "Remote Environment" (which is quite different from the compiling side's directory based environment).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Martin Ewings (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Ewings updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Martin Ewings  
 
 
Method Found: 
 Needs Assessment Customer Feedback  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Thomas Hallgren (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Hallgren commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 The problem is that this line:  
 
 
 
 
 env = Puppet.lookup(:environments).get(Puppet[:environment])
  
 
 
 
  results in env being nil. AFAICT, that can only happen when given the environment doesn't exist. Testing the command with --environment= works OK. So I'm lowering the priority on this one.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Thomas Hallgren (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Hallgren updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Thomas Hallgren  
 
 
Priority: 
 Major Normal  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Martin Ewings (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Ewings updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Martin Ewings  
 
 
CS Priority: 
 Needs Priority  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-22 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Henrik Lindberg  
 
 
Priority: 
 Normal Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-21 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
  
 
 
 
 
 [root@pe-201810-agent ~]# puppet device --verbose --environment=development --trace  
 
 
    
 
 
 Error: Could not run: undefined method `loaders' for nil:NilClass  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loaders.rb:21:in `new'  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:230:in `main'  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:383:in `run_command'  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:in `block in run'  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:661:in `exit_on_fail'  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:in `run'  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'  
 
 
 /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in `execute'  
 
 
 

Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-21 Thread Thomas Hallgren (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Hallgren commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Please run the command with --trace and attach the stacktrace for the error.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-21 Thread Rick Sherman (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rick Sherman commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 cc Thomas Honey  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-21 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 https://github.com/puppetlabs/puppet/blob/master/lib/puppet/application/device.rb#L229  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-21 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-8766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
 Rick Sherman Reported by a user in ZenDesk # 30436  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-21 Thread Craig Gomes (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Craig Gomes updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Change By: 
 Craig Gomes  
 
 
Team: 
 Modules  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-8766) puppet device fails with undefined method `loaders' for nil:NilClass when env is not production

2018-05-21 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8766  
 
 
  puppet device fails with undefined method `loaders' for nil:NilClass when env is not production   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 PUP 5.5.1, PUP 5.3.1  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2018/05/21 11:09 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Thomas Kishel  
 

  
 
 
 
 

 
 The puppet device command fails with when environment is not 'production' and environment is specified locally in either puppet.conf or via the --environment option ...  
 
 
 
 
 [root@pe-201810-agent ~]# puppet device --verbose --environment=development  
 
 
 Error: Could not run: undefined method `loaders' for nil:NilClass
  
 
 
 
  It succeeds if environment is server-specified ...  
 
 
 
 
 [root@pe-201810-agent ~]# puppet device --verbose #--environment=development