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

DNF provider cannot update packages (install command will not update)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.5.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      tl;dr dnf install will not install a newer version of a package if it's already installed:

      [root@fedora-22-x64 vagrant]# /bin/dnf -y install cockpit
      Last metadata expiration check performed 0:18:07 ago on Thu May 19 13:40:06 2016.
      Package cockpit-0.67-2.fc22.x86_64 is already installed, skipping.
      Dependencies resolved.
      Nothing to do.
      Complete!
      

      Full log of proof:

      [root@fedora-22-x64 vagrant]# rpm -qa cockpit
      cockpit-0.67-2.fc22.x86_64
      [root@fedora-22-x64 vagrant]# dnf list cockpit
      Last metadata expiration check performed 0:17:14 ago on Thu May 19 13:40:06 2016.
      Installed Packages
      cockpit.x86_64                                     0.67-2.fc22                                       @System
      Available Packages
      cockpit.src                                        0.106-1.fc22                                      group_cockpit-cockpit-preview
      cockpit.x86_64                                     0.106-1.fc22                                      group_cockpit-cockpit-preview
      [root@fedora-22-x64 vagrant]# puppet resource package cockpit
      package { 'cockpit':
        ensure => '0.67-2.fc22',
      }
      [root@fedora-22-x64 vagrant]# puppet resource package cockpit ensure=latest --debug
      Debug: Prefetching dnf resources for package
      Debug: Executing: '/bin/rpm --version'
      Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n''
      Debug: Executing: '/bin/dnf check-update'
      Debug: /Package[cockpit]/ensure: cockpit "0.67-2.fc22" is installed, latest is "0:0.94-1.fc22"
      Debug: Package[cockpit](provider=dnf): Ensuring => latest
      Debug: Executing: '/bin/dnf -d 0 -e 1 -y install cockpit'
      Notice: /Package[cockpit]/ensure: ensure changed '0.67-2.fc22' to '0:0.94-1.fc22'
      Debug: Finishing transaction 36208880
      Debug: Storing state
      Debug: Stored state in 0.01 seconds
      Debug: Executing: '/bin/rpm -q cockpit --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
      package { 'cockpit':
        ensure => '0.67-2.fc22',
      }
      [root@fedora-22-x64 vagrant]# /bin/dnf -y install cockpit
      Last metadata expiration check performed 0:18:07 ago on Thu May 19 13:40:06 2016.
      Package cockpit-0.67-2.fc22.x86_64 is already installed, skipping.
      Dependencies resolved.
      Nothing to do.
      Complete!
      [root@fedora-22-x64 vagrant]# /bin/dnf -y upgrade cockpit
      Last metadata expiration check performed 0:18:26 ago on Thu May 19 13:40:06 2016.
      Dependencies resolved.
      ==================================================================================================================================
       Package                              Arch         Version                              Repository                           Size
      ==================================================================================================================================
      Installing:
       cockpit-networkmanager               noarch       0.106-1.fc22                         group_cockpit-cockpit-preview        42 k
       cockpit-storaged                     noarch       0.106-1.fc22                         group_cockpit-cockpit-preview        52 k
       device-mapper-multipath              x86_64       0.4.9-73.fc22                        fedora                              116 k
       device-mapper-multipath-libs         x86_64       0.4.9-73.fc22                        fedora                              215 k
       iscsi-initiator-utils                x86_64       6.2.0.873-25.gitc9d830b.fc22         fedora                              423 k
       iscsi-initiator-utils-iscsiuio       x86_64       6.2.0.873-25.gitc9d830b.fc22         fedora                               83 k
       libstoraged                          x86_64       2.1.2-1.fc22                         group_cockpit-cockpit-preview       119 k
       python3                              x86_64       3.4.2-6.fc22                         updates                              53 k
       python3-libs                         x86_64       3.4.2-6.fc22                         updates                             6.6 M
       python3-pip                          noarch       6.0.8-1.fc22                         fedora                              1.7 M
       python3-setuptools                   noarch       17.1.1-3.fc22                        updates                             406 k
       storaged                             x86_64       2.1.2-1.fc22                         group_cockpit-cockpit-preview       360 k
       storaged-lvm2                        x86_64       2.1.2-1.fc22                         group_cockpit-cockpit-preview        64 k
      Upgrading:
       cockpit                              x86_64       0.106-1.fc22                         group_cockpit-cockpit-preview        43 k
       cockpit-bridge                       x86_64       0.106-1.fc22                         group_cockpit-cockpit-preview       184 k
       cockpit-docker                       x86_64       0.106-1.fc22                         group_cockpit-cockpit-preview        51 k
       cockpit-shell                        noarch       0.106-1.fc22                         group_cockpit-cockpit-preview       727 k
       cockpit-ws                           x86_64       0.106-1.fc22                         group_cockpit-cockpit-preview       487 k
       
      Transaction Summary
      ==========================================================================e
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  peter.souter Peter Souter
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: