Jira (PUP-8949) Package pip provide won't work with ensure latest and custom index

24 views
Skip to first unread message

Anton Fomenko (JIRA)

unread,
Jun 19, 2018, 11:46:02 AM6/19/18
to puppe...@googlegroups.com
Anton Fomenko created an issue
 
Puppet / Bug PUP-8949
Package pip provide won't work with ensure latest and custom index
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2018/06/19 8:45 AM
Priority: Normal Normal
Reporter: Anton Fomenko

Puppet agent will run every time if you have ensure => latest and custom index, for example

package { 'mypippackage':
  ensure          => latest,
  provider        => 'pip',
  install_options => { '--index' => 'https://pip.example.com' },
} 

I believe the issue is happening because puppet doesn't test package version against additional index (doesn;t use --index), while using --index on install.

Debug: Executing '/usr/bin/pip --version'
Debug: Executing '/usr/bin/pip freeze --all'
Debug: Executing '/usr/bin/pip --version'
Debug: Executing '/usr/bin/pip --version'
Debug: Executing '/usr/bin/pip install mypippackage==versionplease'
Debug: /Stage[main]/Main/Package[mypippackage]/ensure: mypippackage "1.2.3.post0" is installed, latest is nil
Debug: Executing: '/usr/bin/pip install -q --index=https://pip.example.com --upgrade mypippackage'
Notice: /Stage[main]/Main/Package[mypippackage]/ensure: ensure changed '1.2.3.post0' to 'latest'
 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Anton Fomenko (JIRA)

unread,
Jun 20, 2018, 1:01:03 AM6/20/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jun 25, 2018, 2:15:03 PM6/25/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Sep 26, 2018, 9:49:05 PM9/26/18
to puppe...@googlegroups.com

Anton Fomenko (JIRA)

unread,
Jul 23, 2019, 8:14:04 AM7/23/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jul 23, 2019, 7:28:02 PM7/23/19
to puppe...@googlegroups.com

Thomas Kishel (JIRA)

unread,
Jul 23, 2019, 7:45:04 PM7/23/19
to puppe...@googlegroups.com

Thomas Kishel (JIRA)

unread,
Jul 24, 2019, 4:17:02 PM7/24/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Oct 1, 2019, 2:35:04 PM10/1/19
to puppe...@googlegroups.com

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 10:08:05 AM11/14/19
to puppe...@googlegroups.com

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 10:12:04 AM11/14/19
to puppe...@googlegroups.com

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 10:13:03 AM11/14/19
to puppe...@googlegroups.com
Ciprian Badescu assigned an issue to Thomas Kishel
Change By: Ciprian Badescu
Assignee: Ciprian Badescu Thomas Kishel

Thomas Kishel (JIRA)

unread,
Nov 14, 2019, 11:04:03 AM11/14/19
to puppe...@googlegroups.com
Thomas Kishel updated an issue
Change By: Thomas Kishel
Release Notes Summary: The `pip` package provider did not use 'install_options` in the methods executed when `ensure = latest` which prevented those resources from being idempotent.

'install_options' are now used whenever `pip install` is executed.
Release Notes: Bug Fix

Josh Cooper (JIRA)

unread,
Nov 14, 2019, 1:21:04 PM11/14/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Nov 14, 2019, 1:21:04 PM11/14/19
to puppe...@googlegroups.com

Heston Hoffman (JIRA)

unread,
Nov 18, 2019, 1:07:04 PM11/18/19
to puppe...@googlegroups.com

Dorin Pleava (JIRA)

unread,
Jan 8, 2020, 7:10:05 AM1/8/20
to puppe...@googlegroups.com

Anton Fomenko (Jira)

unread,
Aug 4, 2020, 8:11:03 AM8/4/20
to puppe...@googlegroups.com
Anton Fomenko commented on Bug PUP-8949
 
Re: Package pip provide won't work with ensure latest and custom index

Nothing changed.

Debug: Prefetching pip resources for package
Debug: Executing '/usr/bin/pip --version'
Debug: Executing '/usr/bin/pip freeze --all'
Debug: Executing '/usr/bin/pip --version'
Debug: Executing '/usr/bin/pip freeze --all'
Debug: Executing: '/usr/bin/pip install -q --index=https://pip.example.com --upgrade pkg'
Notice: /Stage[main]/Main/Node[node]/Package[pkg_2]/ensure: created (corrective)
Debug: /Package[pkg_2]: The container Node[node] will propagate my refresh event
Debug: Prefetching pip3 resources for package
Debug: Executing '/usr/bin/pip3 --version'
Debug: Executing '/usr/bin/pip3 freeze --all'
Debug: Executing '/usr/bin/pip3 --version'
Debug: Executing '/usr/bin/pip3 freeze --all'
Debug: Executing: '/usr/bin/pip3 install -q --index=https://pip.example.com --upgrade pkg'
Notice: /Stage[main]/Main/Node[node]/Package[pkg_3]/ensure: created (corrective)
Debug: /Package[pkg_3]: The container Node[node] will propagate my refresh event 

Issue still remains for both pip and pip3 providers.

Tested on puppet server versions 5.3.11 and 6.12.0 with puppet agent 5.5.20 and 6.17.0

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

Josh Cooper (Jira)

unread,
Jun 11, 2021, 10:20:02 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Unassigned
 
Change By: Josh Cooper
Assignee: Thomas Kishel
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 11, 2021, 10:21:01 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-8949
 
Re: Package pip provide won't work with ensure latest and custom index

Anton Fomenko this change went out in a release, so if it's still not working, please file a new ticket with information needed to reproduce.

Reply all
Reply to author
Forward
0 new messages