[PATCH configure] BZ 725596 - umount rhev export only if it is not in use

Richard Su rwsu at redhat.com
Wed Dec 21 00:06:18 UTC 2011


On 12/20/2011 04:01 PM, Richard Su wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=725596
>
> umounting the RHEV export directory while it is in use
> would result in an error.
> ---
>   recipes/aeolus/manifests/profiles/rhevm.pp |    7 ++++---
>   1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/recipes/aeolus/manifests/profiles/rhevm.pp b/recipes/aeolus/manifests/profiles/rhevm.pp
> index bc86caf..1d5d73d 100644
> --- a/recipes/aeolus/manifests/profiles/rhevm.pp
> +++ b/recipes/aeolus/manifests/profiles/rhevm.pp
> @@ -76,7 +76,8 @@ class aeolus::profiles::rhevm {
>   }
>
>   class aeolus::profiles::rhevm::disabled {
> -  mount {"$rhevm_nfs_mount_point":
> -    ensure =>  unmounted,
> -    device =>  "$rhevm_nfs_server:$rhevm_nfs_export"}
> +  exec {"umount $rhevm_nfs_mount_point":
> +        path =>  ["/sbin", "/bin"],
> +        onlyif =>  [["mount -l | grep $rhevm_nfs_mount_point"],
> +                   ["/bin/sh -c '! (ps -ef | grep -v grep | grep dc-rhev-image)'"]]}
>   }
Pushed.



More information about the aeolus-devel mailing list