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

Package resource not working as expected in 3.5.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • PUP 3.5.0
    • PUP 3.6.1
    • Types and Providers
    • None
    • 2
    • Week 2014-5-14 to 2014-5-21

    Description

      One of my modules has the following code:

      package { 'inetd': ensure => absent; }
      

      On the next Puppet run, Puppet tries to remove the xinetd package (debug output):

      Debug: Executing '/bin/rpm -q inetd --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
      Debug: Executing '/bin/rpm -q inetd --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
      Debug: Executing '/bin/rpm -e xinetd-2.3.14-39.el6_4.x86_64'
      Error: Execution of '/bin/rpm -e xinetd-2.3.14-39.el6_4.x86_64' returned 1: error: Failed dependencies:
              xinetd is needed by (installed) tftp-server-0.49-7.el6.x86_64
      Error: /Stage[main]/Services/Package[inetd]/ensure: change from 2.3.14-39.el6_4 to absent failed: Execution of '/bin/rpm -e xinetd-2.3.14-39.el6_4.x86_64' returned 1: error: Failed dependencies:
              xinetd is needed by (installed) tftp-server-0.49-7.el6.x86_64
      

      I've also noticed this problem with the JRE package. Our local yum repo has many versions of java. One of these packages has the %

      {NAME}

      'jre' (downloaded from oracle's site directly) which is what we used to create the package resource. However it's substituting other java packages that provide 'jre' and installing those packages instead. In fact, if there's a package that provides 'jre' already installed on your system puppet won't install the package named jre!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asedge Sean Edge
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support