puppet-network icon indicating copy to clipboard operation
puppet-network copied to clipboard

State: present --> absent --> present not possible

Open ciroiriarte opened this issue 10 years ago • 2 comments

Hi!, I'm configuring a new loopback alias, the device configuration file is created, change the state to absent zeroes the file on the next run (doesn't delete it). If I want to enable that alias again (changing its state), I get this errors:

Error: Could not prefetch network_config provider 'redhat': No resource and no name in property hash in redhat instance Notice: /Stage[main]/anycast::Aliases/Setinterface[lo:1]/Network_config[lo:1]/ensure: created Error: /Network_config[lo:1]: Could not evaluate: No resource and no name in property hash in redhat instance

Deleting the empty files allows it to run again without errors

SO: RHEL6 Puppet: 3.7.1 adrien-network: 0.4.1

ciroiriarte avatar Oct 10 '14 13:10 ciroiriarte

For info, this is the same problem shown in issue #89 along with a mod to the code as a workaround.

legooolas avatar Dec 16 '14 11:12 legooolas

This should have be resolved by #90.

jhoblitt avatar Apr 08 '15 14:04 jhoblitt