Issue #5073 has been updated by Stefan Schulte. File 0001-5073-Download-providers-when-tags-are-used.patch added
I tried to fix the issue today, but I don't know all puppet internals, so I don't know the impact of my change. That's what I found out: - in `transaction.rb` puppet decides if it should ignore tags. That's true when the catalog is not marked as host_config - if my understanding of host_config is correct, it'll mean that host_config should be true for the manifest the user has defined and false for puppet internals like /etc/puppet, creating certificates etc. - in `util/settings.rb` (I guess all directories like vardir, ssldir etc are created here), the catalog is set to host_config=false - in `configurer/downloader.rb` we dont have such a statement My patch includes: - adding `catalog.host_config = false` in `configurer/downloader.rb`. When I use `--tags no_such_tag` I can see, that none of my manifests will be applied but my providers and types are synched - I modified one spec Again: Since I dont know the impact, feedback would be great. If the patch is correct, I will update my branch ---------------------------------------- Bug #5073: Puppet doesn't download custom providers/types if tags are used https://projects.puppetlabs.com/issues/5073 Author: Andrew Forgue Status: Accepted Priority: Normal Assignee: Category: Target version: 2.6.x Affected Puppet version: 2.6.2 Keywords: Branch: It seems that if tags are used, then puppet doesn't download custom types and providers or facts. This seems to be a behaviorial change from 0.25.5. >From a *missing* @/var/lib/puppet@ With 0.25.5: [r...@puppet1 tmp]# puppetd -vt --server ${PUPPETMASTER} --tags first-boot info: Retrieving plugin notice: /File[/var/lib/puppet/lib/facter]/ensure: created notice: /File[/var/lib/puppet/lib/facter/broadcast.rb]/ensure: content changed '{md5}e00b44f4a42da00ba8cf752adb119cd0' to '{md5}e00b44f4a42da00ba8cf752adb119cd0' notice: /File[/var/lib/puppet/lib/facter/dmidecode.rb]/ensure: content changed '{md5}5d9c5e5f7a4b7132168896e329e39238' to '{md5}5d9c5e5f7a4b7132168896e329e39238' notice: /File[/var/lib/puppet/lib/facter/gateway.rb]/ensure: content changed '{md5}99cd460fa15e169a28c4488ccdfbd826' to '{md5}99cd460fa15e169a28c4488ccdfbd826' notice: /File[/var/lib/puppet/lib/facter/hostgroup.rb]/ensure: content changed '{md5}8da04177b08d130a24c56ed0975f941a' to '{md5}8da04177b08d130a24c56ed0975f941a' notice: /File[/var/lib/puppet/lib/facter/location.rb]/ensure: content changed '{md5}799379883814b2041f3ff5cfce6b78ff' to '{md5}799379883814b2041f3ff5cfce6b78ff' notice: /File[/var/lib/puppet/lib/facter/memory.rb]/ensure: content changed '{md5}5065907b2ea6403463f0959c18b14f34' to '{md5}5065907b2ea6403463f0959c18b14f34' notice: /File[/var/lib/puppet/lib/facter/open_directory.rb]/ensure: content changed '{md5}7e77434d7f7ad8a048efcf126364094a' to '{md5}7e77434d7f7ad8a048efcf126364094a' notice: /File[/var/lib/puppet/lib/facter/operating_system.rb]/ensure: content changed '{md5}f554e27cf16498ff5acc8486455c7350' to '{md5}f554e27cf16498ff5acc8486455c7350' notice: /File[/var/lib/puppet/lib/facter/primary_interface.rb]/ensure: content changed '{md5}06fd542ab109a6fd2e0565937b2fa5eb' to '{md5}06fd542ab109a6fd2e0565937b2fa5eb' notice: /File[/var/lib/puppet/lib/facter/rand.rb]/ensure: content changed '{md5}b9d2d168c0ad33a095d4ec8620716d10' to '{md5}b9d2d168c0ad33a095d4ec8620716d10' notice: /File[/var/lib/puppet/lib/facter/real_os_hack.rb]/ensure: content changed '{md5}6d368e76ff9089c7ef859f5acd3b9634' to '{md5}6d368e76ff9089c7ef859f5acd3b9634' notice: /File[/var/lib/puppet/lib/facter/users.rb]/ensure: content changed '{md5}f0f486ba2cc34acd1011123594df1721' to '{md5}f0f486ba2cc34acd1011123594df1721' notice: /File[/var/lib/puppet/lib/facter/vncqueue.rb]/ensure: content changed '{md5}b7d44f775cfcc894d82c6338dc8052d3' to '{md5}b7d44f775cfcc894d82c6338dc8052d3' notice: /File[/var/lib/puppet/lib/puppet]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/parser]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/parser/functions]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/parser/functions/generate_ssh_known_hosts.rb]/ensure: content changed '{md5}658d2bdae542d9f6bcc64e223ee135d9' to '{md5}658d2bdae542d9f6bcc64e223ee135d9' notice: /File[/var/lib/puppet/lib/puppet/parser/functions/storeconfigs.rb]/ensure: content changed '{md5}168cbc17c3a8fc5f90c48d1de508e446' to '{md5}168cbc17c3a8fc5f90c48d1de508e446' notice: /File[/var/lib/puppet/lib/puppet/provider]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/provider/package]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/provider/package/encap.rb]/ensure: content changed '{md5}13f976001598e3cb8ca1601847b6c601' to '{md5}13f976001598e3cb8ca1601847b6c601' notice: /File[/var/lib/puppet/lib/puppet/provider/package/epkg.rb]/ensure: content changed '{md5}3d86561ca357bd803decf8032e5ca93a' to '{md5}3d86561ca357bd803decf8032e5ca93a' notice: /File[/var/lib/puppet/lib/puppet/type]/ensure: created And on 2.6.2: [r...@puppet1 tmp]# puppetd -vt --server ${PUPPETMASTER} --tags first-boot notice: Ignoring --listen on onetime run info: Retrieving plugin info: Creating state file /var/lib/puppet/state/state.yaml and running without tags on 2.6.2: [r...@puppet1 tmp]# puppetd -vt --server ${PUPPETMASTER} --noop notice: Ignoring --listen on onetime run info: Retrieving plugin notice: /File[/var/lib/puppet/lib/facter]/ensure: created notice: /File[/var/lib/puppet/lib/facter/broadcast.rb]/ensure: defined content as '{md5}e00b44f4a42da00ba8cf752adb119cd0' notice: /File[/var/lib/puppet/lib/facter/dmidecode.rb]/ensure: defined content as '{md5}5d9c5e5f7a4b7132168896e329e39238' notice: /File[/var/lib/puppet/lib/facter/gateway.rb]/ensure: defined content as '{md5}99cd460fa15e169a28c4488ccdfbd826' Looks like the root cause could be: debug: /File[/var/lib/puppet/lib]: Not tagged with first-boot -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
