voxpupuli / puppet-python

Puppet module for installing and managing Python, pip, virtualenvs and Gunicorn virtual hosts.
https://forge.puppetlabs.com/puppet/python
Apache License 2.0
199 stars 375 forks source link

"warning: already initialized constant PIP_VERSION" when upgrading to agent 6.15.0 #553

Closed mp05 closed 4 years ago

mp05 commented 4 years ago

Affected Puppet, Ruby, OS and module versions/distributions

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

Install puppet agent 6.15 onto Ubuntu 1804 and include module in Puppetfile

What are you seeing

When running puppet agent root@ubuntu1804:/etc/apt# puppet agent -t Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/pip.rb:18: warning: already initialized constant PIP_VERSION /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/pip.rb:18: warning: previous definition of PIP_VERSION was here /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/pip.rb:19: warning: already initialized constant PIP_VERSION_RANGE /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/pip.rb:19: warning: previous definition of PIP_VERSION_RANGE was here Info: Caching catalog for ubuntu1804.localdomain Info: Applying configuration version 'b7626de992b474a310bd720845cc1afd65abcedd' Notice: Applied catalog in 0.08 seconds root@ubuntu1804:/etc/apt#

What behaviour did you expect instead

root@ubuntu1804:/etc/apt# puppet agent -t Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Info: Caching catalog for ubuntu1804.localdomain Info: Applying configuration version 'b7626de992b474a310bd720845cc1afd65abcedd' Notice: Applied catalog in 0.08 seconds root@ubuntu1804:/etc/apt#

Output log

Any additional information you'd like to impart

Did not occur at Puppet Agent 6.14

Lines added to : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/pip.rb 6.14 -> 6.15

PIP_VERSION = Puppet::Util::Package::Version::Pip PIP_VERSION_RANGE = Puppet::Util::Package::Version::Range

Have raised ticket with Puppetlabs but they say to raise it with yourselves

mp05 commented 4 years ago

My mistake the error originated elsewhere.