Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Duplicate
-
None
-
None
-
None
-
behind http proxy
Description
The pip package provider can ensure => version but can't ensure latest when using a proxy.
https://github.com/puppetlabs/puppet/pull/3984
(venv)krum@ftctstories01g:~$ env| grep proxy
http_proxy=http://web-proxy.houston.hp.com:8080
HTTPS_PROXY=http://web-proxy.houston.hp.com:8080
https_proxy=http://web-proxy.houston.hp.com:8080
HTTP_PROXY=http://web-proxy.houston.hp.com:8080
(venv)krum@ftctstories01g:~$ puppet --version
3.7.4
(venv)krum@ftctstories01g:~$ ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
(venv)krum@ftctstories01g:~$ gem --version
1.8.15
$ puppet resource package gear provider=pip ensure=latest --debug --trace
Debug: Runtime environment: ruby_version=1.8.7, run_mode=user, puppet_version=3.7.4
Debug: Puppet::Type::Package::ProviderNim: file /usr/bin/lslpp does not exist
Debug: Puppet::Type::Package::ProviderSunfreeware: file pkg-get does not exist
Debug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge does not exist
Debug: Puppet::Type::Package::ProviderSun: file /usr/bin/pkginfo does not exist
Debug: Puppet::Type::Package::ProviderOpenbsd: file pkg_info does not exist
Debug: Puppet::Type::Package::ProviderPacman: file /usr/bin/pacman does not exist
Debug: Puppet::Type::Package::ProviderZypper: file /usr/bin/zypper does not exist
Debug: Puppet::Type::Package::ProviderRpm: file rpm does not exist
Debug: Puppet::Type::Package::ProviderUrpmi: file rpm does not exist
Debug: Puppet::Type::Package::ProviderHpux: file /usr/sbin/swinstall does not exist
Debug: Puppet::Type::Package::ProviderOpkg: file opkg does not exist
Debug: Puppet::Type::Package::ProviderPorts: file /usr/local/sbin/pkg_deinstall does not exist
Debug: Puppet::Type::Package::ProviderYum: file rpm does not exist
Debug: Puppet::Type::Package::ProviderUp2date: file /usr/sbin/up2date-nox does not exist
Debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_info does not exist
Debug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not exist
Debug: Puppet::Type::Package::ProviderRug: file /usr/bin/rug does not exist
Debug: Puppet::Type::Package::ProviderPkgin: file pkgin does not exist
Debug: Puppet::Type::Package::ProviderPortupgrade: file /usr/local/sbin/pkg_deinstall does not exist
Debug: Puppet::Type::Package::ProviderPkg: file /usr/bin/pkg does not exist
Debug: Puppet::Type::Package::ProviderAix: file /usr/bin/lslpp does not exist
Debug: Puppet::Type::Package::ProviderAptrpm: file rpm does not exist
Debug: /Package[gear]: Provider pip does not support features virtual_packages; not managing attribute allow_virtual
Debug: Loaded state in 0.00 seconds
Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Prefetching pip resources for package
Debug: Executing '/home/krum/venv/bin/pip freeze'
Error: Could not get latest version: Timeout while contacting pypi.python.org: execution expired
/usr/lib/ruby/1.8/timeout.rb:64:in `open'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
/usr/lib/ruby/1.8/net/http.rb:548:in `start'
/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc'
/usr/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2'
/usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call'
/usr/lib/ruby/vendor_ruby/puppet/provider/package/pip.rb:63:in `latest'
/usr/lib/ruby/vendor_ruby/puppet/type/package.rb:145:in `insync?'
/usr/lib/ruby/vendor_ruby/puppet/type/package.rb:132:in `each'
/usr/lib/ruby/vendor_ruby/puppet/type/package.rb:132:in `insync?'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:314:in `safe_insync?'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:117:in `sync_if_needed'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:327:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:326:in `thinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:153:in `with_destination'
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/indirector/resource/ral.rb:41:in `save'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:283:in `save'
/usr/lib/ruby/vendor_ruby/puppet/application/resource.rb:218:in `find_or_save_resources'
/usr/lib/ruby/vendor_ruby/puppet/application/resource.rb:142:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:389:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:488:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8
Error: /Package[gear]/ensure: change from 0.5.7 to latest failed: Could not get latest version: Timeout while contacting pypi.python.org: execution expired
Debug: Finishing transaction 70036871426860
Debug: Storing state
Debug: Stored state in 0.01 seconds
package
Attachments
Issue Links
- relates to
-
PUP-5069 Puppet's HTTP API does not allow callers to trust system cacerts
-
- Resolved
-