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

pkgdmg.rb should report timeout failure if destination is not reachable

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch

      Description

      If pkgdmg.rb is not able to open the URL to the specified package for download, it currently reports that the file is not found. It would be better if it would report a timeout failure instead, which is more descriptive. I trapped into that and didn't know what was going on given that the file was really present.

      So as best configure a proxy and have the package located at a URL which is not served by the proxy (no_proxy environment variable). There is currently a bug in puppet, which doesn't pick up this env variable. So Puppet will assume all URLs have to be reached through the proxy. Now try to install a package from that location. Curl will start but will run into a timeout.

      You will see a failure like:

      Error: Could not set 'present' on ensure: No such file or directory -
      http://puppetmaster1.qa.scl3.mozilla.com/repos/DMGs/facter-2.0.2.dmg at
      38:/etc/puppet/production/modules/packages/manifests/pkgdmg.pp
      Error: Could not set 'present' on ensure: No such file or directory -
      http://puppetmaster1.qa.scl3.mozilla.com/repos/DMGs/facter-2.0.2.dmg at
      38:/etc/puppet/production/modules/packages/manifests/pkgdmg.pp
      Wrapped exception:
      No such file or directory -
      http://puppetmaster1.qa.scl3.mozilla.com/repos/DMGs/facter-2.0.2.dmg
      Error:
      /Stage[main]/Packages::Puppet/Packages::Pkgdmg[facter]/Package[facter-2.0.2.dmg]/ensure:
      change from absent to present failed: Could not set 'present' on ensure: No
      such file or directory -
      http://puppetmaster1.qa.scl3.mozilla.com/repos/DMGs/facter-2.0.2.dmg at
      38:/etc/puppet/production/modules/packages/manifests/pkgdmg.pp
      

      For details about my original bug have a look at https://bugzilla.mozilla.org/show_bug.cgi?id=1053437.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              whimboo Henrik Skupin
              QA Contact:
              Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support