Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python::pip ensure => latest triggers refresh on each puppet run for some packages #433

Closed
gdubicki opened this issue Oct 5, 2018 · 2 comments

Comments

@gdubicki
Copy link

gdubicki commented Oct 5, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.2
  • Ruby: included in Puppet 5
  • Distribution: Centos 7
  • Module version: 2.1.0

How to reproduce (e.g Puppet code you use)

Try to use python::pip with ensure => 'latest' using https://github.com/devpi/devpi as PyPi mirror/own repo for packages that contain mixed case letters in their names.

What are you seeing

Package is reinstalled on every puppet run and refresh is triggered, which causes unnecessary changes in reports and, what is worse, services restarts.

What behaviour did you expect instead

Package should not be updated if it's already in the latest version. No change should be reported for the resource and no refresh should be triggered.

Any additional information you'd like to impart

Please see devpi/devpi#592 for info how I tried to fix it on devpi side. Apart from getting to conclusion that this is hard to fix it there I realized that as pip team is considering to remove pip search altogether (see pypa/pip#5216), perhaps even better solution for this problem would be to stop using pip search on puppet-python side. This could also fix issues like #350.

@gdubicki
Copy link
Author

gdubicki commented Oct 5, 2018

I created a PR for this here #434 .

@gdubicki
Copy link
Author

gdubicki commented Nov 2, 2018

Actually, as test that is failing here #445 shows, python::pip with ensure => 'latest' using regular PyPi repo for a package with uppercase letter and "_" in its name also triggers refresh with every puppet run.

@gdubicki gdubicki changed the title python::pip ensure latest is broken for packages with mixed case name when using devpi/devpi as PyPi mirror/own repo python::pip ensure => latest triggers refresh on each puppet run for some packages Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant