Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2730

source attribute not honored for gem provider

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • CS Priority:
      Minor

      Description

      When attempting to provide another source for a package resource using the gem provider, the install fails.

      Error output from 'puppet agent -tv':

      Error: Execution of '/usr/bin/gem install --include-dependencies --source http://<internal.gemrepo.com>/ passenger' returned 1: ERROR:  Could not find a valid gem 'passenger' (>= 0) in any repository
      ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
          Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
      INFO:  `gem install -y` is now default and will be removed
      INFO:  use --ignore-dependencies to install only the gems you list
       
      Error: /Stage[main]/Puppet::Master/Package[passenger]/ensure: change from absent to present failed: Execution of '/usr/bin/gem install --include-dependencies --source http://<internal.gemrepo.com>/ passenger' returned 1: ERROR:  Could not find a valid gem 'passenger' (>= 0) in any repository
      ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
          Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
      INFO:  `gem install -y` is now default and will be removed
      INFO:  use --ignore-dependencies to install only the gems you list
       
      Finished catalog run in 106.88 seconds
      

      ghickey@slc4b01c-69c8:rack:6$ gem source
      *** CURRENT SOURCES ***
       
      http://rubygems.org/
      ghickey@slc4b01c-69c8:rack:0$ sudo gem install --include-dependencies --source http://<internal.gemrepo.com>/ passenger
      [sudo] password for ghickey:
      INFO:  `gem install -y` is now default and will be removed
      INFO:  use --ignore-dependencies to install only the gems you list
      Fetching: fastthread-1.0.7.gem (100%)
      Building native extensions.  This could take a while...
      Fetching: daemon_controller-1.1.0.gem (100%)
      Fetching: passenger-3.0.18.gem (100%)
      Successfully installed fastthread-1.0.7
      Successfully installed daemon_controller-1.1.0
      Successfully installed passenger-3.0.18
      3 gems installed
      Installing ri documentation for fastthread-1.0.7...
      Installing ri documentation for daemon_controller-1.1.0...
      Installing ri documentation for passenger-3.0.18...
      Installing RDoc documentation for fastthread-1.0.7...
      Installing RDoc documentation for daemon_controller-1.1.0...
      Installing RDoc documentation for passenger-3.0.18...
      

      The system that produced the output is behind a firewall and can not directly connect to rubygems.org. There is an internal gem repo inside the firewall that contains mirrored gems for the purpose of distributing within the firewall. As you can see if the same command is executed from the command line, it succeeds.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  redmine.exporter redmine.exporter
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support