Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3811

pkg provider 'latest' will refresh without updating package if newer version exists, but is not installable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Team:
      Platform OS

      Description

      From PUP-1270 comments (pasted below): https://tickets.puppetlabs.com/browse/PUP-1270?focusedCommentId=120773&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-120773

      Josh, I think that's a separate bug in 'latest'. I am not seeing it on my test package, using puppet 87fad92f18966ea62544df16d251885794c5ec92 under OmniOS:

      kekkonen ~/repos/puppet 141 % pkg list -vfa PUP-1270-test-package
      FMRI                                                                         IFO
      pkg://niksula.hut.fi/PUP-1270-test-package@1.2,5.11-0.151006:20140930T124721Z i--
      pkg://niksula.hut.fi/PUP-1270-test-package@1.2,5.11-0.151006:20140930T115744Z ---
      pkg://niksula.hut.fi/PUP-1270-test-package@1.1,5.11:20140219T191731Z         ---
      pkg://niksula.hut.fi/PUP-1270-test-package@1.0,5.11-0.151006:20140220T084443Z ---
      pkg://niksula.hut.fi/PUP-1270-test-package@1.0,5.11:20140219T191632Z         ---
      pkg://niksula.hut.fi/PUP-1270-test-package@1.0,5.11:20140219T191204Z         ---
      kekkonen ~/repos/puppet % RUBYLIB=`pwd`/lib pfexec ./bin/puppet apply --verbose -e 'package {"PUP-1270-test-package": ensure => latest }'
      Notice: Compiled catalog for kekkonen.niksula.hut.fi in environment production in 1.55 seconds
      Info: Applying configuration version '1418118002'
      Notice: Applied catalog in 1.29 seconds
      

      I do, however, see it for a package which has a greater version available (but which is not installable)

      kekkonen ~/repos/puppet % pkg list -vfa mdb
      FMRI                                                                         IFO
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151008:20131204T022439Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20140622T160130Z       i--
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20140404T045546Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20131019T183740Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20130731T194820Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20130624T214930Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20130506T161059Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151004:20121011T224059Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151002:20120614T212626Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151002:20120418T225329Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151002:20120401T174139Z       ---
      kekkonen ~/repos/puppet % RUBYLIB=`pwd`/lib pfexec ./bin/puppet apply --verbose -e 'package {"mdb": ensure => latest }'
      Notice: Compiled catalog for kekkonen.niksula.hut.fi in environment production in 2.31 seconds
      Info: Applying configuration version '1418118115'
      Notice: /Stage[main]/Main/Package[mdb]/ensure: ensure changed '0.5.11,5.11-0.151006:20140622T160130Z' to 'latest'
      Notice: Applied catalog in 10.39 seconds
      kekkonen ~/repos/puppet % pkg list -vfa mdb
      FMRI                                                                         IFO
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151008:20131204T022439Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20140622T160130Z       i--
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20140404T045546Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20131019T183740Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20130731T194820Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20130624T214930Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151006:20130506T161059Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151004:20121011T224059Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151002:20120614T212626Z       ---
      pkg://omnios/developer/debug/mdb@0.5.11,5.11-0.151002:20120418T225329Z       ---
      

      However, that bug existed before merging the fix for this one:

      HEAD is now at 75ec21b... Merge branch 'pr/3255'
      kekkonen ~/repos/puppet % RUBYLIB=`pwd`/lib pfexec ./bin/puppet apply --verbose -e 'package {"mdb": ensure => latest }'
      Notice: Compiled catalog for kekkonen.niksula.hut.fi in environment production in 0.78 seconds
      Info: Applying configuration version '1418118398'
      Notice: /Stage[main]/Main/Package[mdb]/ensure: ensure changed '0.5.11-0.151006' to 'latest'
      Notice: Applied catalog in 9.53 seconds
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                lotheac Lauri Tirkkonen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support