Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-05-23 Thread Parker Leach (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Parker Leach updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Parker Leach  
 
 
Labels: 
 docs_reviewed jira_escalated  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-26 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Release Notes: 
 Bug Fix  
 
 
Release Notes Summary: 
 Fixes a bug that prevented the "puppetserver_gem" provider from managing gems that were first loaded by facter.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-19 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 DevInfraOps Phoenix  2022-04-27  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-15 Thread Christopher Thorn (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Christopher Thorn updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Christopher Thorn  
 
 
Sprint: 
 Phoenix DevInfraOps  2022- 05 04 - 11 27  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-15 Thread Christopher Thorn (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Christopher Thorn assigned an issue to Christopher Thorn  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Christopher Thorn  
 
 
Assignee: 
 Christopher Thorn  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-13 Thread Nirupama Mantha (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nirupama Mantha updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Nirupama Mantha  
 
 
Sprint: 
 Phoenix 2022- 04 05 - 27 11  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-07 Thread Lisa Ross (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Lisa Ross updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Lisa Ross  
 
 
Fix Version/s: 
 PUP 7.17.0  
 
 
Fix Version/s: 
 PUP 6.28.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-06 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Story Points: 
 2  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-04-06 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Phoenix 2022-04-27  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-02-09 Thread Jarret Lavallee (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jarret Lavallee commented on  PUP-11452  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
 Thanks for reviewing this josh. I opened up https://github.com/puppetlabs/puppet/pull/8872 with the changes.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-02-08 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-11452  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
 Thanks for digging into this issue jarret.lavallee I agree that it's better to shell out than try to list gems "in process" as the puppetserver_gem provider is currently doing. Could you submit your changes (https://github.com/jarretlavallee/puppetlabs-puppetserver_gem/commit/327c7c90f40874d3c7d5f31d8708cf12366cca63) as a PR to puppet#6.x? We can help with the tests if needed.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-02-07 Thread Jarret Lavallee (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jarret Lavallee updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Jarret Lavallee  
 

  
 
 
 
 

 
 The {{puppetserver_gem}} package provider fails to list the correct gem list in puppetserver when there is a gem installed with `puppet_gem` and added by a `require` during the agent run or apply. In this scenario, the gem is listed as already installed by the {{puppetserver_gem}} provider when it is not installed in the puppetserver gem space.*Logs*The gem is only installed into the puppet gem space{code}# puppetserver gem list aws-sdk-s3*** LOCAL GEMS ***# /opt/puppetlabs/puppet/bin/gem list aws-sdk-s3*** LOCAL GEMS ***aws-sdk-s3 (1.112.0){code}Running the agent or apply shows the gem is prefetched in the {{puppetserver_gem}} provider{code}# puppet apply install.pp --debug |& grep aws-sdk-s3Debug: /Package[aws-sdk-s3]: Provider puppetserver_gem does not support features targetable; not managing attribute commandDebug: /Package[aws-sdk-s3]: Provider puppetserver_gem does not support features install_only; not managing attribute install_onlyDebug: /Package[aws-sdk-s3]: Provider puppetserver_gem does not support features virtual_packages; not managing attribute allow_virtualDebug: Puppet::Type::Package::ProviderPuppetserver_gem: Prefetched instance: aws-sdk-s3 via command: default{code}*Reproduction*  #  1)  On a 7.x Puppetserver - PE 2021.4.0 in this example  #  2)  Install the gem using the `puppet_gem` provider: {{puppet resource package aws-sdk-s3 ensure=installed provider=puppet_gem}}  #  3)  Add the following fact into the environment and ensure it is downloaded with {{puppet plugin download}}{code}Facter.add(:testing) do  setcode dorequire 'aws-sdk-s3'Aws::S3::GEM_VERSION  endend{code} # 4)  Apply the following manifest to observe that the {{puppetserver_gem}} package is not installed  {code} package{'aws-sdk-s3':  ensure => installed,  provider => puppetserver_gem}{code}  *Potential Fix*This looks to be an issue due to the {{puppetserver_gem}} not forking the gem list command, so the [loaded gems are listed in these lines|https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/package/puppetserver_gem.rb#L162-L170].If I replace those lines with one that uses the {{/opt/puppetlabs/puppet/bin/gem}} command, the issue no longer appears. For example:{code}output = execute_gem_command(Puppet::Type::Package::ProviderPuppet_gem.provider_command, ["list","--local"], gem_env)gem_list = output.lines.reject { |gem| gem =~ / \(default\: / }{code}There is a significant difference in the number of gems listed between the two outputs.{code}# The current implementation> sio_out.string.lines.reject { |gem| gem =~ / \(default\: / }.length=> 56# Shelling out to `gem`> output.lines.reject { |gem| gem =~ / \(default\: / }.length=> 25{code}This aligns with the `puppetserver gem list` and `gem list` commands.{code}# puppetserver gem list |grep -v default | wc -l25# /opt/puppetlabs/puppet/bin/gem list |grep -v default | wc 

Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-02-07 Thread Jarret Lavallee (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jarret Lavallee updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Jarret Lavallee  
 

  
 
 
 
 

 
 The {{puppetserver_gem}} package provider fails to list the correct gem list in puppetserver when there is a gem installed with `puppet_gem` and added by a `require` during the agent run or apply. In this scenario, the gem is listed as already installed by the {{puppetserver_gem}} provider when it is not installed in the puppetserver gem space.*Logs*The gem is only installed into the puppet gem space{code}# puppetserver gem list aws-sdk-s3*** LOCAL GEMS ***# /opt/puppetlabs/puppet/bin/gem list aws-sdk-s3*** LOCAL GEMS ***aws-sdk-s3 (1.112.0){code}Running the agent or apply shows the gem is prefetched in the {{puppetserver_gem}} provider{code}# puppet apply install.pp --debug |& grep aws-sdk-s3Debug: /Package[aws-sdk-s3]: Provider puppetserver_gem does not support features targetable; not managing attribute commandDebug: /Package[aws-sdk-s3]: Provider puppetserver_gem does not support features install_only; not managing attribute install_onlyDebug: /Package[aws-sdk-s3]: Provider puppetserver_gem does not support features virtual_packages; not managing attribute allow_virtualDebug: Puppet::Type::Package::ProviderPuppetserver_gem: Prefetched instance: aws-sdk-s3 via command: default{code}*Reproduction* 1) On a 7.x Puppetserver - PE 2021.4.0 in this example 2) Install the gem using the `puppet_gem` provider: {{puppet resource package aws-sdk-s3 ensure=installed provider=puppet_gem}} 3) Add the following fact into the environment and ensure it is downloaded with {{puppet plugin download}}  {code}Facter.add(:testing) do  setcode dorequire 'aws-sdk-s3'Aws::S3::GEM_VERSION  endend{code}  4) Apply the following manifest to observe that the {{puppetserver_gem}} package is not installed  {code} package{'aws-sdk-s3':  ensure => installed,  provider => puppetserver_gem}{code}  *Potential Fix*This looks to be an issue due to the {{puppetserver_gem}} not forking the gem list command, so the [loaded gems are listed in these lines|https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/package/puppetserver_gem.rb#L162-L170].If I replace those lines with one that uses the {{/opt/puppetlabs/puppet/bin/gem}} command, the issue no longer appears. For example:{code}output = execute_gem_command(Puppet::Type::Package::ProviderPuppet_gem.provider_command, ["list","--local"], gem_env)gem_list = output.lines.reject { |gem| gem =~ / \(default\: / }{code}There is a significant difference in the number of gems listed between the two outputs.{code}# The current implementation> sio_out.string.lines.reject { |gem| gem =~ / \(default\: / }.length=> 56# Shelling out to `gem`> output.lines.reject { |gem| gem =~ / \(default\: / }.length=> 25{code}This aligns with the `puppetserver gem list` and `gem list` commands.{code}#  puppetserver  /opt/puppetlabs/puppet/bin/  gem list |grep -v default | wc - l25 l56 #  /opt/puppetlabs/puppet/bin/  

Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-02-07 Thread Jarret Lavallee (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jarret Lavallee updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Jarret Lavallee  
 
 
Zendesk Ticket Count: 
 1  
 
 
Zendesk Ticket IDs: 
 47197  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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


Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-02-07 Thread Jarret Lavallee (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jarret Lavallee created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 PUP 7.13.1  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Types and Providers  
 
 
Created: 
 2022/02/07 7:31 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Jarret Lavallee  
 

  
 
 
 
 

 
 The puppetserver_gem package provider fails to list the correct gem list in puppetserver when there is a gem installed with `puppet_gem` and added by a `require` during the agent run or apply. In this scenario, the gem is listed as already installed by the puppetserver_gem provider when it is not installed in the puppetserver gem space. Logs The gem is only installed into the puppet gem space  
 
 
 
 
 # puppetserver gem list aws-sdk-s3  
 
 
    
 
 
 *** LOCAL GEMS ***  
 
 
    
  

Jira (PUP-11452) puppetserver_gem doesn't install gems when they are loaded by facter

2022-02-07 Thread Austin Boyd (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Austin Boyd updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11452  
 
 
  puppetserver_gem doesn't install gems when they are loaded by facter   
 

  
 
 
 
 

 
Change By: 
 Austin Boyd  
 
 
Labels: 
 jira_escalated  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





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