Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
PUP 6.5.0
-
Other
-
Night's Watch
-
Needs Assessment
-
Bug Fix
-
Fix error introduced in puppet 6.5.0 when running pip provider.
-
Needs Assessment
Description
Puppet Version: 6.5.0
Puppet Server Version: 6.4.0
OS Name/Version: Debian stretch
After updating puppet-agent to 6.5.0 and the puppet server to 6.4.0 package resources with a pip3 provider throw the following error:
Debug: Prefetching pip3 resources for packageDebug: Executing '/usr/bin/pip3 --version'
|
Debug: Executing '/usr/bin/pip3 freeze --all'Debug: Puppet::Type::Package::ProviderPip3: Prefetched instance: %{name} via command: %{command}
|
Debug: Puppet::Type::Package::ProviderPip3: Prefetched instance: %{name} via command: %{command}
|
Error: Could not get latest version: undefined method `pip_version' for Package[checkdmarc](provider=pip3)(command=default):Puppet::Type::Package::ProviderPip3
|
Info: Unknown failure using insync_values? on type: Package[checkdmarc] / property: ensure to compare values [:latest] and 4.1.10 Error: /Stage[main]/Main/Node[redacted]/Mail::Dmarc_report[redacted]/Package[checkdmarc]/ensure: change from '4.1.10' to 'latest' failed: Could not get latest version: undefined method `pip_version' for Package[checkdmarc](provider=pip3)(command=default):Puppet::Type::Package::ProviderPip3
|
The code from the module is just:
package { 'checkdmarc':
|
ensure => 'latest'
|
, provider => 'pip3'
|
, require => Package['python3-pip']
|
}
|
Â
$ /usr/bin/pip3 --version
|
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
|
Â
Â
Â
Attachments
Issue Links
- relates to
-
PUP-1082 pip provider should handle multiple pips/pythons
-
- Resolved
-