Issue #22925 has been updated by eric sorenson.

Project changed from Puppet Enterprise (Public) to Puppet
Target version set to 3.5.0

Moved this to the Puppet project because it was fixed upstream. It'll be in 
Puppet OSS 3.4.0 / Puppet Enterprise 3.2.0.

----------------------------------------
Bug #22925: Cached catalogs no longer work in PE 3.0.0 and above.
https://projects.puppetlabs.com/issues/22925#change-100216

* Author: Zachary Stern
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 3.5.0
* Affected Puppet version: 
* Keywords: 
* Branch: https://github.com/puppetlabs/puppet/pull/2031
----------------------------------------
Cached catalogs no longer work in PE 3.0.0 and above.

Note: I've truncated the output where it made sense to do so.

### PE 2.8.3: 

        [root@pe-28-master ~]# puppet --version
        2.7.23 (Puppet Enterprise 2.8.3)
        
        [root@pe-28-master ~]# cat /etc/puppetlabs/puppet/manifests/site.pp
        node default {
          # This is where you can declare classes for all nodes.
          # Example:
          #   class { 'my_class': }
        }
        
        notify { 'BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD':}

        [root@pe-28-master ~]# puppet agent --onetime --no-daemonize --verbose
        info: Caching catalog for pe-28-master.puppetdebug.vlan
        info: Applying configuration version '1382386729'
        notice: BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD
        notice: /Stage[main]//Notify[BU BU BU BIRD BIRD BIRD, BIRD IS THE 
WORD]/message: defined 'message' as 'BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD'
        notice: Finished catalog run in 0.05 seconds
        
        [root@pe-28-master ~]# /etc/init.d/pe-httpd stop
        Stopping pe-httpd:                                         [  OK  ]
        [root@pe-28-master ~]# puppet agent --onetime --no-daemonize --verbose
        info: Retrieving plugin
        err: /File[/var/opt/lib/pe-puppet/lib]: Failed to generate additional 
resources using 'eval_generate: Connection refused - connect(2)
        err: /File[/var/opt/lib/pe-puppet/lib]: Could not evaluate: Connection 
refused - connect(2) Could not retrieve file metadata for 
puppet://pe-28-master.puppetdebug.vlan/plugins: Connection refused - connect(2)
        info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/pe_version.rb
        info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
        info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
        info: Loading facts in 
/opt/puppet/share/puppet/modules/stdlib/lib/facter/root_home.rb
        info: Loading facts in 
/opt/puppet/share/puppet/modules/auth_conf/lib/facter/custom_auth_conf.rb
        info: Loading facts in 
/opt/puppet/share/puppet/modules/concat/lib/facter/concat_basedir.rb
        info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb
        info: Loading facts in 
/var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb
        info: Loading facts in 
/var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb
        info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
        info: Loading facts in 
/var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
        info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
        err: Could not retrieve catalog from remote server: Connection refused 
- connect(2)
        notice: Using cached catalog
        info: Applying configuration version '1382386729'
        notice: BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD
        notice: /Stage[main]//Notify[BU BU BU BIRD BIRD BIRD, BIRD IS THE 
WORD]/message: defined 'message' as 'BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD'
        notice: Finished catalog run in 0.04 seconds
        err: Could not send report: Connection refused - connect(2)
        
Great, behaves as we expect.

### PE 3.1.0

        [root@pe-310-master manifests]# puppet --version
        3.3.1 (Puppet Enterprise 3.1.0)
        
        [root@pe-310-master manifests]# cat 
/etc/puppetlabs/puppet/manifests/site.pp
        node default {
          # This is where you can declare classes for all nodes.
          # Example:
          #   class { 'my_class': }
        }
        
        notify { 'BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD': }
        
        [root@pe-310-master manifests]# puppet agent --test
        Info: Applying configuration version '1382387428'
        Notice: BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD
        Notice: /Stage[main]//Notify[BU BU BU BIRD BIRD BIRD, BIRD IS THE 
WORD]/message: defined 'message' as 'BU BU BU BIRD BIRD BIRD, BIRD IS THE WORD'
        
        [root@pe-310-master manifests]# puppet agent --onetime --verbose 
--no-daemonize
        Error: Failed to apply catalog: Connection refused - connect(2)
        Error: Could not send report: Connection refused - connect(2)

The run is not attempted with a cached catalog.

Same result with `puppet agent --onetime --verbose --no-daemonize --debug 
--use_cached_catalog`.  
Same result with 3.0.x series.


-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to