Issue #21023 has been updated by Peter Meier.
Ok so I figured out, that if one uses a non-standard modulepath in the [master] section, it will fail to find any defines or type-plugins, so it can't unexport them as puppet can't know whether they are ensurable or not. Reason: puppet node clean is not started in the master mode, so it doesn't read the master-settings, where usually the modulepath is defined. Running puppet with `--run_mode master` does not help. Solution: pass your modulepath(s) to puppet: <pre> puppet node --modulepath /bla/blu clean foo.example.com </pre> This reminds me of: http://markmail.org/message/o3kobqhp5vrlns7z As far as I can see this has not yet been fixed. Daniel? ---------------------------------------- Bug #21023: puppet node clean --unexport unexports only built-in types https://projects.puppetlabs.com/issues/21023#change-92161 * Author: Peter Meier * Status: Unreviewed * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: 3.2.1 * Keywords: * Branch: ---------------------------------------- Since moving from 2.7 to 3.x any exported resource that is defined by a define, won't get unexported. Only built-in types get unexported. This is because the method [type_is_ensurable](https://github.com/puppetlabs/puppet/blob/master/lib/puppet/face/node/clean.rb#L150) does not anymore evaluate to true for defined resources. Especially [environment.known_resource_types.find_definition('', resource.restype)](https://github.com/puppetlabs/puppet/blob/master/lib/puppet/face/node/clean.rb#L154) does not anymore return the defined type if we're looking for it. How could this be fixed? -> environment.known_resource_types.find_definition('', resource.restype) should return the defined types again. Unexporting *all* defined resourced that are ensureable is a crucial task to get your nodes properly out of your infrastructure when using exported resources. -- 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.
