Issue #17055 has been updated by Andrew Parker. Target version deleted (2.7.x)
As the 2.7.x line is winding down, I am removing the target at 2.7.x from tickets in the system. The 2.7 line should only receive fixes for major problems (crashes, for instance) or security problems. ---------------------------------------- Bug #17055: Portage package provider seeing incorrect installed version when using latest and category https://projects.puppetlabs.com/issues/17055#change-80550 Author: Yun Zheng Hu Status: Investigating Priority: Normal Assignee: eric sorenson Category: provider Target version: Affected Puppet version: 2.7.18 Keywords: mysql eix gentoo latest category Branch: It seems Gentoo's package provider around eix seems to work incorrectly when using a "category" and "latest". (i'm currently using puppet-2.7.18-r1) Example for mysql, my current portage tree has the following version as the latest stable: 5.1.62-r1 This version will install when you do: puppet apply -e 'package { "mysql": ensure => latest, category => 'dev-db' }' --verbose --debug Running this again will result in: debug: Puppet::Type::Package::ProviderPortage: Executing '/usr/bin/eix --nocolor --pure-packages --stable --installed --format <category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] <homepage> <description> ' debug: Puppet::Type::Package::ProviderPortage: Executing '/usr/bin/eix --nocolor --pure-packages --stable --format <category> <name> [<installedversions:LASTVERSION>] [<bestversion:LASTVERSION>] <homepage> <description> --exact --category-name dev-db/mysql' debug: /Stage[main]//Package[mysql]/ensure: mysql "5.1" is installed, latest is "5.1.62-r1" debug: Puppet::Type::Package::ProviderPortage: Executing '/usr/bin/emerge dev-db/mysql' As it looks like it seems that it think mysql is on version 5.1 due to the virtual package: eix --exact virtual/mysql [I] virtual/mysql Available versions: [M]4.0 [M]4.1 [M]5.0 5.1{tbz2} [M]~5.2 [M]~5.3 [M]~5.5 {{embedded minimal static}} Installed versions: 5.1{tbz2}(18:14:35 10/17/12)(-embedded -minimal -static) Description: Virtual for MySQL client or database My current workaround is to specify the category name in the package name itself, which will not reinstall the package. puppet apply -e 'package { "dev-db/mysql": ensure => latest }' --verbose --debug -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
