summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d608605)
svn path=/trunk/packages/sipb-xen-console-server/; revision=672
+sipb-xen-console-server (2.03) unstable; urgency=low
+
+ * Multiplex consoles on multiple hosts.
+
+ -- Greg Price <price@mit.edu> Sun, 13 Jul 2008 08:35:17 -0400
+
sipb-xen-console-server (2.02) unstable; urgency=low
* And...xm isn't in the path, so give a full path
sipb-xen-console-server (2.02) unstable; urgency=low
* And...xm isn't in the path, so give a full path
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
-Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
Description: SIPB Xen serial console server server
This configures the VMM for the server-side of the console server
Description: SIPB Xen serial console server server
This configures the VMM for the server-side of the console server
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
-Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
Description: SIPB Xen serial console server server
This configures the VMM for the server-side of the console server
\ No newline at end of file
Description: SIPB Xen serial console server server
This configures the VMM for the server-side of the console server
\ No newline at end of file
import sipb_xen_database
import subprocess
import os
import sipb_xen_database
import subprocess
import os
sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
p.wait()
if __name__ == '__main__':
p.wait()
if __name__ == '__main__':
+ hostname = socket.getfqdn().lower()
+ config = '\n'.join('console %s { master %s; }' % (vm, hostname)
+ for vm in live_vms())
f = open('/etc/conserver/sipb-xen-consoles.cf', 'w')
f = open('/etc/conserver/sipb-xen-consoles.cf', 'w')
- f.write('\n'.join('console %s {}' % vm for vm in live_vms()))
f.close()
reload_conserver()
f.close()
reload_conserver()
+ subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab',
+ 'host/'+hostname+'@ATHENA.MIT.EDU'])
+ subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu',
+ 'console', 'update', config])