Changeset 1176 for trunk/packages/invirt-remote-server/files/usr/sbin
- Timestamp:
- Oct 24, 2008, 12:00:00 AM (16 years ago)
- Location:
- trunk/packages/invirt-remote-server
- Files:
-
- 11 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remconffs
r1175 r1176 31 31 self.fuse_args.add("allow_other", True) 32 32 33 openlog(' sipb-xen-remconffs ', LOG_PID, LOG_DAEMON)33 openlog('invirt-remconffs ', LOG_PID, LOG_DAEMON) 34 34 35 35 syslog(LOG_DEBUG, 'Init complete.') … … 58 58 """Build the master conf file, with all machines 59 59 """ 60 return '\n'.join("control %s /usr/sbin/ sipb-xen-remote-proxy-control"60 return '\n'.join("control %s /usr/sbin/invirt-remote-proxy-control" 61 61 " /etc/remctl/remconffs/acl/%s" 62 62 % (machine_name, machine_name) -
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-control
r1175 r1176 10 10 def main(argv): 11 11 if len(argv) < 3: 12 print >>sys.stderr, "usage: sipb-xen-remote-control <machine> <command>"12 print >>sys.stderr, "usage: invirt-remote-control <machine> <command>" 13 13 return 2 14 14 machine_name = argv[1] 15 15 command = argv[2] 16 16 17 p = Popen(['/usr/sbin/ sipb-xen-remote-proxy-web', 'listvms'], stdout=PIPE)17 p = Popen(['/usr/sbin/invirt-remote-proxy-web', 'listvms'], stdout=PIPE) 18 18 output = p.communicate()[0] 19 19 if p.returncode != 0: 20 20 raise RuntimeError("Command '%s' returned non-zero exit status %d" 21 % (' sipb-xen-remote-proxy-web', p.returncode))21 % ('invirt-remote-proxy-web', p.returncode)) 22 22 vms = yaml.load(output, yaml.CSafeLoader) 23 23 -
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-create
r1175 r1176 22 22 def main(argv): 23 23 if len(argv) < 3: 24 print >> sys.stderr, "usage: sipb-xen-remote-create <operation> <machine> [<other args...>]"24 print >> sys.stderr, "usage: invirt-remote-create <operation> <machine> [<other args...>]" 25 25 return 2 26 26 operation = argv[1] … … 38 38 return 1 39 39 40 p = Popen(['/usr/sbin/ sipb-xen-remote-proxy-web', 'listvms'], stdout=PIPE)40 p = Popen(['/usr/sbin/invirt-remote-proxy-web', 'listvms'], stdout=PIPE) 41 41 output = p.communicate()[0] 42 42 if p.returncode != 0: 43 43 raise RuntimeError("Command '%s' returned non-zero exit status %d" 44 % (' sipb-xen-remote-proxy-web', p.returncode))44 % ('invirt-remote-proxy-web', p.returncode)) 45 45 vms = yaml.load(output, yaml.CSafeLoader) 46 46 -
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-listhost
r1175 r1176 10 10 def main(argv): 11 11 if len(argv) < 2: 12 print >>sys.stderr, "usage: sipb-xen-remote-listhost <machine>"12 print >>sys.stderr, "usage: invirt-remote-listhost <machine>" 13 13 return 2 14 14 machine_name = argv[1] 15 15 16 p = Popen(['/usr/sbin/ sipb-xen-remote-proxy-web', 'listvms'], stdout=PIPE)16 p = Popen(['/usr/sbin/invirt-remote-proxy-web', 'listvms'], stdout=PIPE) 17 17 output = p.communicate()[0] 18 18 if p.returncode != 0: 19 19 raise RuntimeError("Command '%s' returned non-zero exit status %d" 20 % (' sipb-xen-remote-proxy-web', p.returncode))20 % ('invirt-remote-proxy-web', p.returncode)) 21 21 vms = yaml.load(output, yaml.CSafeLoader) 22 22 -
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-proxy
r1175 r1176 1 1 #!/bin/bash 2 # invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense.2 # invoke as invirt-remote-proxy-$TYPE, with "TYPE" in the remctl sense. 3 3 4 4 klist -s || kinit -k … … 14 14 case "$TYPE/$SERVICE" in 15 15 web/listvms ) 16 sipb-xen-remote-listvms "$@" ;;16 invirt-remote-listvms "$@" ;; 17 17 control/create|control/install ) 18 sipb-xen-remote-create "$SERVICE" "$MACHINE" "$@" ;;18 invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;; 19 19 control/listhost|control/list-host ) 20 sipb-xen-remote-listhost "$MACHINE" "$@" ;;20 invirt-remote-listhost "$MACHINE" "$@" ;; 21 21 control/* ) 22 22 # Everything but create must go where the VM is already running. 23 sipb-xen-remote-control "$MACHINE" "$SERVICE" "$@" ;;23 invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;; 24 24 * ) 25 25 remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;; -
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-proxy-control
r1175 r1176 1 link sipb-xen-remote-proxy1 link invirt-remote-proxy -
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-proxy-web
r1175 r1176 1 link sipb-xen-remote-proxy1 link invirt-remote-proxy
Note: See TracChangeset
for help on using the changeset viewer.