Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10038

Puppet Agent module downloads the wrong nightly builds for Windows

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: puppet_agent
    • Labels:
      None
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2019-11-13
    • Release Notes:
      Bug Fix
    • QA Risk Assessment:
      Needs Assessment

      Description

      When setting the collection in Puppet-Agent module to nighly-puppet5 the module tries to download the MSI from the wrong location: https://downloads.puppet.com/windows/puppet5-nightly/puppet-agent-x64-latest.msi

      {"target"=>"lq2m11mgo0fco4r.delivery.puppetlabs.net", "action"=>"task", "object"=>"puppet_agent::install", "status"=>"failure", "result"=>{"_output"=>"", "_error"=>{"kind"=>"puppetlabs.tasks/task-error", "issue_code"=>"TASK_ERROR", "msg"=>"The task failed with exit code 1:\nSystem.Management.Automation.RuntimeException: Failed to download the Puppet Agent installer: https://downloads.puppet.com/windows/puppet5-nightly/puppet-agent-x64-latest.msi\n\nAt line:9 char:120\n+ try

      { & \"C:\\Users\\Administrator\\AppData\\Local\\Temp\\35podb23.za5\\install_powershell.ps1\" @taskArgs }

      catch

      { Write-Error <<<< $_.Exception; exit 1 }

      \n + CategoryInfo : NotSpecified: ( [Write-Error], WriteErrorException\n + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell.Commands.WriteErrorCommand\n", "details"=>

      {"exit_code"=>1}

      }}, "node"=>"lq2m11mgo0fco4r.delivery.puppetlabs.net"}
      try running 'bolt task run puppet_agent::install --targets lq2m11mgo0fco4r.delivery.puppetlabs.net --inventoryfile inventory.yaml --modulepath /Users/mihai.buzgau/work/code/pa/pdksync/modules_pdksync/puppetlabs-chocolatey/spec/fixtures/modules'
      /Users/mihai.buzgau/.rvm/gems/ruby-2.5.6/gems/puppet_litmus-0.12.0/lib/puppet_litmus/rake_tasks.rb:210:in `block (3 levels) in <top (required)>'
      /Users/mihai.buzgau/.rvm/gems/ruby-2.5.6/gems/puppet_litmus-0.12.0/lib/puppet_litmus/rake_tasks.rb:207:in `each'
      /Users/mihai.buzgau/.rvm/gems/ruby-2.5.6/gems/puppet_litmus-0.12.0/lib/puppet_litmus/rake_tasks.rb:207:in `block (2 levels) in <top (required)>'
      /Users/mihai.buzgau/.rvm/gems/ruby-2.5.6/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
      /Users/mihai.buzgau/.rvm/gems/ruby-2.5.6/bin/ruby_executable_hooks:24:in `eval'
      /Users/mihai.buzgau/.rvm/gems/ruby-2.5.6/bin/ruby_executable_hooks:24:in `<main>'
      Tasks: TOP => litmus:install_agent
      (See full trace by running task with --trace)

      the install_powershell does not take into cosideration the nightly collection when setting the source: https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/tasks/install_powershell.ps1#L4

        Attachments

          Activity

            People

            • Assignee:
              dorin.pleava Dorin Pleava
              Reporter:
              mihai.buzgau Mihai Buzgau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support