Darryl L. Pierce
2009-Jun-08 18:53 UTC
[Ovirt-devel] [PATCH node] o-c-networking checks local storage. bz#504662
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
--
1.6.0.6
Joey Boggs
2009-Jun-08 19:31 UTC
[Ovirt-devel] [PATCH node] o-c-networking checks local storage. bz#504662
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