Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1283

PDK fails to install dsc module from fixtures.yml on windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Windows 2012r2 with PDK 1.9.0

    • Puppet Developer Experience
    • Customer Feedback
    • 33929
    • 1
    • Needs Assessment

    Description

      PDK fails to install modules in the fixtures.yml on windows, whereas it works on linux.

      To reproduce this, add puppetlabs/dsc to the .fixtures.yml and run pdk test unit fails with the following messages.

      PS C:\Users\Administrator\Documents\testing> cat .\.fixtures.yml
      fixtures:
        forge_modules:
          dsc: "puppetlabs/dsc"
       
      PS C:\Users\Administrator\Documents\testing> pdk bundle exec rake spec_prep
      pdk (INFO): Using Ruby 2.5.3
      pdk (INFO): Using Puppet 6.2.0
      Notice: Preparing to install into C:/Users/Administrator/Documents/testing/spec/
      fixtures/modules ...
      Notice: Downloading from https://forgeapi.puppet.com ...
      Error: No such file or directory @ rb_sysopen - C:/Users/Administrator/Documents/testing/spec/fixtures/work-dir/cache/tmp20190225-1392-8pmq2k/puppetlabs-dsc-1.8.0/lib/puppet_x/dsc_resources/OfficeOnlineServerDsc/DSCResources/MSFT_OfficeOnlineServerInstallLanguagePack/MSFT_OfficeOnlineServerInstallLanguagePack.psm1
      Error: Try 'puppet help module install' for usage
      rake aborted!
      Failed to install module puppetlabs/dsc to C:/Users/Administrator/Documents/test
      ing/spec/fixtures/modules
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/puppetlabs_spec_helper-2.13.1/lib/puppetlabs_spec_helper/tasks/fixtures.rb:357:in `block
       (2 levels) in <top (required)>'
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/puppetlabs_spec_helper-2.13.1/lib/puppetlabs_spec_helper/tasks/fixtures.rb:334:in `each'
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/puppetlabs_spec_helper-2.13.1/lib/puppetlabs_spec_helper/tasks/fixtures.rb:334:in `block
       in <top (required)>'
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
      Tasks: TOP => spec_prep
      (See full trace by running task with --trace)
       
       
      PS C:\Users\Administrator\Documents\testing> pdk test unit
      pdk (INFO): Using Ruby 2.5.3
      pdk (INFO): Using Puppet 6.2.0
      [X] Preparing to run the unit tests.
      [*] Cleaning up after running unit tests.
      pdk (ERROR): The spec_prep rake task failed with the following error(s):
       
      Notice: Preparing to install into C:/Users/Administrator/Documents/testing/spec/
      fixtures/modules ...
      Notice: Downloading from https://forgeapi.puppet.com ...
      Error: No such file or directory @ rb_sysopen - C:/Users/Administrator/Documents/testing/spec/fixtures/work-dir/cache/tmp20190225-3208-3eycct/puppetlabs-dsc-1.8.0/lib/puppet_x/dsc_resources/OfficeOnlineServerDsc/DSCResources/MSFT_OfficeOnlineServerInstallLanguagePack/MSFT_OfficeOnlineServerInstallLanguagePack.psm1
      Error: Try 'puppet help module install' for usage
      rake aborted!
      Failed to install module puppetlabs/dsc to C:/Users/Administrator/Documents/testing/spec/fixtures/modules
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/puppetlabs_spec_helper-2.13.1/lib/puppetlabs_spec_helper/tasks/fixtures.rb:357:in `block
       (2 levels) in <top (required)>'
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/puppetlabs_spec_helper-2.13.1/lib/puppetlabs_spec_helper/tasks/fixtures.rb:334:in `each'
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/puppetlabs_spec_helper-2.13.1/lib/puppetlabs_spec_helper/tasks/fixtures.rb:334:in `block
       in <top (required)>'
      C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
      Tasks: TOP => spec_prep
      (See full trace by running task with --trace)
       
      pdk (FATAL): Failed to prepare to run the unit tests.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jarret.lavallee Jarret Lavallee
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support