Jira (PUP-10485) pip package provider does not handle pip executable paths with spaces

0 views
Skip to first unread message

Thomas Kishel (Jira)

unread,
May 1, 2020, 4:21:03 PM5/1/20
to puppe...@googlegroups.com
Thomas Kishel created an issue
 
Puppet / Bug PUP-10485
pip package provider does not handle pip executable paths with spaces
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/05/01 1:20 PM
Priority: Normal Normal
Reporter: Thomas Kishel

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.

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

Thomas Kishel (Jira)

unread,
May 1, 2020, 4:33:03 PM5/1/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
May 1, 2020, 6:03:03 PM5/1/20
to puppe...@googlegroups.com

Thomas Kishel (Jira)

unread,
May 4, 2020, 11:13:04 AM5/4/20
to puppe...@googlegroups.com
 
Re: pip package provider does not handle pip executable paths with spaces

Note that this affects out Packages (View packages in use across your infrastructure) feature.

Mihai Buzgau (Jira)

unread,
May 5, 2020, 10:40:03 AM5/5/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
May 6, 2020, 3:46:03 AM5/6/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
May 6, 2020, 3:46:04 AM5/6/20
to puppe...@googlegroups.com

Luchian Nemes (Jira)

unread,
May 6, 2020, 7:32:02 AM5/6/20
to puppe...@googlegroups.com

Luchian Nemes (Jira)

unread,
May 7, 2020, 10:00:06 AM5/7/20
to puppe...@googlegroups.com
Luchian Nemes commented on Bug PUP-10485
 
Re: pip package provider does not handle pip executable paths with spaces

Reviewed your changes Thomas Kishel and added some unit tests to cover them. Looks good to me but someone else from the team should also take a look at the pull request as a whole before proceeding to merge.

Luchian Nemes (Jira)

unread,
May 12, 2020, 2:37:04 AM5/12/20
to puppe...@googlegroups.com
Luchian Nemes updated an issue
 
Change By: Luchian Nemes
Release Notes: Bug Fix
Release Notes Summary: Paths containing spaces will now be quoted in pip package provider as it caused issues on Windows when executing CLI commands.

Gheorghe Popescu (Jira)

unread,
May 27, 2020, 5:57:03 AM5/27/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
May 29, 2020, 4:17:03 AM5/29/20
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jul 2, 2020, 6:03:03 AM7/2/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages