Jira (PUP-10969) The yum provider gets confused by virtual provides

8 views
Skip to first unread message

John Bollinger (Jira)

unread,
Mar 18, 2021, 2:52:04 PM3/18/21
to puppe...@googlegroups.com
John Bollinger created an issue
 
Puppet / Bug PUP-10969
The yum provider gets confused by virtual provides
Issue Type: Bug Bug
Affects Versions: PUP 6.17.0, PUP 7.5.0
Assignee: Unassigned
Components: Types and Providers
Created: 2021/03/18 11:51 AM
Priority: Normal Normal
Reporter: John Bollinger

Puppet Version: 7.5
Puppet Server Version: 7.1.0
OS Name/Version: CentOS 7.8

Puppet does not install packages to update virtual provides of other packages.  This appears to be approximately the opposite of the situation described in PUP-10798.

Desired Behavior:

Puppet should ensure that the latest available version of the requested package is installed.

Actual Behavior:

Puppet denies that there is an update available.

In the specific case where I hit this issue, the target nodes have package python-pandas-0.17.1-1.el7.x86_64 installed, and it declares a virtual provide for python2-pandas, version 0.17.1-1.el7.  In my local repository, I have a package python2-pandas-0.24.2-1.el7.myorg.x86_64, which I want Puppet to install.

Under those circumstances, when I then ask yum directly to either install or update package python2-pandas, it offers the version 0.24.2 package (and because of obsoletes processing, this replaces the other).  If I try to have Puppet do the same, however, it claims that the latest available version is already installed.

The Puppet resource I am applying is 

package { 'python2-pandas': ensure => 'latest' }

 The debug log has this to say: 

Debug: Executing: '/bin/rpm -q python2-pandas --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q python2-pandas --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Debug: Package[python2-pandas](provider=yum): Yum didn't find updates, current version (0.17.1-1.el7) is the latest

Contrast with the (partial) output of yum update python2-pandas:

======================================================================

Package           Arch      Version               Repository    Size
======================================================================

Installing:
 python2-pandas   x86_64    0.24.2-1.el7.myorg    myrepo        10 M
     replacing python-pandas.x86_64 0.17.1-1.el7

[...]

=====================================================================

Install 2 Packages (+4 Dependent packages)

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
May 3, 2021, 1:31:04 PM5/3/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Night's Watch
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Jun 15, 2021, 10:36:01 AM6/15/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jun 15, 2021, 10:36:03 AM6/15/21
to puppe...@googlegroups.com
Ciprian Badescu assigned an issue to Beth Glenfield
Change By: Ciprian Badescu
Assignee: Ciprian Badescu Beth Glenfield

Ciprian Badescu (Jira)

unread,
Aug 24, 2021, 5:10:03 AM8/24/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages