Bug #3540

Maillist removing broken

Added by Peter Meier about 2 years ago. Updated about 2 years ago.

Status:Closed Start date:04/12/2010
Priority:Normal Due date:
Assignee:James Turnbull % Done:

0%

Category:maillist
Target version:0.25.5
Affected Puppet version:0.25.5rc1 Branch:http://github.com/duritong/puppet/tree/tickets/0.25.x/3540
Keywords:
Votes: 1

Description

Given the following manifest:

maillist{'foo':
  ensure => absent,
  admin => 'foobar@example.com',
  mailserver => 'lists.example.com',
  password => 'foobar',
  webserver => 'example.com'
}

We get the following stracktrace:

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 # at /root/foo.pp:7

While setting the @absent => purged@ works.

Patch following…

History

Updated by Peter Meier about 2 years ago

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

Updated by James Turnbull about 2 years ago

  • Status changed from Unreviewed to Closed
  • Assignee set to James Turnbull

Pushed in commit:b93924e1f4ae55565d96701f55ec49ff16379ef0 in branch 0.25.x

Updated by James Turnbull about 2 years ago

  • Target version changed from 0.25.5 to 49

Updated by James Turnbull about 2 years ago

  • Target version changed from 49 to 0.25.5

Also available in: Atom PDF