Jira (PUP-7362) Puppet lookup in 4.9.4 failed to interpolate Hiera data path

2017-03-18 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei commented on  PUP-7362 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet lookup in 4.9.4 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 
 
Thank you all for the explaination. Still kind of confused (I'm new to Puppet), but I am confident that this is a CLI-related issue and won't affect Puppet's overall usability. I agree to mark this issue as "won't fix" and look forward to better documentation on testing your Hiera settings. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 Hi,This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. After upgrading  openproductionource  opensource  Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.Steps to reproduce this issue 1. Install Puppet server on puppet.pi.sjtu.edu.cn . 2. Install Puppet agents on puppet.pi.sjtu.edu.cn, slurm1.pi.sjtu.edu.cn and mu05.pi.sjtu.edu.cn. Sign certificates for them. 3. Delete global hiera setting `/etc/puppetlabs/code/hiera.yaml`. # rm -f /etc/puppetlabs/code/hiera.yaml  4. Create an environment named `production`.  # mkdir -p /etc/puppetlabs/code/environments/production/{hieradata,maifests,modules} 5. Create the Hiera conf file for the production environment in `/etc/puppetlabs/code/environments/production/hiera.yaml`{code:java}---version: 5defaults:  datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Per-node data"path: "nodes/%{trusted.certname}.yaml"  - name: "common"path: "common.yaml"{code} 6. Add common data in `/etc/puppetlabs/code/environments/production/hieradata/common.yaml`:{code:java}---group: Compute Nodes{code} 7a. Add per-node hiera data for slurm1.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/slurm1.pi.sjtu.edu.cn.yaml`:{code:java}---group: SLURM{code} 7b. Add per-node hiera data for puppet.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml`:{code:java}---group: Puppet Server{code} 8a. Lookup group for puppet.pi.sjtu.edu.cn and successfully get "Puppet Server" stored in `puppet.pi.sjtu.edu.cn.yaml`.{code:java}# puppet lookup group --node puppet.pi.sjtu.edu.cn --explainSearching for "lookup_options"  Global Data Provider (hiera configuration version 5)No such key: "lookup_options"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Merge strategy hash  Hierarchy entry "Per-node data"Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"  Original path: "nodes/%{trusted.certname}.yaml"  No such key: "lookup_options"  Hierarchy entry "common"Path "/etc/puppetlabs/code/environments/production/hieradata/common.yaml"  Original path: "common.yaml"  No such key: "lookup_options"Searching for "group"  Global Data Provider (hiera configuration version 5)No such key: "group"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Hierarchy entry "Per-node data"  Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"Or

Jira (PUP-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 Hi,This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. After upgrading openproductionource Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.Steps to reproduce this issue 1. Install Puppet server on puppet.pi.sjtu.edu.cn . 2. Install Puppet agents on puppet.pi.sjtu.edu.cn, slurm1.pi.sjtu.edu.cn and mu05.pi.sjtu.edu.cn. Sign certificates for them. 3. Delete global hiera setting `/etc/puppetlabs/code/hiera.yaml`. # rm -f /etc/puppetlabs/code/hiera.yaml  4. Create an environment named `production`.  # mkdir -p /etc/puppetlabs/code/environments/production/{hieradata,maifests,modules} 5. Create the Hiera conf file for the production environment in `/etc/puppetlabs/code/environments/production/hiera.yaml`{code:java}---version: 5defaults:  datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Per-node data"path: "nodes/%{trusted.certname}.yaml"  - name: "common"path: "common.yaml"{code} 6. Add common data in `/etc/puppetlabs/code/environments/production/hieradata/common.yaml`:{code:java}---group: Compute Nodes{code} 7a. Add per-node hiera data for slurm1.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/slurm1.pi.sjtu.edu.cn.yaml`:{code:java}---group: SLURM{code} 7b. Add per-node hiera data for puppet.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml`:{code:java}---group: Puppet Server{code} 8a. Lookup group for puppet.pi.sjtu.edu.cn and successfully get "Puppet Server" stored in `puppet.pi.sjtu.edu.cn.yaml`.{code:java}# puppet lookup group --node puppet.pi.sjtu.edu.cn --explainSearching for "lookup_options"  Global Data Provider (hiera configuration version 5)No such key: "lookup_options"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Merge strategy hash  Hierarchy entry "Per-node data"Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"  Original path: "nodes/%{trusted.certname}.yaml"  No such key: "lookup_options"  Hierarchy entry "common"Path "/etc/puppetlabs/code/environments/production/hieradata/common.yaml"  Original path: "common.yaml"  No such key: "lookup_options"Searching for "group"  Global Data Provider (hiera configuration version 5)No such key: "group"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Hierarchy entry "Per-node data"  Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"Original path: "

Jira (PUP-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 Hi,This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. After upgrading openproductionource Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.Steps to reproduce this issue 1. Install Puppet server on puppet.pi.sjtu.edu.cn . 2. Install Puppet agents on puppet.pi.sjtu.edu.cn, slurm1.pi.sjtu.edu.cn and mu05.pi.sjtu.edu.cn. Sign certificates for them. 3. Delete global hiera setting `/etc/puppetlabs/code/hiera.yaml`. # rm -f /etc/puppetlabs/code/hiera.yaml  4. Create an environment named `production`.  # mkdir -p /etc/puppetlabs/code/environments/production/{hieradata,maifests,modules} 5. Create the Hiera conf file for the production environment in `/etc/puppetlabs/code/environments/production/hiera.yaml`{code:java}---version: 5defaults:  datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Per-node data"path: "nodes/%{trusted.certname}.yaml"  - name: "common"path: "common.yaml"{code} 6. Add common data in `/etc/puppetlabs/code/environments/production/hieradata/common.yaml`:{code:java}---group: Compute Nodes{code} 7a. Add per-node hiera data for slurm1.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/slurm1.pi.sjtu.edu.cn.yaml`:{code:java}---group: SLURM{code} 7b. Add per-node hiera data for puppet.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml`:{code:java}---group: Puppet Server{code} 8a. Lookup group for puppet.pi.sjtu.edu.cn and successfully get "Puppet Server" stored in `puppet.pi.sjtu.edu.cn.yaml`.{code:java}# puppet lookup group --node puppet.pi.sjtu.edu.cn --explainSearching for "lookup_options"  Global Data Provider (hiera configuration version 5)No such key: "lookup_options"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Merge strategy hash  Hierarchy entry "Per-node data"Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"  Original path: "nodes/%{trusted.certname}.yaml"  No such key: "lookup_options"  Hierarchy entry "common"Path "/etc/puppetlabs/code/environments/production/hieradata/common.yaml"  Original path: "common.yaml"  No such key: "lookup_options"Searching for "group"  Global Data Provider (hiera configuration version 5)No such key: "group"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Hierarchy entry "Per-node data"  Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"Original path: "

Jira (PUP-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 Hi,This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. After upgrading openproductionource Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.Steps to reproduce this issue 1. Install Puppet server on puppet.pi.sjtu.edu.cn . 2. Install Puppet agents on puppet.pi.sjtu.edu.cn, slurm1.pi.sjtu.edu.cn and mu05.pi.sjtu.edu.cn. Sign certificates for them. 3. Delete global hiera setting `/etc/puppetlabs/code/hiera.yaml`. # rm -f /etc/puppetlabs/code/hiera.yaml  4. Create an environment named `production`.  # mkdir -p /etc/puppetlabs/code/environments/production/{hieradata,maifests,modules} 5. Create the Hiera conf file for the production environment in `/etc/puppetlabs/code/environments/production/hiera.yaml`{code:java}---version: 5defaults:  datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Per-node data"path: "nodes/%{trusted.certname}.yaml"  - name: "common"path: "common.yaml"{code} 6. Add common data in `/etc/puppetlabs/code/environments/production/hieradata/common.yaml`:{code:java}---group: Compute Nodes{code} 7a. Add per-node hiera data for slurm1.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/slurm1.pi.sjtu.edu.cn.yaml`:{code:java}---group: SLURM{code} 7b. Add per-node hiera data for puppet.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml`:{code:java}---group: Puppet Server{code} 8a. Lookup group for puppet.pi.sjtu.edu.cn and successfully get "Puppet Server" stored in `puppet.pi.sjtu.edu.cn.yaml`.{code:java}# puppet lookup group --node puppet.pi.sjtu.edu.cn --explainSearching for "lookup_options"  Global Data Provider (hiera configuration version 5)No such key: "lookup_options"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Merge strategy hash  Hierarchy entry "Per-node data"Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"  Original path: "nodes/%{trusted.certname}.yaml"  No such key: "lookup_options"  Hierarchy entry "common"Path "/etc/puppetlabs/code/environments/production/hieradata/common.yaml"  Original path: "common.yaml"  No such key: "lookup_options"Searching for "group"  Global Data Provider (hiera configuration version 5)No such key: "group"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Hierarchy entry "Per-node data"  Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"Original path: "

Jira (PUP-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 Hi,This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. After upgrading openproductionource Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.Steps to reproduce this issue 1. Install Puppet server on puppet.pi.sjtu.edu.cn . 2. Install Puppet agents on puppet.pi.sjtu.edu.cn, slurm1.pi.sjtu.edu.cn and mu05.pi.sjtu.edu.cn. Sign certificates for them. 3. Delete global hiera setting `/etc/puppetlabs/code/hiera.yaml`. # rm -f /etc/puppetlabs/code/hiera.yaml  4. Create an environment named `production`.  # mkdir -p /etc/puppetlabs/code/environments/production/{hieradata,maifests,modules} 5. Create the Hiera conf file for the production environment in `/etc/puppetlabs/code/environments/production/hiera.yaml`{code:java}---version: 5defaults:  datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Per-node data"path: "nodes/%{trusted.certname}.yaml"  - name: "common"path: "common.yaml"{code} 6. Add common data in `/etc/puppetlabs/code/environments/production/hieradata/common.yaml`:{code:java}---group: Compute Nodes{code} 7a. Add per-node hiera data for slurm1.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/slurm1.pi.sjtu.edu.cn.yaml`:{code:java}---group: SLURM{code} 7b. Add per-node hiera data for puppet.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml`:{code:java}---group: Puppet Server{code} 8a. Lookup group for puppet.pi.sjtu.edu.cn and successfully get "Puppet Server" stored in `puppet.pi.sjtu.edu.cn.yaml`.{code:java}# puppet lookup group --node puppet.pi.sjtu.edu.cn --explainSearching for "lookup_options"  Global Data Provider (hiera configuration version 5)No such key: "lookup_options"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Merge strategy hash  Hierarchy entry "Per-node data"Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"  Original path: "nodes/%{trusted.certname}.yaml"  No such key: "lookup_options"  Hierarchy entry "common"Path "/etc/puppetlabs/code/environments/production/hieradata/common.yaml"  Original path: "common.yaml"  No such key: "lookup_options"Searching for "group"  Global Data Provider (hiera configuration version 5)No such key: "group"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Hierarchy entry "Per-node data"  Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"Original path: "

Jira (PUP-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 Hi,This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. After upgrading openproductionource Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.Steps to reproduce this issue 1. Install Puppet server on puppet.pi.sjtu.edu.cn . 2. Install Puppet agents on puppet.pi.sjtu.edu.cn, slurm1.pi.sjtu.edu.cn and mu05.pi.sjtu.edu.cn. Sign certificates for them. 3. Delete global hiera setting `/etc/puppetlabs/code/hiera.yaml`. # rm -f /etc/puppetlabs/code/hiera.yaml  4. Create an environment named `production`.  # mkdir -p /etc/puppetlabs/code/environments/production/{hieradata,maifests,modules} 5. Create the Hiera conf file for the production environment in `/etc/puppetlabs/code/environments/production/hiera.yaml`{code:java}---version: 5defaults:  datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Per-node data"path: "nodes/%{trusted.certname}.yaml"  - name: "common"path: "common.yaml"{code} 6. Add common data in `/etc/puppetlabs/code/environments/production/hieradata/common.yaml`:{code:java}---group: Compute Nodes{code} 7a. Add per-node hiera data for slurm1.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/slurm1.pi.sjtu.edu.cn.yaml`:{code:java}---group: SLURM{code} 7b. Add per-node hiera data for puppet.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml`:{code:java}---group: Puppet Server{code} 8a. Lookup group for puppet.pi.sjtu.edu.cn and successfully get "Puppet Server" stored in `puppet.pi.sjtu.edu.cn.yaml`.{code:java}# puppet lookup group --node puppet.pi.sjtu.edu.cn --explainSearching for "lookup_options"  Global Data Provider (hiera configuration version 5)No such key: "lookup_options"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Merge strategy hash  Hierarchy entry "Per-node data"Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"  Original path: "nodes/%{trusted.certname}.yaml"  No such key: "lookup_options"  Hierarchy entry "common"Path "/etc/puppetlabs/code/environments/production/hieradata/common.yaml"  Original path: "common.yaml"  No such key: "lookup_options"Searching for "group"  Global Data Provider (hiera configuration version 5)No such key: "group"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Hierarchy entry "Per-node data"  Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"Original path: "

Jira (PUP-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 Hi,This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. After upgrading openproductionource Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.Steps to reproduce this issue 1. Install Puppet server on puppet.pi.sjtu.edu.cn . 2. Install Puppet agents on puppet.pi.sjtu.edu.cn, slurm1.pi.sjtu.edu.cn and mu05.pi.sjtu.edu.cn. Sign certificates for them. 3. Delete global hiera setting `/etc/puppetlabs/code/hiera.yaml`. # rm -f /etc/puppetlabs/code/hiera.yaml  4. Create an environment named `production`.  # mkdir -p /etc/puppetlabs/code/environments/production/{hieradata,maifests,modules} 5. Create the Hiera conf file for the production environment in `/etc/puppetlabs/code/environments/production/hiera.yaml`{code:java}---version: 5defaults:  datadir: hieradata  data_hash: yaml_datahierarchy:  - name: "Per-node data"path: "nodes/%{trusted.certname}.yaml"  - name: "common"path: "common.yaml"{code} 6. Add common data in `/etc/puppetlabs/code/environments/production/hieradata/common.yaml`:{code:java}---group: Compute Nodes{code} 7a. Add per-node hiera data for slurm1.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/slurm1.pi.sjtu.edu.cn.yaml`:{code:java}---group: SLURM{code} 7b. Add per-node hiera data for puppet.pi.sjtu.edu.cn in `/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml`:{code:java}---group: Puppet Server{code} 8a. Lookup group for puppet.pi.sjtu.edu.cn and successfully get "Puppet Server" stored in `puppet.pi.sjtu.edu.cn.yaml`.{code:java}# puppet lookup group --node puppet.pi.sjtu.edu.cn --explainSearching for "lookup_options"  Global Data Provider (hiera configuration version 5)No such key: "lookup_options"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Merge strategy hash  Hierarchy entry "Per-node data"Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"  Original path: "nodes/%{trusted.certname}.yaml"  No such key: "lookup_options"  Hierarchy entry "common"Path "/etc/puppetlabs/code/environments/production/hieradata/common.yaml"  Original path: "common.yaml"  No such key: "lookup_options"Searching for "group"  Global Data Provider (hiera configuration version 5)No such key: "group"  Environment Data Provider (hiera configuration version 5)Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"Hierarchy entry "Per-node data"  Path "/etc/puppetlabs/code/environments/production/hieradata/nodes/puppet.pi.sjtu.edu.cn.yaml"Original path: "

Jira (PUP-7362) Puppet lookup in 4.9.5 failed to interpolate Hiera data path

2017-03-16 Thread Jianwen Wei (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jianwen Wei created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7362 
 
 
 
  Puppet lookup in 4.9.5 failed to interpolate Hiera data path  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.9.4 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Components:
 

 CLI 
 
 
 

Created:
 

 2017/03/16 7:35 AM 
 
 
 

Environment:
 
 
CentOS 7 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Jianwen Wei 
 
 
 
 
 
 
 
 
 
 
Hi, 
 This issue was orginaly posted on Pupepet user lsit https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/puppet-users/0Pgxjk5Ru4I/goQU3tz3BQAJ . Being suggested by Eric Thompson and Henrik Lindberg, I file a ticket for PUP here. 
 After upgrading openproductionource Puppet to version 4.9.4, I followed the Hiera guide https://docs.puppet.com/puppet/4.9/hiera_hierarchy.html#most-hierarchies-interpolate-variables to feed some data to it. I found that for some node, 'puppet lookup' failed to interpolate variables in yaml setting, which lead to incorrect lookup results.