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

Pacman provider shouldn't be doing partial upgrades

    XMLWordPrintable

    Details

    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Prevent Pacman package provider doing partial upgrades (contributed by: [PaulWalkerUK](https://github.com/PaulWalkerUK))
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.10.1
      Puppet Server Version:
      OS Name/Version: Arch Linux

      Every time the pacman provider is used to install a package, it includes the y flag to refresh the package list, eg:

      ==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -Sy virtualbox-guest-utils'

      From the Arch Linux wiki, this is a "partial upgrade" which they say shouldn't be done:

      https://wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported

      Desired Behavior:

      Either:

      1. Don't refresh the package list (remove the y flag), in which case new packages will be installed matching the same point in time version as the rest of the system
      2. Add the u flag so the package list is updated and all existing packages are upgraded to the current point in time versions

      Option 2 probably isn't desired( ? ). Asking Puppet to install a new package shouldn't result in the rest of the system being upgraded( ? )

      Actual Behavior:

      Running on Arch Linux (with pacman as the default provider), this resource:

      {package { 'virtualbox-guest-utils': ensure => 'present' }}

      should produce something more like this in the log:

       ==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -S virtualbox-guest-utils'

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            PaulWalkerUK Paul Walker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support