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

Updating over the pdk-module-templates renaming fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDK 1.6.0
    • Fix Version/s: PDK 1.6.1
    • Component/s: None
    • Template:
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      A proper error message is now displayed if updating a module and the template does not exist.
    • QA Risk Assessment:
      Needs Assessment

      Description

      The PDK should detect old versions of the cached template-url and update those automatically to pdk-templates

      david@davids:~/git/david-testmod$ pdk update --force
      /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/lib/pdk/module/templatedir.rb:189:in `validate_module_template!': The specified template 'file:///opt/puppetlabs/pdk/share/cache/pdk-module-template.git' is not a directory. (ArgumentError)
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/lib/pdk/module/templatedir.rb:59:in `initialize'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/lib/pdk/module/convert.rb:71:in `new'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/lib/pdk/module/convert.rb:71:in `stage_changes!'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/lib/pdk/module/update.rb:9:in `run'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/lib/pdk/cli/update.rb:29:in `block (2 levels) in <module:CLI>'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/cri-2.10.1/lib/cri/command.rb:329:in `run_this'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/cri-2.10.1/lib/cri/command.rb:269:in `run'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/cri-2.10.1/lib/cri/command.rb:287:in `run'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/lib/pdk/cli.rb:18:in `run'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.6.0.pre/exe/pdk:6:in `<top (required)>'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/bin/pdk:23:in `load'
      	from /opt/puppetlabs/pdk/private/ruby/2.4.4/bin/pdk:23:in `<main>'
      david@davids:~/git/david-testmod$ ls -la /opt/puppetlabs/pdk/share/cache/pdk-module-template.git
      ls: cannot access '/opt/puppetlabs/pdk/share/cache/pdk-module-template.git': No such file or directory
      david@davids:~/git/david-testmod$ ls -la /opt/puppetlabs/pdk/share/cache/
      total 48
      drwxr-xr-x 4 root root 4096 Jun 11 09:57 .
      drwxr-xr-x 8 root root 4096 Nov  1  2017 ..
      -rw-r--r-- 1 root root 4358 Jun  7 02:01 Gemfile-2.1.9.lock
      -rw-r--r-- 1 root root 4348 Jun  7 02:01 Gemfile-2.4.4.lock
      -rw-r--r-- 1 root root 4348 Jun  7 02:01 Gemfile.lock
      drwxr-xr-x 7 root root 4096 Jun 11 09:57 pdk-templates.git
      -rw-r--r-- 1 root root 3876 Jun  7 01:57 pe_versions.json
      drwxr-xr-x 4 root root 4096 Apr  9 15:15 ruby
      -rw-r--r-- 1 root root 2100 Jun  7 01:57 task.json
      david@davids:~/git/david-testmod$ pdk --version
      1.6.0.pre (47)
      david@davids:~/git/david-testmod$ 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tim.sharpe Tim Sharpe
                Reporter:
                david.schmitt David Schmitt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support