Issue #3540 has been updated by Peter Meier.

Branch set to http://github.com/duritong/puppet/tree/tickets/0.25.x/3540


----------------------------------------
Bug #3540: Maillist removing broken
http://projects.puppetlabs.com/issues/3540

Author: Peter Meier
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: maillist
Target version: 0.25.5
Affected version: 0.25.5rc1
Keywords: 
Branch: http://github.com/duritong/puppet/tree/tickets/0.25.x/3540


Given the following manifest:

<pre>
maillist{'foo':
  ensure => absent,
  admin => '[email protected]',
  mailserver => 'lists.example.com',
  password => 'foobar',
  webserver => 'example.com'
}
</pre>

We get the following stracktrace:

<pre>
info: Applying configuration version '1271107469'
debug: //Maillist[foo]: Changing ensure
debug: //Maillist[foo]: 1 change(s)
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:414:in `set_absent'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:109:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:109:in `call_valuemethod'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:298:in `set'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:363:in `sync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/change.rb:54:in `go'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/change.rb:72:in `forward'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:120:in `apply_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:113:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:113:in `apply_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:85:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:253:in 
`eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:10:in
 `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:252:in 
`eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:207:in `eval_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:298:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:10:in
 `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:297:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:291:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:291:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:142:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppet.rb:132:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/bin/puppet:71  
err: //Maillist[foo]/ensure: change from present to absent failed: Could not 
set absent on ensure: undefined method `destroy' for #<Puppet::Type:
:Maillist:0x2aab5d14b670> at /root/foo.pp:7
</pre>

While setting the @absent => purged@ works.

Patch following...


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

Reply via email to