Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Night's Watch
-
2
-
NW - 2020-05-13
-
Needs Assessment
-
Bug Fix
-
Paths containing spaces will now be quoted in pip package provider as it caused issues on Windows when executing CLI commands.
-
Needs Assessment
Description
Puppet Version: 6.4.5 and 6.14.0
OS Name/Version: Windows
On a Windows Server 2016 node running Puppet 6.4.5 and 6.14.0 with Python installed in a path with spaces, the Puppet catalog returns the below error if package collection is enabled:
Cannot collect packages for Puppet::Type::Package::ProviderPip provider; [nil, nil]
More specifically, this issue was fixed in PUP-9647 for getting the pip version, but this was not fixed when Puppet executes the `pip freeze -all' command to get the packages.
Desired Behavior:
Quote function should be added to the pip provider here:
https://github.com/puppetlabs/puppet/blob/6.14.0/lib/puppet/provider/package/pip.rb#L79
Relevant sections of configurations files (puppet.conf, hiera.conf, Server's conf.d, defaults/sysconfig)
For memory issues with server heap dumps are also helpful.