[PATCH configure] BZ 788397 - /var/lib/iwhd should not be removed to maintain consistency with mongodb

Mike Orazi morazi at redhat.com
Sat Feb 11 02:26:01 UTC 2012


On Fri, 2012-02-10 at 18:06 -0800, Richard Su wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=788397
> 
> Currently there isn't a way to remove the buckets in iwhd.
> Removing /var/lib/iwhd and directories representing the buckets
> causes an inconsistency issue.
> ---
>  recipes/aeolus/manifests/iwhd.pp |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)
> 
> diff --git a/recipes/aeolus/manifests/iwhd.pp b/recipes/aeolus/manifests/iwhd.pp
> index 43b219b..6ef10f0 100644
> --- a/recipes/aeolus/manifests/iwhd.pp
> +++ b/recipes/aeolus/manifests/iwhd.pp
> @@ -83,13 +83,6 @@ class aeolus::iwhd::disabled {
>        enable  =>  false,
>        hasstatus =>  true}
>  
> -  if $aeolus_save_data == "false" {
> -    file { "/var/lib/iwhd":
> -      ensure  => 'absent',
> -      backup => 'false',
> -      force   => true,
> -      require => Service['iwhd']}
> -  }
>  }
>  
>  # Create a named bucket in iwhd

ACK.

Verified that this leaves the directories/buckets behind as expected so
things should be consistent.  

NOTE:  Richard and I discussed that the clean-iwhd.rb script doesn't
appear to clean up all objects on f15, which potentially leaves things
in a bad state, but testing on RHEL + f16 worked as expected.

Mike




More information about the aeolus-devel mailing list