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

The zypper and rpm providers have duplicate instance lists

    Details

    • Template:
    • Team:
      Platform OS
    • Sprint:
      Platform OS Kanban
    • Method Found:
      Customer Feedback

      Description

      Problem
      PE package inventory shows duplicate packages for the rpm and zypper providers on SLES.

      Expected behavior
      PE package inventory shows one copy of the package. This behavior is seen on EL, but not SLES.

      What we think is happening
      The zypper provider for the package resource inherits from the rpm provider, but does not specify it as the :source. This results in both zypper and rpm being returned by the providers_by_source method. The result is that PE package inventory shows duplicate packages for these two providers on SLES.

      The zypper provider:
      https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/zypper.rb#L1

      This behavior is not seen on RHEL as the yum provider has rpm as a :source. https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/yum.rb#L1

      Questions
      What are risks of setting :source => :rpm in the zypper provider?

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                jarret.lavallee Jarret Lavallee
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: