search for: __st

Displaying 18 results from an estimated 18 matches for "__st".

Did you mean: __s8
2010 Jan 12
1
[PATCH] Adds the qemu log to the autotest output.
...t;) WORKDIR=$(mktemp -d) + warn() { printf '%s: %s\n' "$ME" "$*" >&2; } -die() { warn "$*"; exit 1; } +die() { warn "$*"; show_libvirt_log; exit 1; } debug() { if $debugging; then log "[DEBUG] %s" "$*"; fi } trap '__st=$?; cleanup_after_testing; exit $__st' 1 2 3 13 15 @@ -69,6 +70,15 @@ Usage: $ME [-n test_name] [LOGFILE] EOF } +# $1 - the nodename +show_libvirt_log () { + local logfile=/var/log/libvirt/qemu/$1.log + + printf "\n[${logfile}]\n" + sudo cat $logfile + printf "[${...
2009 Jun 04
1
[PATCH node] Hostname is now properly persisted between reboots. rhbz#504166
...s/ovirt-functions | 11 ++++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/scripts/ovirt-config-hostname b/scripts/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="/e...
2009 Sep 08
2
[PATCH node] Add support for automatic remote logging on PXE ovirt-node
...TO find_srv qpidd tcp if [ -n "$SRV_HOST" -a -n "$SRV_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 --g...
2010 Feb 23
1
More complete patch...
This patch supercedes the previous one by moving the functionality for relocating files into the make system.
2009 Jun 25
1
[PATCH node] Rerunning network config resets all network config. bz#507393
...1 files changed, 30 insertions(+), 16 deletions(-) diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index d29bd12..81f017c 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-config-networking @@ -16,8 +16,10 @@ WORKDIR=$(mktemp -d) || exit 1 trap '__st=$?; rm -rf "$WORKDIR"; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 -CONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg" +IFCONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg" +NTPCONF_FILE_ROOT="/files/etc/ntp" NTP_CON...
2010 Mar 11
1
[PATCH] Changes the start/stop/reload method names for sysvinit scripts.
...-firstboot b/scripts/ovirt-firstboot index 7717a50..89a2c2b 100755 --- a/scripts/ovirt-firstboot +++ b/scripts/ovirt-firstboot @@ -28,18 +28,18 @@ . /usr/libexec/ovirt-functions prog=ovirt-firstboot -lockfile=/var/lock/subsys/$prog +VAR_SUBSYS_OVIRT_FIRSTBOOT=/var/lock/subsys/$prog trap '__st=$?; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 -start () +start_ovirt_firstboot () { if ! is_firstboot && ! is_auto_install && ! is_upgrade; then return fi - - touch $lockfile + + touch $VAR_SUBSYS_OVIRT_FIRSTBOOT # by default in s...
2009 Jun 03
1
[PATCH node] Checks if storage is setup before setting the admin password. BZ#509339
...cripts/ovirt-config-password | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/scripts/ovirt-config-password b/scripts/ovirt-config-password index 7abfb3b..45b5d8c 100755 --- a/scripts/ovirt-config-password +++ b/scripts/ovirt-config-password @@ -8,6 +8,13 @@ trap '__st=$?; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 +warn() { printf '%s\n' "$*" >&2; } + +if [[ ! "Config" =~ $(lvdisplay -C | awk '{ print $1 }') ]]; then + warn "Local storage must be configured prior to setting the administrator...
2009 Jun 08
1
Rebased patch...
This is a rebase of the original patch sent.
2009 Jun 12
1
[PATCH node] o-c-config will only run when local storage is configured. rhbz#505560
...--- scripts/ovirt-config-logging | 6 +++++- 1 files changed, 5 insertions(+), 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 fil...
2009 Jul 07
1
Obsoletes previous patch
This patch obsoletes the previously submitted patch. It adds a warning message to the user when they select to change the NTP settings.
2009 Jul 06
0
[PATCH node] Disables SSH by default, and allows for enabling at firstboot. rhbz#509842
...warn() { printf '%s: %s\n' "$ME" "$*" >&2; } +die() { warn "$*"; exit 1; } + +WORKDIR=$(mktemp -d) || exit 1 + +# Remove $WORKDIR upon interrupt (and HUP, PIPE, TERM) and upon normal +# termination, being careful not to change the exit status. +trap '__st=$?; rm -rf "$WORKDIR"; exit $__st' 0 +trap 'exit $?' 1 2 13 15 + +toggle_ssh_access () +{ + local allowed=$1 + local config=$WORKDIR/augeas-ssh + + if $allowed; then permit="yes"; else permit="no"; fi + printf "set /files/etc/ssh/sshd_confi...
2009 Oct 23
1
[PATCH node] Add iSCSI initiator setup option
...g-iscsi new file mode 100755 index 0000000..8e1bbaf --- /dev/null +++ b/scripts/ovirt-config-iscsi @@ -0,0 +1,56 @@ +#!/bin/bash +# +# Configures 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_...
2009 Jun 18
1
[PATCH node] Users can view log files on the node. bz#506289
...000000..f21b462 --- /dev/null +++ b/scripts/ovirt-config-view-logs @@ -0,0 +1,37 @@ +#!/bin/bash +# + +. /etc/init.d/ovirt-functions + +ME=$(basename "$0") +warn() { printf '%s: %s\n' "$ME" "$*" >&2; } +die() { warn "$*"; exit 1; } + +trap '__st=$?; stop_log; exit $__st' 0 +trap 'exit $?' 1 2 13 15 + +RETURN_TO_MENU="Return To Menu" + +OPTIONS[${#OPTIONS[*]}]="/var/log/ovirt.log" +OPTIONS[${#OPTIONS[*]}]="$RETURN_TO_MENU" + +while true; do + printf "\nPlease select a log file to view.\n\n&q...
2009 Jul 10
0
[PATCH node] This is a follow-on patch for bz#507455.
...+ b/scripts/ovirt-config-storage @@ -11,6 +11,7 @@ ME=$(basename "$0") warn() { printf '%s: %s\n' "$ME" "$*" >&2; } die() { warn "$*"; exit 1; } +debug() { if $debugging; then printf "[DEBUG] %s\n" "$*"; fi } trap '__st=$?; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 @@ -36,8 +37,12 @@ logging_min_size=5 data_min_size=5 swap_min_size=5 +# Gets the drive's size and sets the supplied variable. +# $1 - the drive +# $2 - the variable get_drive_size() { + debug "get_drive_size: start...
2009 Jul 01
1
Replacement patch for bz#507455
This patch includes a fix to no longer list devices with 0 bytes of storage, such as removeable media devices with no media present.
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...d UDP and have +# an ISO file. + +ME=$(basename "$0") +WORKDIR=$(mktemp -d) +warn() { printf '%s: %s\n' "$ME" "$*" >&2; } +die() { warn "$*"; exit 1; } +debug() { if $debugging; then log "[DEBUG] %s" "$*"; fi } + +trap '__st=$?; cleanup_after_testing; exit $__st' 1 2 3 13 15 +trap 'cleanup_after_testing' 0 + +# set -e +# set -u + +log () { + date=$(date) + printf "${date} $*\n" +} + +usage () { + cat <<EOF +Usage: $ME [-n test_name] [LOGFILE] + -i: set the ISO filename (defualt: ov...
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...t; + +warn() { printf '%s: %s\n' "$ME" "$*" >&2; } +die() { warn "$*"; exit 1; } +verbose() { if $verbose; then printf "%s\n" "$*"; fi } +debug() { if $debugging; then printf "[DEBUG] %s\n" "$*"; fi } + +trap '__st=$?; cleanup; exit $__st' 1 2 3 13 15 +trap 'cleanup' 0 + +cleanup () { + if ! $preserve; then + debug "Cleaning up" + rm -rf $WORKDIR + fi +} + +hostname=$(hostname) + +servername="" +serverport="" +identifier=$hostname +verbose=false +d...
2009 Oct 14
8
Refactor ovirt-node code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora. Moves tools and kickstart files form ovirt-node-image to subpackage ovirt-node-recipe. Removes old sub packages form ovirt-node, stateless, logos, selinux. Modifies init scripts to meet Fedora packaging guidelines: added status, reload, and lockfile, rhbz: 514221 Added License file.