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

PDK breaks when run from vagrant's shared directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.15.0
    • Component/s: None
    • Environment:

      Linux laptop running windows 10 guest via vagrant, windows 10 guest mounts a shared drive from the host

      VMWare workstation 14.1.3 build-9474260

    • Template:
    • Team:
      Puppet Developer Experience
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Work around a Ruby issue that prevented file rename operations from working inside VMWare Workstation shared directories.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Background
      Running Windows 10 as a guest os in VMWare to test PDK on Windows for customer. I have a VMWare shared directory at c:\vagrant so that I can edit code on the host and/or easily rebuild the VM without losing my files.

      Describe problem
      pdk validate fails with errror about C:/vagrant/broken/Gemfile.lock being missing when run from the shared drive at c:\vagrant. If I run from the guest's own directories that are not shared with the host, the command works as expected:

      The file is there according to the OS and this doesn't seem to be timing sensitive either:

      Expected result
      Expect to be able to run tests from the shared drive

      Workaround
      Move the module outside the shared folder and rerun tests - fixed

      Analysis
      I ran into an almost identical bug in my own code earlier. It seems that move/rename does not work at the ruby level on VMWare's shared drives. I fixed my own project by:

      FileUtils.cp... 
      FileUtils.rm...
      

      -HTH

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tim.sharpe Tim Sharpe
              Reporter:
              geoff@declarativesystems.com Geoff Williams
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support