Issue #20531 has been updated by Josh Cooper.

Keywords set to windows

----------------------------------------
Bug #20531: puppet module tool on windows will (sometimes) create a PaxHeader 
directory
https://projects.puppetlabs.com/issues/20531#change-91177

* Author: Andrew Parker
* Status: Accepted
* Priority: Normal
* Assignee: Josh Cooper
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: windows
* Branch: 
----------------------------------------
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](http://en.wikipedia.org/wiki/Pax_(Unix)) format.

An example of a module that was created with this is [liamjbennet/win_facts 
v0.0.1](https://forge.puppetlabs.com/liamjbennett/win_facts/0.0.1). When that 
module is installed the problem appears as follows.

<pre>
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
      ^

........
</pre>

The error is because those files are not ruby files:
<pre>
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
</pre>

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.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to