search for: is_local_storage_configured

Displaying 12 results from an estimated 12 matches for "is_local_storage_configured".

2009 Sep 08
2
[PATCH node] Add support for automatic remote logging on PXE ovirt-node
...V_PORT" ]; then diff --git a/scripts/ovirt-config-logging b/scripts/ovirt-config-logging index d8e5c95..598b7cb 100755 --- a/scripts/ovirt-config-logging +++ b/scripts/ovirt-config-logging @@ -8,7 +8,7 @@ trap '__st=$?; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 -if ! is_local_storage_configured; then +if ! is_local_storage_configured && ! is_diskless ; then printf "Local storage must be configured prior to configuring the logging system.\n" exit 99 fi diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 98e88e7..f86543e 100644 --- a/scripts/ovi...
2009 Jun 04
1
[PATCH node] Hostname is now properly persisted between reboots. rhbz#504166
...ripts/ovirt-config-hostname index cad0270..ac8cdf1 100755 --- a/scripts/ovirt-config-hostname +++ b/scripts/ovirt-config-hostname @@ -8,6 +8,13 @@ trap '__st=$?; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 +warn() { printf '%s\n' "$*" >&2; } + +if ! is_local_storage_configured; then + warn "Local storage must be configured prior to setting the hostname." + exit 99 +fi + HOSTNAME_FILE="/etc/sysconfig/network" function set_hostname { @@ -17,8 +24,9 @@ set /files$HOSTNAME_FILE/HOSTNAME "$1" EOF rc=$? if [ $rc = 0 ]; then -...
2010 May 10
1
[PATCH node] RESEND: fix iscsi installation problems
...++ b/scripts/ovirt-config-networking @@ -24,10 +24,12 @@ CONFIGURED_NIC="" VLAN_ID="" VL_ROOT="" +if [[ -z "$ROOTDRIVE" && "$OVIRT_ISCSI_ENABLED" != "y" ]]; then # 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 + if [[ ! is_local_storage_configured && "$OVIRT_ISCSI_NETWORKING" != "y" ]] ; then + printf "Local storage must be configured pr...
2010 Apr 09
0
[PATCH node] fix iscsi installation problems
...++ b/scripts/ovirt-config-networking @@ -24,10 +24,12 @@ CONFIGURED_NIC="" VLAN_ID="" VL_ROOT="" +if [[ -z "$ROOTDRIVE" && "$OVIRT_ISCSI_ENABLED" != "y" ]]; then # 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 + if [[ ! is_local_storage_configured && "$OVIRT_ISCSI_NETWORKING" != "y" ]] ; then + printf "Local storage must be configured pr...
2009 Jun 08
1
Follow-on patch
This is a follow-up patch to the previous one already pushed for #503993.
2009 Jun 08
1
Rebased patch...
This is a rebase of the original patch sent.
2009 Nov 11
1
[PATCH] Static IPv4 addresses entered are validated when they're entered.
...ng | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index 7d4e363..781553c 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-config-networking @@ -30,6 +30,28 @@ if ! is_local_storage_configured; then exit 99 fi +# $1 - the variable name to set +# $2 - the input prompt +function input_ipv4_address { + local varname=$1 + local prompt=$2 + + eval $varname=\"\" + + while true; do + read -ep "${prompt}: " + + if [ -z "$REPLY" ]; t...
2009 Dec 07
1
Rebased...
This version of the patch was rebased to go on top of recent changes committed to ovirt-config-networking on next.
2009 Jun 12
1
[PATCH node] o-c-config will only run when local storage is configured. rhbz#505560
...+), 1 deletions(-) diff --git a/scripts/ovirt-config-logging b/scripts/ovirt-config-logging index 5da991f..ba661c3 100755 --- a/scripts/ovirt-config-logging +++ b/scripts/ovirt-config-logging @@ -8,6 +8,11 @@ trap '__st=$?; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 +if ! is_local_storage_configured; then + printf "Local storage must be configured prior to configuring the logging system.\n" + exit 99 +fi + RSYSLOG_FILE="/etc/rsyslog.conf" # Creates the rsyslog file based on the following inputs @@ -185,4 +190,3 @@ else printf "\n\n Logging Configuration\...
2009 Jul 08
1
Final follow up patch to add warning for NTP...
Now, rather than displaying yet another warning, the NTP configuration just requires that the user select a NIC to configure first. That act alone provides the single warning to the user that they'll be changing their network configuration.
2009 Oct 23
1
[PATCH node] Add iSCSI initiator setup option
...res the hostname file based on kernel cmdline or user prompt +# Source functions library +. /etc/init.d/functions +. /etc/init.d/ovirt-functions + +trap '__st=$?; stop_log; exit $__st' 0 +trap 'exit $?' 1 2 13 15 + +warn() { printf '%s\n' "$*" >&2; } + +if ! is_local_storage_configured; then + warn "Local storage must be configured prior to setting the iSCSI Initiator Name." + exit 99 +fi + +INITIATOR_FILE="/etc/iscsi/initiatorname.iscsi" + +function prompt_user { + printf "\n" + printf "Enter iSCSI Initiator Name (If blank one will...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...["OVIRT_STANDALONE"] + +# oVirt Node in standalone mode does not try to contact the oVirt Server +def is_standalone(): + if is_managed: + return False + else: + return True + +# return 0 if local storage is configured +# return 1 if local storage is not configured +def is_local_storage_configured(): + ret = os.system("lvs HostVG/Config >/dev/null >&1") + if ret > 0: + return False + return True + +# perform automatic local disk installation +# when at least following boot parameters are present: +# for networking - OVIRT_BOOTIF, management NIC +#...