Issue #21023 has been updated by Peter Meier.

So I figured out that I can get the defines back to get unexported, when I move 
modulepath from the [master] to the [main] section. Probably the same could be 
done with exported resources based on plugins. So maybe the main problem is 
that puppet node clean is started with the wrong "config-mode".

----------------------------------------
Bug #21023: puppet node clean --unexport unexports only built-in types
https://projects.puppetlabs.com/issues/21023#change-92129

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


Reply via email to