Changeset 2513


Ignore:
Timestamp:
Oct 24, 2009, 8:40:08 PM (15 years ago)
Author:
adehnert
Message:

Minor cleanup of monocast and LVM load balancer

Location:
trunk/packages/invirt-remote
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/debian/changelog

    r2495 r2513  
     1invirt-remote (0.4.3) unstable; urgency=low
     2
     3  * Minor cleanup of 0.4.2
     4
     5 -- Alex Dehnert <adehnert@mit.edu>  Sat, 24 Oct 2009 17:12:33 -0400
     6
    17invirt-remote (0.4.2) unstable; urgency=low
    28
  • trunk/packages/invirt-remote/python/remote/monocast.py

    r2495 r2513  
    55hostnames = [ h.hostname for h in config.hosts ]
    66
    7 def monocast(args, hosts = hostnames, randomize = True):
     7def monocast(args, hostnames = hostnames, randomize = True):
    88    """
    99    Given a command and a list of hostnames or IPs, issue the command to each
     
    1818    """
    1919    if(randomize):
    20         hosts = random.sample(hosts, len(hosts))
     20        hostnames = random.sample(hostnames, len(hostnames))
    2121    hostsdown = []
    22     for host in hosts:
     22    for host in hostnames:
    2323        pipe = Popen(['remctl', host, 'remote', 'web'] + args, stdout=PIPE, stderr=PIPE)
    2424        output = pipe.communicate()
     
    2727                hostsdown.append(host)
    2828            else:
    29                 #raise RuntimeError("remctl to host %s returned non-zero exit status %d; stderr:\n%s"
    30                 #                   % (host, pipe.returncode, output[1]))
    3129                return (host, hostsdown, pipe.returncode,) + output
    3230        else:
  • trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-lvm

    r2495 r2513  
    1818    sys.stdout.write(result[3]) # stdout
    1919    sys.stderr.write(result[4]) # stderr
     20    return 0
    2021
    2122if __name__ == '__main__':
    2223    sys.exit(main(sys.argv))
    23 
    24 # vim:et:sw=4:ts=4
  • trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-proxy

    r2495 r2513  
    1 #!/bin/bash                                                                                         
    2 # invoke as invirt-remote-proxy-$TYPE, with "TYPE" in the remctl sense.                             
     1#!/bin/bash
     2# invoke as invirt-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
    33
    44klist -s || kinit -k
Note: See TracChangeset for help on using the changeset viewer.