search for: find_srv

Displaying 15 results from an estimated 15 matches for "find_srv".

2009 May 28
2
[PATCH node] correctly use collectd udp dns entry
...2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ovirt b/scripts/ovirt index 8296783..4a7cbc7 100755 --- a/scripts/ovirt +++ b/scripts/ovirt @@ -43,7 +43,7 @@ start() { log "skipping ovirt-awake, oVirt identify service not available" fi - find_srv collectd tcp + find_srv collectd udp if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then collectd_conf=/etc/collectd.conf if [ -f $collectd_conf.in ]; then diff --git a/scripts/ovirt-config-collectd b/scripts/ovirt-config-collectd index e509e54..236ddaa 10075...
2009 Sep 08
2
[PATCH node] Add support for automatic remote logging on PXE ovirt-node
...| 4 ++++ 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/scripts/ovirt b/scripts/ovirt index 4ff03f2..0c5e3be 100755 --- a/scripts/ovirt +++ b/scripts/ovirt @@ -14,6 +14,9 @@ start() { if is_standalone; then return 0 fi + + ovirt-config-logging AUTO + find_srv ipa tcp if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then krb5_conf=/etc/krb5.conf @@ -43,21 +46,7 @@ start() { log "skipping ovirt-awake, oVirt identify service not available" fi - find_srv collectd udp - if [ -n "$SRV_HOST" -...
2010 Mar 02
1
fc12 node partially working
Hi, I finally have a fc12 node partially working. I still have to override the kargs runtime_mode in ovirt-early (I want "ovirt" runtime mode): 368 runtime_mode*) 369 OVIRT_RUNTIME_MODE=${i#runtime_mode=} 370 #runtime_mode=${i#runtime_mode=} 371 ;; And I have to set manually the the broker for qpid : service
2010 Mar 10
0
[PATCH] ovirt-awake runs alone now, doesn't need anymore to be lauch by /etc/init.d/ovirt
.../ovirt | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/scripts/ovirt b/scripts/ovirt index 25b9860..3059d35 100755 --- a/scripts/ovirt +++ b/scripts/ovirt @@ -37,20 +37,6 @@ ovirt_start() { log "skipping Kerberos configuration" fi - find_srv identify tcp - if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then - krb5_tab=/etc/libvirt/krb5.tab - # skip ktab download if we got it from /config - if [ -s $krb5_tab ]; then - krb5_tab= - fi - ovirt-awake start $SRV_HOST $SRV_PORT $krb...
2009 Sep 07
1
[PATCH node] Fix SRV_SERVER for SRV_HOST to work with /etc/init.d/ovirt-functions
...t-config-collectd +++ b/scripts/ovirt-config-collectd @@ -98,9 +98,9 @@ if [ "$1" = "AUTO" ]; then if [ -z "$OVIRT_COLLECTD_SERVER" -o -z "$OVIRT_COLLECTD_PORT" ]; then printf "\nAttempting to locate remote collectd server..." find_srv collectd udp - if [ -n "$SRV_SERVER" -a -n "$SRV_PORT" ]; then - printf "found! Using collectd server '$SRV_SERVER:$SRV_PORT'.\n" - ovirt_collectd $SRV_SERVER $SRV_PORT + if [ -n "$SRV_HOST" -a -n "$SRV_PORT&qu...
2010 Aug 24
1
[PATCH] Clean dig return (excess dot)
...ent <aclement at linagora.com> --- scripts/ovirt-functions | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 7b95ea8..9e96f7b 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -186,7 +186,7 @@ find_srv() local search=$(grep search /etc/resolv.conf) search=${search#search } for d in $domain $search; do - dnsreply=$(dig +short -t srv _$1._$2.$d) + dnsreply=$(dig +short -t srv _$1._$2.$d | sed s/.$// ) rc=$? if [ $rc -eq 0 ]; then set _ $dn...
2010 Oct 26
0
[PATCH node] add collectd.py
...f len(sys.argv) > 1: + if sys.argv[1] == "AUTO": + if not OVIRT_VARS.has_key("OVIRT_COLLECTD_SERVER") or not OVIRT_VARS.has_key["OVIRT_COLLECTD_PORT"]: + log("\nAttempting to locate remote collectd server...") + host, port = find_srv("collectd", "udp") + if not host is None and not port is None: + log("found! Using collectd server " + host + ":" + port) + ovirt_collectd(host, port) + else: + log("collectd server not f...
2010 Oct 26
0
[PATCH node] add logging.py
...if sys.argv[1] == "AUTO": + if not OVIRT_VARS.has_key("OVIRT_SYSLOG_SERVER") or not OVIRT_VARS.has_key("OVIRT_SYSLOG_PORT"): + + log("\nAttempting to locate remote syslog server...") + host, port = find_srv("syslog", "udp") + if not host is None and not port is None: + log("found! Using syslog server " + host + ":" + port) + ovirt_rsyslog(host, port, udp) + else: + log("...
2009 Aug 11
1
[PATCH node] Added support for remote logging with rsyslog-gssapi to node. NOTE: Needs selinux to be set to permissive (setenforce 0) to work.
...managed-rsyslog @@ -0,0 +1,72 @@ +#!/bin/bash +# +# Configures the rsyslog daemon +# for managed ovirt node. +# Source functions library +. /etc/init.d/functions +. /etc/init.d/ovirt-functions + +rsyslog_main_config="/etc/rsyslog.conf" +sysconfig_file="/etc/sysconfig/rsyslog" + +find_srv rsyslog tcp +if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then + echo "/usr/kerberos/bin/kinit -k -t /etc/libvirt/krb5.tab rsyslog/`hostname`" >> $sysconfig_file +else + log "skipping rsyslog configuration, could not find find remote server" + exit...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...Popen(swap_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + swap_output = swap.stdout.read() + for d in swap_output: + log ("Turning off %s") % d + os.system("swapoff %s") % d + vgremove_cmd = "vgremove -f %s" % vg + os.system(vgremove_cmd) + +# find_srv SERVICE PROTO +# +# reads DNS SRV record +# sets SRV_HOST and SRV_PORT if DNS SRV record found, clears them if not +# Example usage: +# find_srv ovirt tcp +def find_srv(srv, proto): + domain = subprocess.Popen("dnsdomainname 2>/dev/null", shell=True, stdout=PIPE, stderr=STDOUT) +...
2009 Jul 10
2
[PATCH: node 0/3] replace ovirt-identify-node with matahari
This patchset removes ovirt-identify-node and ovirt-listen awake. It adds startup script support for the matahari qmf agent, which takes over the responsibility for communicating node hardware capabilities to the ovirt-server. On the server side, host-browser has had its node identification functionality replaced by a new script, host-register, which is what interfaces with the matahari qmf agent
2009 Jul 08
1
[PATCH: ovirt-identify-node replacement 0/4] ovirt node patch to replace ovirt-identify-node with matahari qmf agent
The purpose of this patch is to add support for the matahari qmf agent package (http://git.et.redhat.com/?p=matahari.git;a=summary) to the node. The following actions are taken: 1. Deprecate ovirt-identify-node and ovirt-listen-awake by removing them from the autotools scripts, the rpm spec and the node startup scripts. 2. Remove ovirt-listen-awake and ovirt-identify-node completely. 3. Add
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...10 @@ wipe_volume_group() done for d in $(grep $vg /proc/swaps|awk '{print $1}'); do log "Turning off $d" - swapoff $d + swapoff "$d" done log "Removing $vg" - vgremove -f $vg + vgremove -f "$vg" } # find_srv SERVICE PROTO @@ -719,10 +719,10 @@ reboot() { if [ "$OVIRT_ISCSI_ENABLED" = "yes" ]; then # setup new Root if update is prepared if findfs LABEL=RootUpdate 2>&1 >/dev/null; then - root_update_dev=$(findfs LABEL=RootUpdate 2>/dev/nu...
2010 Feb 10
1
RFC: First pass at making the node generic...
I'm looking for feedback on this first patch. The node has been pushed towards a more generic boot process. With this patch the node can now boot up and execute a few specifically-named scripts that reside in /etc/node.d/ at key points during the startup. After this goes upstream, the next step will be to define in more detail the remote interfaces for the "managed" runtime
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...} ovirt_startup () { - local mgmthost=${OVIRT_MANAGEMENT_SERVER} - local mgmtport=${OVIRT_MANAGEMENT_PORT} + local mgmthost=${NODE_MANAGEMENT_SERVER} + local mgmtport=${NODE_MANAGEMENT_PORT} if [[ -z "${mgmthost}" ]] || [[ -z "${mgmtport}" ]]; then find_srv identify tcp @@ -109,7 +108,7 @@ start () { touch $VAR_SUBSYS_NODECONFIG # log "Starting ovirt-awake." - case "$OVIRT_RUNTIME_MODE" in + case "$NODE_RUNTIME_MODE" in "none") log "Node is operating in unmanaged mode...