Issue #20308 has been updated by Andrew Forgue.


I tried using CURL against a standalone master (webrick) to see the files that 
are returned:

This is puppet 3.1.1
<pre>curl -H 'Accept: yaml' --cert certs/`hostname -f`.pem --key 
private_keys/`hostname -f`.pem --cacert certs/ca.pem  
"https://$KICKSTART_SERVER:8140/production/file_metadatas/plugins?links=manage&recurse=true&&checksum_type=md5&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22";
 2>/dev/null | grep gem19
    relative_path: puppet/provider/package/gem19.rb</pre>

I did a "yum upgrade puppet puppet-server" (got 3.2.0rc1) and ran it again:

<pre>curl -H 'Accept: yaml' --cert certs/`hostname -f`.pem --key 
private_keys/`hostname -f`.pem --cacert certs/ca.pem  
"https://$KICKSTART_SERVER:8140/production/file_metadatas/plugins?links=manage&recurse=true&&checksum_type=md5&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22";
 2>/dev/null | grep gem19</pre>

Here's the fully YAML snippet of the directory the gem19.rb plugin *should* be 
in:

<pre>
  - !ruby/object:Puppet::FileServing::Metadata
    ftype: directory
    group: 52
    stat_method: !ruby/sym lstat
    destination:
    owner: 52
    path: /etc/puppet/environments/production/modules/baseos/lib
    checksum: "{ctime}Fri Apr 19 18:03:45 +0000 2013"
    relative_path: puppet/provider/package
    expiration: 2013-04-20 00:05:51.860279 +00:00
    links: !ruby/sym manage
    checksum_type: ctime
    mode: 493
</pre>

Is there any place I can add debugging or some print statements?

----------------------------------------
Bug #20308: pluginsync of a 3.1.1 client on a 3.2rc1 server deletes some plugins
https://projects.puppetlabs.com/issues/20308#change-89738

* Author: Andrew Forgue
* Status: Investigating
* Priority: High
* Assignee: Charlie Sharpsteen
* Category: plug-ins
* Target version: 
* Affected Puppet version: 3.2.0-rc1
* Keywords: 
* Branch: 
----------------------------------------
If I run a 3.1.1 (or 2.7.17) client against a 3.2.0rc1 server, a lot of the 
plugins get deleted:

<pre>
uppet]$ sudo puppet agent -t  --pluginsync --server puppet
Info: Retrieving plugin
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/validate_hash.rb]/ensure: 
removed
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/validate_bool.rb]/ensure: 
removed
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/get_module_path.rb]/ensure: 
removed
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/is_ip_address.rb]/ensure: 
removed
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/is_numeric.rb]/ensure: removed
Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/delete.rb]/ensure: 
removed
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/is_domain_name.rb]/ensure: 
removed
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/validate_absolute_path.rb]/ensure:
 removed
Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/has_key.rb]/ensure: 
removed
Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/flatten.rb]/ensure: 
removed
Notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/is_mac_address.rb]/ensure: 
removed
...
</pre>

If I upgrade the client to 3.2.0rc1, the plugins come back.

If the server and the client is on 3.1.1, then the plugins appear to work fine.

So it seems like the pluginsync isn't working properly on a 3.2.0rc1 server 
against older clients.


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