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

puppet module tool on windows will (sometimes) create a PaxHeader directory

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • PUP 3.7.0
    • PMT

    Description

      In Puppet 3.2 the module tool started using minitar when the tar executable is not present. It turns out that minitar does not understand the PAX format.

      An example of a module that was created with this is liamjbennet/win_facts v0.0.1. When that module is installed the problem appears as follows.

      C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet module install liamjbennett
      -win_facts
      Notice: Preparing to install into C:/ProgramData/PuppetLabs/puppet/etc/modules .
      ..
      Notice: Downloading from https://forge.puppetlabs.com ...
      Notice: Installing -- do not interrupt ...
      C:/ProgramData/PuppetLabs/puppet/etc/modules
      └── liamjbennett-win_facts (v0.0.1)
       
      C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet apply -e 'notice hello'
      Error loading fact C:/ProgramData/PuppetLabs/puppet/etc/modules/win_facts/lib/fa
      cter/PaxHeader/operatingsystemversion.rb C:/ProgramData/PuppetLabs/puppet/etc/mo
      dules/win_facts/lib/facter/PaxHeader/operatingsystemversion.rb:1: syntax error,
      unexpected tIDENTIFIER, expecting $end
      17 gid=790807719
            ^
      Error loading fact C:/ProgramData/PuppetLabs/puppet/etc/modules/win_facts/lib/fa
      cter/PaxHeader/windows_productkey.rb C:/ProgramData/PuppetLabs/puppet/etc/module
      s/win_facts/lib/facter/PaxHeader/windows_productkey.rb:1: syntax error, unexpect
      ed tIDENTIFIER, expecting $end
      17 gid=790807719
            ^
      Error loading fact C:/ProgramData/PuppetLabs/puppet/etc/modules/win_facts/lib/fa
      cter/PaxHeader/windows_sid.rb C:/ProgramData/PuppetLabs/puppet/etc/modules/win_f
      acts/lib/facter/PaxHeader/windows_sid.rb:1: syntax error, unexpected tIDENTIFIER
      , expecting $end
      17 gid=790807719
            ^
       
      ........
      

      The error is because those files are not ruby files:

      C:\Program Files (x86)\Puppet Labs\Puppet\bin>type  C:\ProgramData\PuppetLabs\puppet\etc\modules\win_facts\lib\facter\PaxHeader\windows_systemtype.rb
      17 gid=790807719
      18 uid=2140070515
      20 ctime=1366908908
      20 atime=1366908908
      24 SCHILY.dev=234881026
      23 SCHILY.ino=78693886
      18 SCHILY.nlink=1
      

      There is a very good write up on the PaxHeader and problems of mixing tools that can be found at http://tickets.opscode.com/browse/CHEF-4107.

      It doesn't appear that these warnings actually cause problems, but they do clutter up the output and cause fright.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              redmine.exporter redmine.exporter
              Eric Thompson Eric Thompson
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support