search for: test_ntp_configur

Displaying 7 results from an estimated 7 matches for "test_ntp_configur".

2010 Feb 11
3
[PATCH node] remove ipv4 validation for ntp and rely on actual ntp verification
...fi fi @@ -560,5 +555,9 @@ if [ "$net_configured" = 1 ]; then ifconfig $i down brctl delbr $i done - service network start + service network start 2> /dev/null + if [ $NTPSERVERS ]; then + log "Testing NTP Configuration" + test_ntp_configuration + fi fi diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 6435387..48d0e39 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -729,6 +729,22 @@ is_valid_ipv4 () { return $result } +test_ntp_configuration () { + # stop ntpd service for testin...
2010 Mar 10
0
[PATCH node] Improve performance of multipath translations
...h_device= + get_dm_device $dm_dev $mpath_device if [ -z "$mpath_device" ]; then mpath_device=$dev diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 6839614..5661bee 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -765,6 +765,28 @@ test_ntp_configuration () { } +get_dm_device () +{ + local device=$1 + local return_var=$2 + major=$(stat -c '%t' $(readlink -f $device)) + minor=$(stat -c '%T' $(readlink -f $device)) + local dm_device= + local rc=1 + for dm in /dev/mapper/*; do + if [ $major = $(stat...
2011 Aug 15
0
[PATCH node] Don't start ntp daemons until networking is started
.../dev/null") + os.system("service ntpdate start &> /dev/null") + os.system("service ntpd start &> /dev/null") if OVIRT_VARS.has_key("NTP"): log("Testing NTP Configuration") test_ntp_configuration() diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index cb96ab5..116159e 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-config-networking @@ -563,6 +563,7 @@ if ls "$WORKDIR"/augtool-* > /dev/null 2>&1 ; then config=&qu...
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...SPACE + get_drive_size "$ROOTDRIVE" ROOTDRIVESPACE fi # if the node is Fedora then use GPT, otherwise use MBR diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 6839614..5661bee 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -765,6 +765,28 @@ test_ntp_configuration () { } +get_dm_device () +{ + local device=$1 + local return_var=$2 + major=$(stat -c '%t' $(readlink -f $device)) + minor=$(stat -c '%T' $(readlink -f $device)) + local dm_device= + local rc=1 + for dm in /dev/mapper/*; do + if [ $major = $(stat...
2010 Oct 25
0
[PATCH node] add network.py script
...del_br_cmd = "brctl delbr %s" % i + os.system(del_br_cmd) + os.system("service network start 2> /dev/null") + if OVIRT_VARS.has_key("NTP"): + log("Testing NTP Configuration") + test_ntp_configuration() +try: + if "AUTO" in sys.argv[1]: + if OVIRT_VARS.has_key("OVIRT_INIT"): + network = Network() + network.configure_interface() + network.configure_dns() + network.configure_ntp() + network.save_ntp_configura...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...secondary header log "Wiping secondary gpt header" - local disk_kb_count=$(sfdisk -s $drive 2>/dev/null) + local disk_kb_count=$(sfdisk -s "$drive" 2>/dev/null) dd if=/dev/zero of=$drive bs=1024 seek=$(($disk_kb_count - 1)) count=1 } @@ -840,35 +840,35 @@ test_ntp_configuration () { get_dm_device () { - local device=$1 + local device="$1" local return_var=$2 - major=$(stat -c '%t' $(readlink -f $device)) - minor=$(stat -c '%T' $(readlink -f $device)) + major=$(stat -c '%t' $(readlink -f "$device")) +...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...isk_kb = subprocess.Popen("sfdisk -s \"%s\" 2>/dev/null", shell=True, stdout=PIPE, stderr=STDOUT) % drive + disk_kb_count = disk_kb.stdout.read() + os.system("dd if=/dev/zero of=\"%s\" bs=1024 seek=$((%s - 1)) count=1") % (drive,disk_kb_count) + +def test_ntp_configuration(): + # stop ntpd service for testing + os.system("service ntpd stop > /dev/null 2>&1") + for server in ntp_servers: + ret = os.system("ntpdate %s > /dev/null 2>&1") % server + if ret > 0: + print "\n Unable to ve...