[Ovirt-devel] [PATCH node] o-c-networking checks local storage. bz#504662

Joey Boggs jboggs at redhat.com
Mon Jun 8 19:31:19 UTC 2009


Darryl L. Pierce wrote:
> The script first checks that the local storage device is configured. If
> not then it shows a warning message and exists as aborted.
>
> Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
> ---
>  scripts/ovirt-config-networking |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
> index 7c5d873..4d31401 100755
> --- a/scripts/ovirt-config-networking
> +++ b/scripts/ovirt-config-networking
> @@ -20,6 +20,12 @@ CONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg"
>  NTP_CONFIG_FILE="/etc/ntp.conf"
>  CONFIGURED_NIC=""
>  
> +# if local storage is not configured, then exit the script
> +if ! is_local_storage_configured; then
> +    printf "Local storage must be configured prior to configuring the management interface.\n\n"
> +    exit 99
> +fi
> +
>  function configure_interface
>  {
>      local NIC=$1
>   
ACK




More information about the ovirt-devel mailing list