WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.0-testing] Remus: remove obsolete code

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] Remus: remove obsolete code
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Jun 2010 23:35:27 -0700
Delivery-date: Mon, 21 Jun 2010 23:36:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1277187945 -3600
# Node ID a64cb77277cbc0e13b508afcba592a4d76ad355d
# Parent  9cd6e71b5cc77c2c7d6a6e89658eb08ef83658df
Remus: remove obsolete code

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
xen-unstable changeset:   21239:8559e324941f
xen-unstable date:        Tue May 04 09:31:13 2010 +0100
---
 tools/remus/remus |   18 ------------------
 1 files changed, 18 deletions(-)

diff -r 9cd6e71b5cc7 -r a64cb77277cb tools/remus/remus
--- a/tools/remus/remus Tue Jun 22 07:25:14 2010 +0100
+++ b/tools/remus/remus Tue Jun 22 07:25:45 2010 +0100
@@ -22,7 +22,6 @@ class Cfg(object):
         self.port = XendOptions.instance().get_xend_relocation_port()
         self.interval = 200
         self.netbuffer = True
-        self.nobackup = False
         self.timer = False
 
         parser = optparse.OptionParser()
@@ -36,10 +35,6 @@ class Cfg(object):
                           help='run without net buffering (benchmark option)')
         parser.add_option('', '--timer', dest='timer', action='store_true',
                           help='force pause at checkpoint interval 
(experimental)')
-        parser.add_option('', '--no-backup', dest='nobackup',
-                          action='store_true',
-                          help='prevent backup from starting up (benchmark '
-                          'option)')
         self.parser = parser
 
     def usage(self):
@@ -106,20 +101,12 @@ class ReplicatedDisk(BufferedDevice):
     def __del__(self):
         self.uninstall()
 
-    def setup(self):
-        #self.ctlfd.write('buffer')
-        #self.ctlfd.flush()
-        self.installed = True
-
     def uninstall(self):
         if self.ctlfd:
             self.ctlfd.close()
             self.ctlfd = None
 
     def postsuspend(self):
-        if not self.installed:
-            self.setup()
-
         os.write(self.ctlfd.fileno(), 'flush')
 
     def commit(self):
@@ -340,11 +327,6 @@ def run(cfg):
     for buf in bufs:
         buf.uninstall()
 
-    if cfg.nobackup:
-        # lame attempt to kill backup if protection is stopped deliberately.
-        # It would be much better to move this into the heartbeat "protocol".
-        print util.runcmd(['sudo', '-u', os.getlogin(), 'ssh', cfg.host, 
'sudo', 'xm', 'destroy', dom.name])
-
     sys.exit(rc)
 
 cfg = Cfg()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] Remus: remove obsolete code, Xen patchbot-4.0-testing <=