Issue #21023 has been updated by Charlie Sharpsteen. Status changed from Unreviewed to Investigating Assignee set to Charlie Sharpsteen
It looks like `node clean` pulls [some shenanigans](https://github.com/puppetlabs/puppet/blob/3.2.1/lib/puppet/face/node/clean.rb#L37-L43) that attempt to set it's run mode to `master`. I suspect these changes may come too late to actually affect how settings are loaded. Will look into this. ---------------------------------------- Bug #21023: puppet node clean --unexport unexports only built-in types https://projects.puppetlabs.com/issues/21023#change-92649 * Author: Peter Meier * Status: Investigating * Priority: Normal * Assignee: Charlie Sharpsteen * 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.
