Bug #6143

cannot remove zpool's with ensure => absent

Added by Garrett Honeycutt over 1 year ago. Updated 2 months ago.

Status:Accepted Start date:02/04/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:2.7.x
Affected Puppet version: Branch:
Keywords:zpool solaris zfs
Votes: 0

Description

zpool { "mypool":
  ensure => present,
  disk   => "c1t1d0",
}

works as expected and produces

info: Applying configuration version '1296814477'
cannot open 'mypool': no such pool
notice: /Stage[main]//Zpool[mypool]/ensure: created
notice: Finished catalog run in 0.42 seconds
# zpool list
NAME     SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT
mypool  1008M  76.5K  1008M     0%  ONLINE  -

though when you set

ensure => absent
you get

err: /Stage[main]//Zpool[mypool]/ensure: change from present to absent failed: Could not set 'absent on ensure: undefined method `destroy' for # at /root/manifests/zfs.pp:4

tested with Puppet 2.6.4 built from master branch

History

Updated by Nigel Kersten over 1 year ago

  • Status changed from Unreviewed to Accepted

Updated by James Turnbull over 1 year ago

  • Target version changed from 2.6.x to 2.6.6

Updated by James Turnbull about 1 year ago

  • Target version changed from 2.6.6 to 2.6.x

Updated by Nigel Kersten about 1 year ago

  • Target version changed from 2.6.x to 2.7.x

Updated by Garrett Honeycutt 2 months ago

Pinging for update

Given our support for Solaris in Puppet Enterprise, this should be made a higher priority.

Also available in: Atom PDF