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

Use of rpm -q --whatprovides breaks working manifest

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.5.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      CentOS 6.5

    • Template:

      Description

      I had working code to install Percona MySQL server after removing mysql and mysql-devel. The example below worked with puppet 3.4.3, but with 3.5.1 it doesn't. Reverting to 3.4.3 did fix this problem. The problem is that 3.5.1 is now doing a --whatprovides on the second run, and it sees Percona-Server-client-55-5.5.34-rel32.0.591.rhel6.x86_64. It then tries to remove it, but then it is a requirement of Percona-Server-server-55-5.5.34-rel32.0.591.rhel6.x86_64.

      I found multiple bug reports of why whatprovides was added, but at least I need a way to disable it's use for this case, or revert and add whatprovides as a resource of package.

      Example:

      $removemysqlpackages = [
      'mysql',
      'mysql-devel',
      ]

      package

      { $removemysqlpackages: ensure => 'absent', }

      $perconapackages = [
      'Percona-Server-client-55',
      'Percona-Server-server-55',
      'Percona-Server-shared-55',
      'Percona-Server-shared-compat',
      'Percona-Server-devel-55',
      ]

      package

      { $perconapackages: ensure => 'installed', require => [ Group['mysql'], Package[$removemysqlpackages], ], }

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ngrennan Nathan Grennan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: