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

Custom module installation in synced folder on vagrant virtualbox fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: PUP 3.7.1
    • Fix Version/s: None
    • Component/s: Modules
    • Environment:

      Ruby 1.9.3

      Vagrant 1.6.5
      Virtualbox 4.3.16
      Guest/VM OS Ubuntu 14.04 64bit

      Host OS Windows 7 64bit

    • Template:
    • Team:
      Agent

      Description

      I have recently started playing around with Vagrant, VirtualBox and now Puppet and i wanted to try out and build my own configuration. I found a nice puppet module manager in librarian-puppet, but unfortunately it doesn't work. After it errored out, it asked me to run the following command to see if it was an error with itself or with puppet:

      puppet module install --version 1.1.0 
      --target-dir /home/vagrant/code/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-vcsrepo/1.1.0 
      --module_repository https://forgeapi.puppetlabs.com 
      --modulepath /home/vagrant/code/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-vcsrepo/1.1.0 
      --module_working_dir /home/vagrant/code/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-vcsrepo/1.1.0 
      --ignore-dependencies puppetlabs-vcsrepo
      

      Unfortunately this failed as well, so i added the --debug flag and this is the output it produces

      Debug: Runtime environment: puppet_version=3.7.1, ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
      Notice: Preparing to install into /home/vagrant/code/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-vcsrepo/1.1.0 ...
      Notice: Downloading from https://forgeapi.puppetlabs.com ...
      Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-vcsrepo
      Debug: Failed to load library 'pe_license' for feature 'pe_license'
      Info: Resolving dependencies ...
      Info: Preparing to install ...
      Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/files/puppetlabs-vcsrepo-1.1.0.tar.gz
      Debug: Failed to load library 'pe_license' for feature 'pe_license'
      Debug: Executing 'gzip -dc /home/vagrant/code/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-vcsrepo/1.1.0/cache/puppetlabs-vcsrepo20141008-4697-1wqbblt | tar xof -'
      Error: Could not extract contents of module archive: Execution of 'gzip -dc /home/vagrant/code/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-vcsrepo/1.1.0/cache/puppetlabs-vcsrepo20141008-4697-1wqbblt | tar xof -' returned 2: tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/user_checkout/negative/user_checkout_file_non_existent_user.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_negative_depth.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_overflow_depth.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/revision_checkout/negative/revision_checkout_not_exists.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/group_checkout/negative/group_checkout_file_non_existent_group.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/compression/negative/compression_negative_checkout.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/clone/clone_over_different_exiting_repo_with_force.rb: Cannot open: Operation not permitted
      tar: puppetlabs-vcsrepo-1.1.0/spec/acceptance/beaker/git/branch_checkout/negative/branch_checkout_not_exists.rb: Cannot open: Operation not permitted
      tar: Exiting with failure status due to previous errors
      Error: Try 'puppet help module install' for usage
      

      I suspect it has something to do with the gzip/tar combination that puppet launches which might get the wrong permissions in the vagrant/virtualbox synced folder. When i try to manually extract a .tar.gz file in the folder it works without a problem. Or perhaps already the downloaded .tar.gz gets the wrong permissions set somehow...

      Feel free to ask me to try some things out, I would really like to get this resolved to continue tinkering =)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            EloProf Hans Lander
            QA Contact:
            Eric Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support