Ignore:
Timestamp:
Jul 13, 2008, 8:57:03 AM (16 years ago)
Author:
price
Message:

multiplex conserver across hosts

Location:
trunk/packages/sipb-xen-console-server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-console-server/debian/changelog

    r403 r672  
     1sipb-xen-console-server (2.03) unstable; urgency=low
     2
     3  * Multiplex consoles on multiple hosts.
     4
     5 -- Greg Price <price@mit.edu>  Sun, 13 Jul 2008 08:35:17 -0400
     6
    17sipb-xen-console-server (2.02) unstable; urgency=low
    28
  • trunk/packages/sipb-xen-console-server/debian/control

    r386 r672  
    1010Provides: ${diverted-files}
    1111Conflicts: ${diverted-files}
    12 Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
     12Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
    1313Description: SIPB Xen serial console server server
    1414  This configures the VMM for the server-side of the console server
  • trunk/packages/sipb-xen-console-server/debian/control.in

    r386 r672  
    1010Provides: ${diverted-files}
    1111Conflicts: ${diverted-files}
    12 Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
     12Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
    1313Description: SIPB Xen serial console server server
    1414  This configures the VMM for the server-side of the console server
  • trunk/packages/sipb-xen-console-server/files/usr/sbin/sipb-xen-update-conserver

    r403 r672  
    44import subprocess
    55import os
     6import socket
    67
    78sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
     
    1920
    2021if __name__ == '__main__':
     22    hostname = socket.getfqdn().lower()
     23    config = '\n'.join('console %s { master %s; }' % (vm, hostname)
     24                       for vm in live_vms())
    2125    f = open('/etc/conserver/sipb-xen-consoles.cf', 'w')
    22     f.write('\n'.join('console %s {}' % vm for vm in live_vms()))
     26    f.write(config)
    2327    f.close()
    2428    reload_conserver()
     29    subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab',
     30                     'host/'+hostname+'@ATHENA.MIT.EDU'])
     31    subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu',
     32                     'console', 'update', config])
Note: See TracChangeset for help on using the changeset viewer.