Changeset 2495 for trunk/packages/invirt-remote
- Timestamp:
- Oct 7, 2009, 3:24:47 AM (15 years ago)
- Location:
- trunk/packages/invirt-remote
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote/debian/changelog
r2476 r2495 1 invirt-remote (0.4.2) unstable; urgency=low 2 3 * Add "monocast" method to send remctl requests to exactly one 4 randomly-selected host. 5 * Send LVM requests to randomly-selected host for redundancy and 6 load-balancing (LP: #307361). 7 8 -- Alex Dehnert <adehnert@mit.edu> Wed, 07 Oct 2009 03:19:30 -0400 9 1 10 invirt-remote (0.4.1) unstable; urgency=low 2 11 -
trunk/packages/invirt-remote/python/remote/__init__.py
r1822 r2495 1 1 from bcast import bcast 2 from monocast import monocast -
trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-proxy
r2292 r2495 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. 3 3 4 4 klist -s || kinit -k … … 7 7 case "$TYPE" in 8 8 control ) 9 9 MACHINE="$1"; SERVICE="$2"; shift; shift ;; 10 10 * ) 11 11 SERVICE="$1"; shift ;; 12 12 esac 13 13 14 14 case "$TYPE/$SERVICE" in 15 15 web/listvms ) 16 16 invirt-remote-listvms "$@" ;; 17 17 web/vnccert ) 18 18 invirt-remote-vnccert "$@" ;; … … 20 20 invirt-remote-availability "$@" ;; 21 21 web/lvcreate | web/lvremove | web/lvrename | web/lvresize ) 22 if [ -f "/etc/invirt/nolvm" ]; then 23 echo "LVM operations are temporarily disabled for maintenance, sorry." >&2 24 exit 2 25 fi 26 remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;; 22 invirt-remote-lvm "$SERVICE" "$@" 23 ;; 27 24 control/help ) 28 25 invirt-remctl-help ;; … … 32 29 exit 2 33 30 fi 34 31 invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;; 35 32 control/listhost|control/list-host ) 36 33 invirt-remote-listhost "$MACHINE" "$@" ;; 37 34 control/* ) 38 39 35 # Everything but create must go where the VM is already running. 36 invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;; 40 37 * ) 41 echo "ERROR: invalid subcommand "38 echo "ERROR: invalid subcommand $TYPE/$SERVICE" 42 39 exit 34 43 40 ;;
Note: See TracChangeset
for help on using the changeset viewer.