Jira (PUP-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2020-08-21 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9207  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
 I believe this is a duplicate of PUP-8094, because lookup does not submit trusted facts on behalf of the node whose data value is being resolved. See my comment in https://tickets.puppetlabs.com/browse/PUP-8094?focusedCommentId=732996=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-732996. I'm going to mark this as a duplicate, but let me know if I missed something.  
 

  
 
 
 
 

 
 
 

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


Jira (PUP-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2020-08-21 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Coremunity Hopper  
 

  
 
 
 
 

 
 
 

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


Jira (PUP-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2020-07-24 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Team: 
 Froyo Coremunity  
 

  
 
 
 
 

 
 
 

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


Jira (PUP-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2020-07-24 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Epic Link: 
 PUP-6870  
 

  
 
 
 
 

 
 
 

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


Jira (PUP-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-09 Thread Neil Binney (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Neil Binney updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Neil Binney  
 
 
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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-08 Thread Jorie Tappa (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jorie Tappa updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Jorie Tappa  
 
 
Sub-team: 
 Language  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-08 Thread Jorie Tappa (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jorie Tappa updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Jorie Tappa  
 
 
Team: 
 Server  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-04 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-9207  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
 This does not involve a transition from one environment to another: repeated testing (including puppet agent runs and the above puppet lookups) returns the same results. Empirically, it appears that trusted facts are not in scope when using "puppet lookup --compile" ... causing the (environment) node group rule (based upon a trusted fact != a specific value, in the example: "pp_role != ppserver") ... to include the node instead of excluding it ... changing the environment of the node in the context of the lookup ... resulting in the lookup reading from different environment than would be read during a puppet agent run.  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

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


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-9207  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
 At present lookup will use a node's current environment as the intent when this was implemented was to answer questions why a value ended up in the catalog. That in contrast to the value it will have when compiling a new catalog. There is another ticket about changing this to always use the "what-will-be-environment" value instead of "what-you-got-last-environment". Is that what is at play here? Or something else? (Can be determined if the problematic behaviour is observed when node is in one env now and will be in another when it makes its nest request for a catalog).  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-04 Thread Charlie Sharpsteen (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charlie Sharpsteen updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Charlie Sharpsteen  
 
 
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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-03 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-9207  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
 This may be relevant: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/application/lookup.rb#L49  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-03 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel commented on  PUP-9207  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
 See attached screen captures for Console view of the test Groups, Rules, and Nodes.  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-03 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Thomas Kishel  
 
 
Attachment: 
 trusted.png  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-03 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Thomas Kishel  
 
 
Attachment: 
 matching_nodes.,png.png  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-03 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Thomas Kishel  
 
 
Attachment: 
 rules.png  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-03 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Change By: 
 Thomas Kishel  
 
 
Attachment: 
 groups.png  
 

  
 
 
 
 

 
 
 

 
 
 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-9207) puppet lookup --compile returns incorrect results when trusted facts define environment

2018-10-03 Thread Thomas Kishel (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Kishel created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9207  
 
 
  puppet lookup --compile returns incorrect results when trusted facts define environment
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Attachments: 
 groups.png  
 
 
Created: 
 2018/10/03 2:06 PM  
 
 
Environment: 
 PE 2018.1.3 and PE 2018.1.4 and possibly others  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Thomas Kishel  
 

  
 
 
 
 

 
 When the agent's environment is defined by node group membership based upon a trusted fact not equaling a value, puppet lookup --compile returns results from the wrong environment.  
 
 
 
 
 [root@puppet-master-201813 ~] cat /etc/puppetlabs/code/environments/development/hieradata/common.yaml  
 
 
 ---  
 
 
 env: 'development'