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

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

Closed
mp05 opened this issue Jul 14, 2020 · 1 comment

Comments

@mp05
Copy link

mp05 commented Jul 14, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: Agent 6.15
  • Ruby:
  • Distribution: Ubuntu 18.04
  • Module version: V4.1.1

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
Copy link
Author

mp05 commented Jul 30, 2020

My mistake the error originated elsewhere.

@mp05 mp05 closed this as completed Jul 30, 2020
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