Issue #23279 has been reported by Ryan Conway.
----------------------------------------
Bug #23279: When installing PIP packages from Git, the install and any notifies
are triggered during every run.
https://projects.puppetlabs.com/issues/23279
* Author: Ryan Conway
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version: 2.7.13
* Keywords: pip, package
* Branch:
----------------------------------------
I have a plugin for a Python application, Sentry, which I am installing via
GitHub like so:
package{ 'sentry-hipchat':
ensure => 'cfac72b33dc8468745669ea65998a5b911e9aae0',
provider => 'pip',
source => 'git+git://github.com/invisiblehand/sentry-hipchat.git'
}
When running the Puppet agent with --debug --trace --test, I can see Puppet
checks the output of 'pip freeze', however the output from this command, for
packages installed from GitHub seems to differ, and I don't believe it will
match the regex used here:
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pip.rb#L16-L22
Here is some sample output from 'pip freeze' on my system:
raven==3.5.1
redis==2.8.0
sentry==6.3.3
-e
git://github.com/invisiblehand/sentry-hipchat.git@cfac72b33dc8468745669ea65998a5b911e9aae0#egg=sentry_hipchat-master
setproctitle==1.1.8
simplejson==3.3.1
I'm using Puppet 2.7.13, installed via RubyGems, on Ubuntu 12.04 LTS 64-bit,
running Ruby 1.9.3p448.
The output from the Puppet agent run is as follows:
debug: Puppet::Type::Package::ProviderPip: Executing '/usr/bin/pip freeze'
debug: Puppet::Type::Package::ProviderPip: Executing '/usr/bin/pip freeze'
debug: Puppet::Type::Package::ProviderPip: Executing '/usr/bin/pip install
-q -e
git+git://github.com/invisiblehand/sentry-hipchat.git@cfac72b33dc8468745669ea65998a5b911e9aae0#egg=sentry-hipchat'
notice: /Stage[main]/Ih-sentry/Package[sentry-hipchat]/ensure: created
info: /Stage[main]/Ih-sentry/Package[sentry-hipchat]: Scheduling refresh of
Service[sentry]
info: /Stage[main]/Ih-sentry/Package[sentry-hipchat]: Scheduling refresh of
Service[sentry-udp]
info: /Stage[main]/Ih-sentry/Package[sentry-hipchat]: Scheduling refresh of
Service[sentry-celery]
As you can see, the package is 'created', which triggers a refresh of the
services, even though there is no need.
Does anyone have any advice?
Thanks!
Ryan
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.