Issue #13397 has been updated by Wade Minter.

Status changed from Needs More Information to Needs Decision
Assignee changed from Wade Minter to Chris Price

I'm able to reproduce it regularly.


    root@stage-web1:~# gem search -l god
    *** LOCAL GEMS ***
    god (0.12.1, 0.11.0)
    
    root@stage-web1:~# puppet agent --test
    info: Caching catalog for stage-web1.teamsnap.com
    info: Applying configuration version '1333046069'
    notice: /Stage[main]/Teamsnap_resque_worker::Package/Package[god]/ensure: 
ensure changed '0.12.10.11.0' to '0.12.1'
    notice: Finished catalog run in 8.04 seconds
    
    root@stage-web1:~# puppet agent --test
    info: Caching catalog for stage-web1.teamsnap.com
    info: Applying configuration version '1333046069'
    notice: /Stage[main]/Teamsnap_resque_worker::Package/Package[god]/ensure: 
ensure changed '0.12.10.11.0' to '0.12.1'
    notice: Finished catalog run in 7.99 seconds
    
    root@stage-web1:~# puppet agent --test
    info: Caching catalog for stage-web1.teamsnap.com
    info: Applying configuration version '1332908017'
    notice: /Stage[main]/Teamsnap_resque_worker::Package/Package[god]/ensure: 
ensure changed '0.12.10.11.0' to '0.12.1'
    notice: Finished catalog run in 8.08 seconds
    
Here's my manifest:


    class teamsnap_resque_worker::package {
        package{"god":
          ensure => latest,
          provider => 'gem'
        }
    }
    

Maybe ensure => latest is the culprit?
----------------------------------------
Bug #13397: Puppet 2.7.12 not handling multiple versions of installed gems 
properly
https://projects.puppetlabs.com/issues/13397#change-58856

Author: Wade Minter
Status: Needs Decision
Priority: Normal
Assignee: Chris Price
Category: 
Target version: 
Affected Puppet version: 2.7.12
Keywords: array, ruby, gems
Branch: 


I just upgraded from Puppet 2.7.9 to 2.7.12, and am seeing something odd with 
regards to gem management.

On our systems, we have multiple versions of gems installed:

    root@resque2:~# gem search -l libshadow
    *** LOCAL GEMS ***
    libshadow (1.0.0, 0.0.2)
    root@resque2:~# gem search -l god
    *** LOCAL GEMS ***
    god (0.12.1, 0.12.0, 0.11.0)
    
However, when puppet runs, it appears to be concatenating the array of all of 
those versions together to build a string when comparing the installed versions 
to the desired target version:

    root@resque2:~# puppet agent --test
    info: Caching catalog for resque2.teamsnap.com
    info: Applying configuration version '1332685435'
    notice: /Stage[main]//Package[libshadow]/ensure: ensure changed 
'1.0.00.0.2' to '1.0.0'
    notice: /Stage[main]/Teamsnap_resque_worker::Package/Package[god]/ensure: 
ensure changed '0.12.10.12.00.11.0' to '0.12.1'
    notice: Finished catalog run in 12.35 seconds
    
This seems to be incorrect behavior.



-- 
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.

Reply via email to