Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Claire Cadman updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Claire Cadman Labels: doc_reviewed 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.356228.1587487722000.47509.1587984180089%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Gabriel Nagy updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Gabriel Nagy Fix Version/s: PUP 5.5.20 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.356228.1587487722000.45272.1587645300035%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Josh Cooper updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Josh Cooper Fix Version/s: PUP 6.15.0 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.356228.1587487722000.45086.1587616200112%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Nick Walker updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Nick Walker Release Notes: Bug Fix Release Notes Summary: RedHat subscription Manager update causes ensure => latest to do nothingAfter upgrading RedHat subscription Manager to using ensure => latest on the package provider on a RHEL agent would cause the package resource to never see possible updates. 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.356228.1587487722000.44535.1587581820030%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Gheorghe Popescu commented on PUP-10432 Re: RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems PR for 5.5.x: https://github.com/puppetlabs/puppet/pull/8109 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.356228.1587487722000.43885.1587547620034%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Gheorghe Popescu assigned an issue to Gheorghe Popescu Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Gheorghe Popescu Assignee: Gheorghe Popescu 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.356228.1587487722000.43844.1587540360029%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Mihai Buzgau updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Mihai Buzgau Sprint: NW - 2020-04-29 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.356228.1587487722000.43825.1587537120046%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Mihai Buzgau updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Mihai Buzgau Story Points: 1 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.356228.1587487722000.43826.1587537120148%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Josh Cooper updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Josh Cooper Team: Night's Watch 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.356228.1587487722000.43082.1587489540030%40Atlassian.JIRA.
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Matt Schlosser updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Matt Schlosser *Puppet Version: 5.5.x (probably 6.x as well)* *Puppet Server Version: NA, but 5.3.x* *OS Name/Version: RedHat Linux 7.8*Describe your issue in as much detail as possible… Describe steps to reproduce…*Desired Behavior:*Yum package ensure => latest should ensure latest*Actual Behavior:*Yum package ensure => latest never finds an update. Explicit versions work OK.More details:RH added a newline character when subscription manager is enabled.yum.rb looks for first blank line: [https://github.com/puppetlabs/puppet/blob/f2709eb5b28894cf017dbe41290d3c0d168e721b/lib/puppet/provider/package/yum.rb#L123-L125] {code:java}lib/puppet/provider/package/yum.rb:123-125 def self.parse_updates(str) # Strip off all content before the first blank line body = str.partition(/^\s*\n/m).last{code} As a result, parse_updates returns {} when subscription manager is enabled.Old behavior:{code:java}# yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register.{code} New behavior:{code:java}# yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.{code} workaround 1: disable subscription-manager workaround 2: downgrade subscription-manager Example Code: $app == 'pcmhi' $version == 'latest'{code:java} # package package { $app: ensure=> $version, provider => yum, require => Yumrepo[$app], subscribe => [ Package['nginx'], Package['python3'] ] }{code} Repo Contents:{code:java}Index of rpm/pcmhi/quality_assuranceName Last modified Size../repodata/ 20-Apr-2020 19:28-pcmhi-3.5.23-0.x86_64.rpm 20-Apr-2020 16:01 19.53 MBpcmhi-3.6.0-0.x86_64.rpm20-Apr-2020 19:28 23.33 MB{code}Manual Update Check:{code:java}# yum check-update | grep pcmhi pcmhi.x86_64 1:3.6.0-0 pcmhi{code} Puppet logs:{code:java}^[[0;36mDebug: Executing: '/bin/rpm --version'^[[0m ^[[0;36mDebug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'^[[0m ^[[0;36mDebug: Executing: '/bin/yum check-update'^[[0m{code} PoC fix debug output for yum.rb: {code:java}def self.parse_updates(str) # Strip off all content before the first blank line self.debug "parse_updates input #{str}" body = str.partition(/^\s*\n/m).last self.debug "parse_updates body #{body}" updates = Hash.new { |h, k| h[k] = [] } body.split.each_slice(3) do |tuple| self.debug "tuple #{tuple}" break if tuple[0] =~ /^(Obsoleting|Security:|Update)/ {code} Custom Debug Output (bad): {code:java}Debug: Executing:
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Matt Schlosser updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Matt Schlosser *Puppet Version: 5.5.x (probably 6.x as well)* *Puppet Server Version: NA, but 5.3.x* *OS Name/Version: RedHat Linux 7.8*Describe your issue in as much detail as possible… Describe steps to reproduce…*Desired Behavior:*Yum package ensure => latest should ensure latest*Actual Behavior:*Yum package ensure => latest never finds an update. Explicit versions work OK.More details:RH added a newline character when subscription manager is enabled.yum.rb looks for first blank line: [https://github.com/puppetlabs/puppet/blob/f2709eb5b28894cf017dbe41290d3c0d168e721b/lib/puppet/provider/package/yum.rb#L123-L125] {code:java}lib/puppet/provider/package/yum.rb:123-125 def self.parse_updates(str) # Strip off all content before the first blank line body = str.partition(/^\s*\n/m).last{code} As a result, parse_updates returns {} when subscription manager is enabled.Old behavior:{code:java}# yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register.{code} New behavior:{code:java}# yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.{code} workaround 1: disable subscription-manager workaround 2: downgrade subscription-manager Example Code: $app == 'pcmhi' $version == 'latest'{code:java} # package package { $app: ensure=> $version, provider => yum, require => Yumrepo[$app], subscribe => [ Package['nginx'], Package['python3'] ] }{code} Repo Contents:{code:java}Index of rpm/pcmhi/quality_assuranceName Last modified Size../repodata/ 20-Apr-2020 19:28-pcmhi-3.5.23-0.x86_64.rpm 20-Apr-2020 16:01 19.53 MBpcmhi-3.6.0-0.x86_64.rpm20-Apr-2020 19:28 23.33 MB{code}Manual Update Check:{code:java}# yum check-update | grep pcmhi pcmhi.x86_64 1:3.6.0-0 pcmhi{code} Puppet logs:{code:java}^[[0;36mDebug: Executing: '/bin/rpm --version'^[[0m ^[[0;36mDebug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'^[[0m ^[[0;36mDebug: Executing: '/bin/yum check-update'^[[0m{code} PoC fix for yum.rb: {code:java}def self.parse_updates(str) # Strip off all content before the first blank line self.debug "parse_updates input #{str}" body = str.partition(/^\s*\n/m).last self.debug "parse_updates body #{body}" updates = Hash.new { |h, k| h[k] = [] } body.split.each_slice(3) do |tuple| self.debug "tuple #{tuple}" break if tuple[0] =~ /^(Obsoleting|Security:|Update)/ {code} Custom Debug Output (bad): {code:java}Debug: Executing: '/bin/yum
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Matt Schlosser updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Matt Schlosser *Puppet Version: 5.5.x (probably 6.x as well)* *Puppet Server Version: NA, but 5.3.x* *OS Name/Version: RedHat Linux 7.8*Describe your issue in as much detail as possible… Describe steps to reproduce…*Desired Behavior:*Yum package ensure => latest should ensure latest*Actual Behavior:*Yum package ensure => latest never finds an update. Explicit versions work OK.More details:RH added a newline character when subscription manager is enabled.yum.rb looks for first blank line: [https://github.com/puppetlabs/puppet/blob/f2709eb5b28894cf017dbe41290d3c0d168e721b/lib/puppet/provider/package/yum.rb#L123-L125] {code:java}lib/puppet/provider/package/yum.rb:123-125 def self.parse_updates(str) # Strip off all content before the first blank line body = str.partition(/^\s*\n/m).last{code} As a result, parse_updates returns {} when subscription manager is enabled.Old behavior:{code:java}# yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register.{code} New behavior:{code:java}# yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.{code} workaround 1: disable subscription-manager workaround 2: downgrade subscription-manager Example Code: $app == 'pcmhi' $version == 'latest'{code:java} # package package { $app: ensure=> $version, provider => yum, require => Yumrepo[$app], subscribe => [ Package['nginx'], Package['python3'] ] }{code} Repo Contents:{code:java}Index of rpm/pcmhi/quality_assuranceName Last modified Size../repodata/ 20-Apr-2020 19:28-pcmhi-3.5.23-0.x86_64.rpm 20-Apr-2020 16:01 19.53 MBpcmhi-3.6.0-0.x86_64.rpm20-Apr-2020 19:28 23.33 MB{code}Manual Update Check:{code:java}# yum check-update | grep pcmhi pcmhi.x86_64 1:3.6.0-0 pcmhi{code} Puppet logs:{code:java}^[[0;36mDebug: Executing: '/bin/rpm --version'^[[0m ^[[0;36mDebug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'^[[0m ^[[0;36mDebug: Executing: '/bin/yum check-update'^[[0m{code} PoC fix for yum.rb: {code:java}def self.parse_updates(str) # Strip off all content before the first blank line self.debug "parse_updates input #{str}" body = str.partition(/^\s*\n/m).last self.debug "parse_updates body #{body}" updates = Hash.new { |h, k| h[k] = [] } body.split.each_slice(3) do |tuple| self.debug "tuple #{tuple}" break if tuple[0] =~ /^(Obsoleting|Security:|Update)/ {code} Custom Debug Output (bad): {code:java} Debug: Executing: '/bin/yum
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Matt Schlosser updated an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Change By: Matt Schlosser *Puppet Version: 5.5.x (probably 6.x as well)* *Puppet Server Version: NA, but 5.3.x* *OS Name/Version: RedHat Linux 7.8*Describe your issue in as much detail as possible… Describe steps to reproduce…*Desired Behavior:*Yum package ensure => latest should ensure latest*Actual Behavior:*Yum package ensure => latest never finds an update. Explicit versions work OK.More details:RH added a newline character when subscription manager is enabled.yum.rb looks for first blank line: [https://github.com/puppetlabs/puppet/blob/f2709eb5b28894cf017dbe41290d3c0d168e721b/lib/puppet/provider/package/yum.rb#L123-L125] {code:java} lib/puppet/provider/package/yum.rb:123-125 def self.parse_updates(str) # Strip off all content before the first blank line body = str.partition(/^\s*\n/m).last{code} As a result, parse_updates returns {} when subscription manager is enabled.Old behavior:{code:java} # yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register.{code} New behavior:{code:java} # yum check-update Loaded plugins: product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.{code} As a result, parse_updates returns {} when subscription manager is enabled. workaround 1: disable subscription-managerworkaround 2: downgrade subscription-manager Example Code:$app == 'pcmhi'$version == 'latest'{code:java} # package package { $app: ensure=> $version, provider => yum, require => Yumrepo[$app], subscribe => [ Package['nginx'], Package['python3'] ] }{code} Repo Contents:{code:java} Index of rpm/pcmhi/quality_assuranceName Last modified Size../repodata/ 20-Apr-2020 19:28-pcmhi-3.5.23-0.x86_64.rpm 20-Apr-2020 16:01 19.53 MBpcmhi-3.6.0-0.x86_64.rpm20-Apr-2020 19:28 23.33 MB{code}Manual Update Check:{code:java} # yum check-update | grep pcmhi pcmhi.x86_64 1:3.6.0-0 pcmhi{code} Puppet logs:{code:java} ^[[0;36mDebug: Executing: '/bin/rpm --version'^[[0m ^[[0;36mDebug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'^[[0m ^[[0;36mDebug: Executing: '/bin/yum check-update'^[[0m{code} PoC fix for yum.rb: {code:java} def self.parse_updates(str) # Strip off all content before the first blank line self.debug "parse_updates input #{str}" body = str.partition(/^\s*\n/m).last self.debug "parse_updates body #{body}" updates = Hash.new { |h, k| h[k] = [] } body.split.each_slice(3) do |tuple| self.debug "tuple #{tuple}" break if tuple[0] =~
Jira (PUP-10432) RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems
Title: Message Title Matt Schlosser created an issue Puppet / PUP-10432 RedHat RHBA-2020:1028 breaks yum.rb in yum provider for some systems Issue Type: Bug Assignee: Unassigned Created: 2020/04/21 9:48 AM Priority: Normal Reporter: Matt Schlosser Puppet Version: 5.5.x (probably 6.x as well) Puppet Server Version: NA, but 5.3.x OS Name/Version: RedHat Linux 7.8 Describe your issue in as much detail as possible… Describe steps to reproduce… Desired Behavior: Yum package ensure => latest should ensure latest Actual Behavior: Yum package ensure => latest never finds an update. Explicit versions work OK. More details: RH added a newline character when subscription manager is enabled. yum.rb looks for first blank line: https://github.com/puppetlabs/puppet/blob/f2709eb5b28894cf017dbe41290d3c0d168e721b/lib/puppet/provider/package/yum.rb#L123-L125 lib/puppet/provider/package/yum.rb:123-125 def self.parse_updates(str) # Strip off all content before the first blank line body = str.partition(/^\s*\n/m).last