Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Pierre Radermecker commented on PUP-1244 Re: Yum provider using version-release to validate installation. Is there a possibility to have a fix in 3.x ? Add Comment This message was sent by Atlassian JIRA (v6.4.5#64020-sha1:78acd6c) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Kurt Wall updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Release tickets do not need to be testrailed. Change By: Kurt Wall QA Contact: EricThompson KurtWall QA Status: Reviewed Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Kylo Ginsberg commented on PUP-1244 Re: Yum provider using version-release to validate installation. Yeah there was a ton of review of this along the way. Resolving. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman commented on an issue Re: Yum provider using version-release to validate installation. Thanks so much for making those fixes and getting this pushed through... I was without connectivity for most of yesterday afternoon/evening. Add Comment Puppet / PUP-1244 Yum provider using version-release to validate installation. When using yum provider Puppet complains(error output) when using only the version(string) of the package to install or installed at the time of verification. {code} $snmp_version = 5.3.2.2 package { net-snmp: ensure = ${snmp_version}; } Client output: debug: //Node[client.example.com]/snmp::base/Package[net-snmp]: Changing ensur... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Joshua Partlow assigned an issue to Jason Antman Found an error still, I think; notes in the PR. Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Joshua Partlow Assignee: JoshuaPartlow JasonAntman Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Joshua Partlow updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Joshua Partlow WhenusingyumproviderPuppetcomplains(erroroutput)whenusingonlytheversion(string)ofthepackagetoinstallorinstalledatthetimeofverification.{code}$snmp_version=5.3.2.2package{net-snmp:ensure=${snmp_version};} /pre Clientoutput: pre debug://Node[client.example.com]/snmp::base/Package[net-snmp]:Changingensuredebug://Node[client.example.com]/snmp::base/Package[net-snmp]:1change(s)debug:Package[net-snmp](provider=yum):Ensuring=5.3.2.2**(1)**debug:Puppet::Type::Package::ProviderYum:Executing'/usr/bin/yum-d0-e0-yinstallnet-snmp-5.3.2.2'**(2)**debug:Puppet::Type::Package::ProviderYum:Executing'/bin/rpm-qnet-snmp--nosignature--nodigest--qf%{NAME}%|EPOCH?{%{EPOCH}}:{0}|%{VERSION}%{RELEASE}%{ARCH}'err://Node[client.example.com]/snmp::base/Package[net-snmp]/ensure:changefrom5.3.2.2-7.el5_4.2to5.3.2.2failed:Couldnotupdate:Failedtoupdatetoversion5.3.2.2,gotversion5.3.2.2-7.el5_4.2insteadat/opt/git/development/modules/snmp/manifests/init.pp:26notice://Node[client.example.com]/snmp::base/File[/etc/snmp/snmpd.conf]:Dependencypackage[net-snmp]has1failureswarning://Node[labtest40-v3.ea-colo.ea.com]/snmp::base/File[/etc/snmp/snmpd.conf]:Skippingbecauseoffaileddependencies{code}Thepackageisinstalled**(1)**buttheerrorisstillshownatthetimeofvalidation**(2)**,samesituationifpackageisalreadyinstalled.in.../provider/package/yum.rb:{code}definstallchoplines---is=self.queryunlessisraisePuppet::Error,Couldnotfindpackage%s%self.nameend#FIXME:Shouldweraiseanexceptionevenifshould==:latest#andyumupdatedustoaversionotherthan@param_hash[:ensure]?ifshouldshould!=is[:ensure]raisePuppet::Error,Failedtoupdatetoversion#{should},gotversion#{is[:ensure]}insteadend{code}Theerrorarisesas**should**isnotequalto**is[:ensure]**in.../provider/package/rpm.rbthequerydefinecommentsaysitwillprovidethe**version-release**{code}#Findthefullyversionedpackagenameandtheversionalone.Returns#ahashwithentries:instance=fullyversionedpackagename,and#:ensure=version-releasedefquery{code}Thevalidationismadeintheensureattribute($snmp_version)stringagainstversion-releaseinstalled.Itmakessensewhensomebodydefinessomethinglikeensure=${snmp_version}-${snmp-release},butnotinthisusecase.Testedin0.24.8butreportedalsoon0.25.4.rpm.rbandyum.rbarenotbehavinginthesamewayasyumclibehaves. Add Comment
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Andy Parker assigned an issue to Joshua Partlow I'm rolling off of the PR role and Joshua Partlow is rolling on. Assigning this to him so that he can finish it off. I've rebased and reworked the commits and pushed them up to https://github.com/zaphod42/puppet/tree/pr/2866. Joshua Partlow, I think you just need to run this through some exploratory tests and check that the unit test coverage looks good. After that a few notes about the change in the puppet 4 BREAKS.md doc would not go awry. Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Andy Parker Assignee: AndyParker JoshuaPartlow Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman commented on an issue Re: Yum provider using version-release to validate installation. Cool, thanks Andy Parker! Add Comment Puppet / PUP-1244 Yum provider using version-release to validate installation. When using yum provider Puppet complains(error output) when using only the version(string) of the package to install or installed at the time of verification. {code} $snmp_version = 5.3.2.2 package { net-snmp: ensure = ${snmp_version}; } /pre Client output: pre debug: //Node[client.example.com]/snmp::base/Package[net-snmp]: Cha... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Andy Parker updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Andy Parker Component/s: Community Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Andy Parker assigned an issue to Andy Parker Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Andy Parker Assignee: JasonAntman AndyParker Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman commented on an issue Re: Yum provider using version-release to validate installation. I've rebase this on the puppet-4 branch and cut https://github.com/puppetlabs/puppet/pull/2866 Add Comment Puppet / PUP-1244 Yum provider using version-release to validate installation. When using yum provider Puppet complains(error output) when using only the version(string) of the package to install or installed at the time of verification. {code} $snmp_version = 5.3.2.2 package { net-snmp: ensure = ${snmp_version}; } /pre Client output: pre debug: //Node[client.example.com]/snmp::base/Package[net-snmp]: Cha... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman assigned an issue to Jason Antman Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Jason Antman Assignee: JasonAntman Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Kylo Ginsberg updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Kylo Ginsberg Fix Version/s: 4.0.0 Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jose Luis Ledesma commented on an issue Re: Yum provider using version-release to validate installation. I have found a problem trying to upgrade a package on rhel6. It seems could be related to this ticket: cat libcgroup.pp package { 'libcgroup': ensure = '0.37-7.2.el6_4', } rpm -q libcgroup libcgroup-0.37-7.el6.x86_64 puppet apply libcgroup.pp --no-noop --debug [... lots of messages... ] Debug: Package[libcgroup](provider=yum): Ensuring = 0.37-7.2.el6_4 Debug: Executing '/bin/rpm -q libcgroup --nosignature --nodigest --qf % {NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY}\n' Debug: Package[libcgroup](provider=yum): Downgrading package libcgroup from version 0.37-7.el6 to 0.37-7.2.el6_4 Debug: Executing '/usr/bin/yum -d 0 -e 0 -y downgrade libcgroup-0.37-7.2.el6_4' Debug: Executing '/bin/rpm -q libcgroup --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}: {0} | % {VERSION} % {RELEASE} % {ARCH} :DESC: % {SUMMARY} \n' Error: Could not update: Failed to update to version 0.37-7.2.el6_4, got version 0.37-7.el6 instead Error: /Stage[main]/Main/Package[libcgroup]/ensure: change from 0.37-7.el6 to 0.37-7.2.el6_4 failed: Could not update: Failed to update to version 0.37-7.2.el6_4, got version 0.37-7.el6 instead So it seems that puppet thinks that going from 0.37-7.el6 to 0.37-7.2.el6_4 is a downgrade (although some messages talks about an update) when in fact is an update so the yum command fails. Add Comment
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Felix Frank updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Felix Frank WhenusingyumproviderPuppetcomplains(erroroutput)whenusingonlytheversion(string)ofthepackagetoinstallorinstalledatthetimeofverification. pre {code} $snmp_version=5.3.2.2package{net-snmp:ensure=${snmp_version};}/preClientoutput:predebug://Node[client.example.com]/snmp::base/Package[net-snmp]:Changingensuredebug://Node[client.example.com]/snmp::base/Package[net-snmp]:1change(s)debug:Package[net-snmp](provider=yum):Ensuring=5.3.2.2**(1)**debug:Puppet::Type::Package::ProviderYum:Executing'/usr/bin/yum-d0-e0-yinstallnet-snmp-5.3.2.2'**(2)**debug:Puppet::Type::Package::ProviderYum:Executing'/bin/rpm-qnet-snmp--nosignature--nodigest--qf%{NAME}%|EPOCH?{%{EPOCH}}:{0}|%{VERSION}%{RELEASE}%{ARCH}'err://Node[client.example.com]/snmp::base/Package[net-snmp]/ensure:changefrom5.3.2.2-7.el5_4.2to5.3.2.2failed:Couldnotupdate:Failedtoupdatetoversion5.3.2.2,gotversion5.3.2.2-7.el5_4.2insteadat/opt/git/development/modules/snmp/manifests/init.pp:26notice://Node[client.example.com]/snmp::base/File[/etc/snmp/snmpd.conf]:Dependencypackage[net-snmp]has1failureswarning://Node[labtest40-v3.ea-colo.ea.com]/snmp::base/File[/etc/snmp/snmpd.conf]:Skippingbecauseoffaileddependencies /pre {code} Thepackageisinstalled**(1)**buttheerrorisstillshownatthetimeofvalidation**(2)**,samesituationifpackageisalreadyinstalled.in.../provider/package/yum.rb: pre {code} definstallchoplines---is=self.queryunlessisraisePuppet::Error,Couldnotfindpackage%s%self.nameend#FIXME:Shouldweraiseanexceptionevenifshould==:latest#andyumupdatedustoaversionotherthan@param_hash[:ensure]?ifshouldshould!=is[:ensure]raisePuppet::Error,Failedtoupdatetoversion#{should},gotversion#{is[:ensure]}insteadend /pre {code} Theerrorarisesas**should**isnotequalto**is[:ensure]**in.../provider/package/rpm.rbthequerydefinecommentsaysitwillprovidethe**version-release** pre {code} #Findthefullyversionedpackagenameandtheversionalone.Returns#ahashwithentries:instance=fullyversionedpackagename,and#:ensure=version-releasedefquery /pre {code} Thevalidationismadeintheensureattribute($snmp_version)stringagainstversion-releaseinstalled.Itmakessensewhensomebodydefinessomethinglikeensure=${snmp_version}-${snmp-release},butnotinthisusecase.Testedin0.24.8butreportedalsoon0.25.4.rpm.rbandyum.rbarenotbehavinginthesamewayasyumclibehaves. Add Comment
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman assigned an issue to Jason Antman Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Jason Antman Assignee: JasonAntman Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Zachary Stern updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Zachary Stern Labels: customer redmineyum Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman commented on an issue Re: Yum provider using version-release to validate installation. I've started a branch with some unit tests that describe what I think the intended behavior is, as well as some of the current behavior: https://github.com/jantman/puppet/tree/PUP1244tests I've also copied the current logic of Puppet::Util::Package.versioncmp to a yumversioncmp() method in the yum provider, as the generic (naive) version comparison done by the current versioncmp() is the problem here. There are probably also going to need to be some tweaks to the 'latest' logic. In light of PUP-682 and PUP-683, I'm going to see if I can dive into the yum/rpm source to figure out the details of version comparison before I do any more work. Add Comment Puppet / PUP-1244 Yum provider using version-release to validate installation. When using yum provider Puppet complains(error output) when using only the version(string) of the package to install or installed at the time of verification. pre $snmp_version = 5.3.2.2 package { net-snmp: ensure = ${snmp_version}; } /pre Client output: pre debug: //Node[client.example.com]/snmp::base/Package[net-snmp]: Chan... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman commented on an issue Re: Yum provider using version-release to validate installation. From the man page for yum 3.2.29 on CentOS 6.4: SPECIFYING PACKAGE NAMES A package can be referred to for install, update, remove, list, info etc with any of the following as well as globs of any of the following: name name.arch name-ver name-ver-rel name-ver-rel.arch name-epoch:ver-rel.arch epoch:name-ver-rel.arch what we seem to be concerned with is ver vs ver-rel, and perhaps globs of those values (PUP-1365). Add Comment Puppet / PUP-1244 Yum provider using version-release to validate installation. When using yum provider Puppet complains(error output) when using only the version(string) of the package to install or installed at the time of verification. pre $snmp_version = 5.3.2.2 package { net-snmp: ensure = ${snmp_version}; } /pre Client output: pre debug: //Node[client.example.com]/snmp::base/Package[net-snmp]: Chan... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Change By: Jason Antman Component/s: TypesandProviders Labels: redmine yum Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman commented on an issue Re: Yum provider using version-release to validate installation. This was opened 2010-04-12 against 0.24.8 and is still happening today with 3.4.1. I'd classify this as a high priority bug - what's reported by Puppet doesn't match what's actually being done, and even worse, on an initial run the package is actually installed even though the report says the resource failed, and on subsequent runs, the package is downgraded. To be clear (see below), yum DOES install/upgrade the package (on every puppet run too), but REPORTS FAILURE as the post-yum-command version comparison fails. I've attached the full --debug output of an example apply run, but what follows here are the important parts: ### [root@djaapafes7 ~]# puppet --version 3.3.2 [root@djaapafes7 ~]# /bin/rpm -q puppet --nosignature --nodigest --qf 'NAME: % {NAME} EPOCH: %|EPOCH?{%{EPOCH}}:{0}| VERSION: %{VERSION} RELEASE: %{RELEASE} ARCH: %{ARCH}\n' NAME: puppet EPOCH: 0 VERSION: 3.3.2 RELEASE: 1.el5 ARCH: noarch [root@djaapafes7 ~]# cat /home/jantman/temp/PUP1244.pp package {'puppet': ensure = '3.4.1' } [root@djaapafes7 ~]# puppet apply --debug /home/jantman/temp/PUP1244.pp ... Info: Applying configuration version '1388804396' Debug: Prefetching yum resources for package Debug: Executing '/bin/rpm --version' Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}: {0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY}\n'' Debug: Package[puppet](provider=yum): Ensuring = 3.4.1 Debug: Executing '/bin/rpm -q puppet --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0} | % {VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY}\n' Debug: Executing '/usr/bin/yum -d 0 -e 0 -y install puppet-3.4.1' Debug: Executing '/bin/rpm -q puppet --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} % {RELEASE} %{ARCH} :DESC: %{SUMMARY}\n' Error: Could not update: Failed to update to version 3.4.1, got version 3.4.1-1.el5 instead Error: /Stage[main]//Package[puppet]/ensure: change from 3.3.2-1.el5 to 3.4.1 failed: Could not update: Failed to update to version 3.4.1, got version 3.4.1-1.el5 instead Debug: Finishing transaction 23456260688080 [root@djaapafes7 ~]# puppet --version 3.4.1 [root@djaapafes7 ~]# /bin/rpm -q puppet --nosignature --nodigest --qf 'NAME: %{NAME} EPOCH: %|EPOCH?{%{EPOCH}}:{0}| VERSION: %{VERSION} RELEASE: %{RELEASE} ARCH: % {ARCH}\n' NAME: puppet EPOCH: 0 VERSION: 3.4.1 RELEASE: 1.el5 ARCH: noarch ... and if we run it again... [root@djaapafes7 ~]# puppet apply --debug /home/jantman/temp/PUP1244.pp ... Info: Applying configuration version '1388804480' Debug: Prefetching yum resources for package Debug: Executing '/bin/rpm --version' Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: % {SUMMARY}\n'' Debug: Package[puppet](provider=yum): Ensuring = 3.4.1 Debug: Executing '/bin/rpm -q puppet --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY} \n' Debug: Package[puppet](provider=yum): Downgrading package puppet from version 3.4.1-1.el5 to 3.4.1 Debug: Executing '/usr/bin/yum -d 0 -e 0 -y downgrade puppet-3.4.1' Debug: Executing '/bin/rpm -q puppet --nosignature --nodigest --qf % {NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY}\n' Error: Could not update: Failed to update to version 3.4.1, got version 3.4.1-1.el5 instead Error: /Stage[main]/Main/Package[puppet]/ensure:
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title Jason Antman updated an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Attaching the full (and non-jira-parsed) output from debug runs Change By: Jason Antman Attachment: PUPPET-1244.txt Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
Jira (PUP-1244) Yum provider using version-release to validate installation.
Title: Message Title redmine.exporter created an issue Puppet / PUP-1244 Yum provider using version-release to validate installation. Issue Type: Bug Assignee: Unassigned Created: 26/Dec/13 3:08 AM Labels: redmine Priority: Normal Reporter: redmine.exporter When using yum provider Puppet complains(error output) when using only the version(string) of the package to install or installed at the time of verification. pre $snmp_version = 5.3.2.2 package { net-snmp: ensure = $ {snmp_version}; } /pre Client output: pre debug: //Node[client.example.com]/snmp::base/Package[net-snmp]: Changing ensure debug: //Node[client.example.com]/snmp::base/Package[net-snmp]: 1 change(s) debug: Package[net-snmp](provider=yum): Ensuring = 5.3.2.2 *(1)* debug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/yum -d 0 -e 0 -y install net-snmp-5.3.2.2' *(2)* debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -q net-snmp --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} ' err: //Node[client.example.com]/snmp::base/Package[net-snmp]/ensure: change from 5.3.2.2-7.el5_4.2 to 5.3.2.2 failed: Could not update: Failed to update to version 5.3.2.2, got version 5.3.2.2-7.el5_4.2 instead at /opt/git/development/modules/snmp/manifests/init.pp:26 notice: //Node[client.example.com]/snmp::base/File[/etc/snmp/snmpd.conf]: Dependency package[net-snmp] has 1 failures warning: //Node[labtest40-v3.ea-colo.ea.com]/snmp::base/File[/etc/snmp/snmpd.conf]: Skipping because of failed dependencies /pre The package is installed *(1)* but the error is still shown at the time of validation *(2)*, same situation if package is already installed. in .../provider/package/yum.rb: pre def install