Skip to contentSkip to conversation

remus: remove old remus script

PATCH Superseded Yang Hongyang 3 participants 16 messages Jun 25, 2014 – Jun 30, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 remus: remove old remus script

Since xend already deleted, the old remus script which based on xend no longer functional, remove it.

---
 tools/remus/Makefile |  15 ----
 tools/remus/remus    | 230 ---------------------------------------------------
 2 files changed, 245 deletions(-)
 delete mode 100644 tools/remus/Makefile
 delete mode 100644 tools/remus/remus
tools/remus/Makefile deleted +0 -15
deleted file mode 100644
index ae82376..0000000
@@ -1,15 +0,0 @@
-XEN_ROOT=$(CURDIR)/../..
-include $(XEN_ROOT)/tools/Rules.mk
-
-SCRIPTS = remus
-
-.PHONY: all
-all: subdirs-all
-
-.PHONY: install
-install: subdirs-install
-	$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
-	$(INSTALL_PYTHON_PROG) $(SCRIPTS) $(DESTDIR)$(BINDIR)
-
-.PHONY: clean
-clean: subdirs-clean
tools/remus/remus deleted +0 -230

230 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/4 remus: move remus README to docs directory

We do not need a separate directory to store remus README, just move it to docs/ directory.

---
 docs/README.remus  | 4 ++++
 tools/remus/README | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 docs/README.remus
 delete mode 100644 tools/remus/README
docs/README.remus new file +4 -0
new file mode 100644
index 0000000..9e8140b
@@ -0,0 +1,4 @@
+Remus provides fault tolerance for virtual machines by sending continuous
+checkpoints to a backup, which will activate if the target VM fails.
+
+See the website at http://nss.cs.ubc.ca/remus/ for details.
tools/remus/README deleted +0 -4
deleted file mode 100644
index 9e8140b..0000000
@@ -1,4 +0,0 @@
-Remus provides fault tolerance for virtual machines by sending continuous
-checkpoints to a backup, which will activate if the target VM fails.
-
-See the website at http://nss.cs.ubc.ca/remus/ for details.
Signature · 1 line
1.9.1
#2 lore raw

Re: [PATCH 2/4] remus: move remus README to docs directory

Quoted 33 lines · Yang Hongyang

We do not need a separate directory to store remus README, just move it to docs/ directory.

---
 docs/README.remus  | 4 ++++
 tools/remus/README | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 docs/README.remus
 delete mode 100644 tools/remus/README
docs/README.remus new file +4 -0
new file mode 100644
index 0000000..9e8140b
@@ -0,0 +1,4 @@
+Remus provides fault tolerance for virtual machines by sending continuous
+checkpoints to a backup, which will activate if the target VM fails.
+
+See the website at http://nss.cs.ubc.ca/remus/ for details.
tools/remus/README deleted +0 -5
deleted file mode 100644
index 9e8140b..0000000
@@ -1,4 +0,0 @@
-Remus provides fault tolerance for virtual machines by sending continuous
-checkpoints to a backup, which will activate if the target VM fails.
-
-See the website at http://nss.cs.ubc.ca/remus/ for details.
--
Quoted 2 lines

1.9.1

Fine by me. But please do remove the nss.cs link as I mentioned in patch 3.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw

Re: [PATCH 2/4] remus: move remus README to docs directory

Hi Shriram,

Quoted 33 lines · Shriram Rajagopalan
Quoted 5 lines · On Jun 25, 2014 12:34 PM, "Yang Hongyang" <[email protected]…

We do not need a separate directory to store remus README, just move it to docs/ directory.

<mailto:[email protected]>>

Quoted 24 lines
---
 docs/README.remus  | 4 ++++
 tools/remus/README | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 docs/README.remus
 delete mode 100644 tools/remus/README
docs/README.remus new file +4 -0
new file mode 100644
index 0000000..9e8140b
@@ -0,0 +1,4 @@
+Remus provides fault tolerance for virtual machines by sending continuous
+checkpoints to a backup, which will activate if the target VM fails.
+
+See the website at http://nss.cs.ubc.ca/remus/ for details.
tools/remus/README deleted +0 -1
deleted file mode 100644
index 9e8140b..0000000
@@ -1,4 +0,0 @@
-Remus provides fault tolerance for virtual machines by sending continuous
Quoted 9 lines
Quoted 6 lines
tools/remus/README deleted +0 -4
-checkpoints to a backup, which will activate if the target VM fails.
-
-See the website at http://nss.cs.ubc.ca/remus/ for details.
--

1.9.1

Fine by me. But please do remove the nss.cs link as I mentioned in patch 3.

After the first patch, there is only README file left in tools/remus directory, so I moved it to docs/

Signature · 2 lines
Thanks,
Yang.
#4 lore raw

Re: [PATCH 2/4] remus: move remus README to docs directory

Quoted 30 lines · Hongyang Yang

Hi Shriram,

Quoted 25 lines · Shriram Rajagopalan
Quoted 5 lines · On Jun 25, 2014 12:34 PM, "Yang Hongyang" <[email protected]…

We do not need a separate directory to store remus README, just move it to docs/ directory.

<mailto:[email protected]>>

Quoted 14 lines
---
 docs/README.remus  | 4 ++++
 tools/remus/README | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 docs/README.remus
 delete mode 100644 tools/remus/README
docs/README.remus new file +1 -0
new file mode 100644
index 0000000..9e8140b
@@ -0,0 +1,4 @@
+Remus provides fault tolerance for virtual machines by sending

continuous

Quoted 10 lines
Quoted 10 lines

tools/remus/README line 1

Quoted 10 lines
docs/README.remus new file +3 -0
+checkpoints to a backup, which will activate if the target VM fails.
+
+See the website at http://nss.cs.ubc.ca/remus/ for details.
tools/remus/README deleted +0 -1
deleted file mode 100644
index 9e8140b..0000000
@@ -1,4 +0,0 @@
-Remus provides fault tolerance for virtual machines by sending

continuous

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
tools/remus/README deleted +0 -4
-checkpoints to a backup, which will activate if the target VM fails.
-
-See the website at http://nss.cs.ubc.ca/remus/ for details.
--

1.9.1

Fine by me. But please do remove the nss.cs link as I mentioned in patch

3.

Quoted 3 lines
Quoted 1 line

After the first patch, there is only README file left in tools/remus

directory,

Quoted 2 lines

so I moved it to docs/

Yep. That's fine.

Quoted 8 lines

--
Thanks,
Yang.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw

Re: [PATCH 2/4] remus: move remus README to docs directory

Hi Shriram,

Since there's already v2 in list, would you please give an ack on v2
patch?

Quoted 70 lines · Shriram Rajagopalan
Quoted 8 lines · On Jun 25, 2014 1:13 PM, "Hongyang Yang" <[email protected]…

Hi Shriram,

Quoted 3 lines · Shriram Rajagopalan

On Jun 25, 2014 12:34 PM, "Yang Hongyang" <[email protected]

<mailto:[email protected]>

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines · <mailto:[email protected] <mailto:[email protected]>>> wrote:

We do not need a separate directory to store remus README, just move it to docs/ directory.

<mailto:[email protected]>

Quoted 33 lines
Quoted 33 lines

<mailto:[email protected] <mailto:[email protected]>>>

Quoted 30 lines
---
 docs/README.remus  | 4 ++++
 tools/remus/README | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 docs/README.remus
 delete mode 100644 tools/remus/README
docs/README.remus new file +4 -0
new file mode 100644
index 0000000..9e8140b
@@ -0,0 +1,4 @@
+Remus provides fault tolerance for virtual machines by sending continuous
+checkpoints to a backup, which will activate if the target VM fails.
+
+See the website at http://nss.cs.ubc.ca/remus/ for details.
tools/remus/README deleted +0 -5
deleted file mode 100644
index 9e8140b..0000000
@@ -1,4 +0,0 @@
-Remus provides fault tolerance for virtual machines by sending continuous
-checkpoints to a backup, which will activate if the target VM fails.
-
-See the website at http://nss.cs.ubc.ca/remus/ for details.
--

1.9.1

Quoted 6 lines
Quoted 2 lines

Fine by me. But please do remove the nss.cs link as I mentioned in patch 3.

After the first patch, there is only README file left in tools/remus directory, so I moved it to docs/

Yep. That's fine.

Acked-by Shriram Rajagopalan <[email protected] <mailto:[email protected]>>
Quoted 8 lines

--
Thanks,
Yang.

_______________________________________________
Xen-devel mailing list
[email protected] <mailto:[email protected]>
http://lists.xen.org/xen-devel

Signature · 2 lines
Thanks,
Yang.
#7 lore raw

PATCH 3/4 remus: add wikipage link to remus README

In reply to Yang Hongyang

add wikipage link to remus README

---
 docs/README.remus | 1 +
 1 file changed, 1 insertion(+)
docs/README.remus +1 -0
index 9e8140b..cb1bea0 100644
@@ -2,3 +2,4 @@ Remus provides fault tolerance for virtual machines by sending continuous
 checkpoints to a backup, which will activate if the target VM fails.
 
 See the website at http://nss.cs.ubc.ca/remus/ for details.
+See also http://wiki.xen.org/wiki/Remus.
Signature · 1 line
1.9.1
#8 lore raw

Re: [PATCH 3/4] remus: add wikipage link to remus README

docs/README.remus Remus provides fault tolerance for virtual machines by

Quoted 13 lines · Yang Hongyang

add wikipage link to remus README

---
 docs/README.remus | 1 +
 1 file changed, 1 insertion(+)
docs/README.remus +0 -0
index 9e8140b..cb1bea0 100644
@@ -2,3 +2,4 @@ Remus provides fault tolerance for virtual machines by

sending continuous

docs/README.remus Remus provides fault tolerance for virtual machines by sending continuous · line 4

Quoted 3 lines
docs/README.remus +0 -0
 checkpoints to a backup, which will activate if the target VM fails.
 
 See the website at http://nss.cs.ubc.ca/remus/ for details.

Can you please get rid of the nss.cs link? It does not exist anymore.

Quoted 4 lines
docs/README.remus +1 -1
+See also http://wiki.xen.org/wiki/Remus.
--

1.9.1

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#9 lore raw

Re: [PATCH 3/4] remus: add wikipage link to remus README

Quoted 18 lines · Shriram Rajagopalan
Quoted 4 lines · On Jun 25, 2014 12:34 PM, "Yang Hongyang" <[email protected]…

add wikipage link to remus README

<mailto:[email protected]>>

docs/README.remus Remus provides fault tolerance for virtual machines by

Quoted 9 lines
---
 docs/README.remus | 1 +
 1 file changed, 1 insertion(+)
docs/README.remus +0 -0
index 9e8140b..cb1bea0 100644
@@ -2,3 +2,4 @@ Remus provides fault tolerance for virtual machines by

sending continuous

Quoted 5 lines

docs/README.remus Remus provides fault tolerance for virtual machines by sending continuous · line 4

Quoted 3 lines
docs/README.remus +0 -0
 checkpoints to a backup, which will activate if the target VM fails.
 
 See the website at http://nss.cs.ubc.ca/remus/ for details.

Can you please get rid of the nss.cs link? It does not exist anymore.

Ok, does it moved to anywhere else, or should I just delete it...

Quoted 6 lines
Quoted 5 lines
docs/README.remus +1 -1
+See also http://wiki.xen.org/wiki/Remus.
--

1.9.1

Signature · 2 lines
Thanks,
Yang.
#10 lore raw

Re: [PATCH 3/4] remus: add wikipage link to remus README

Quoted 24 lines · Hongyang Yang
Quoted 22 lines · Shriram Rajagopalan
Quoted 4 lines · On Jun 25, 2014 12:34 PM, "Yang Hongyang" <[email protected]…

add wikipage link to remus README

<mailto:[email protected]>>

docs/README.remus Remus provides fault tolerance for virtual machines by

Quoted 9 lines
---
 docs/README.remus | 1 +
 1 file changed, 1 insertion(+)
docs/README.remus +0 -0
index 9e8140b..cb1bea0 100644
@@ -2,3 +2,4 @@ Remus provides fault tolerance for virtual machines by

sending continuous

Quoted 2 lines
docs/README.remus +0 -0
 checkpoints to a backup, which will activate if the target VM fails.
 
Quoted 7 lines
Quoted 3 lines

docs/README.remus Remus provides fault tolerance for virtual machines by sending continuous · line 4

Quoted 1 line
docs/README.remus +0 -0
 See the website at http://nss.cs.ubc.ca/remus/ for details.

Can you please get rid of the nss.cs link? It does not exist anymore.

Ok, does it moved to anywhere else, or should I just delete it...

Delete it please.

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
docs/README.remus +1 -1
+See also http://wiki.xen.org/wiki/Remus.
--

1.9.1

Quoted 4 lines

--
Thanks,
Yang.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#12 lore raw

PATCH 4/4 MAINTAINERS: Update maintained files of REMUS part

In reply to Yang Hongyang

delete tools/remus and add docs/README.remus

---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 1865a84..ae5d7b3 100644
@@ -258,7 +258,7 @@ T:	git git://xenbits.xen.org/qemu-upstream-*.git
 REMUS
 M:	Shriram Rajagopalan <[email protected]>
 S:	Maintained
-F:	tools/remus/
+F:	docs/README.remus
 F:	tools/blktap2/drivers/block-remus.c
 F:	tools/blktap2/drivers/hashtable*
 
Signature · 1 line
1.9.1
Acked-by on v1 4/4
#13 lore raw

Re: [PATCH 4/4] MAINTAINERS: Update maintained files of REMUS part

Yang Hongyang writes ("[PATCH 4/4] MAINTAINERS: Update maintained files of REMUS part"):

Quoted 1 line

delete tools/remus and add docs/README.remus

Acked-by on v1 1/4
#14 lore raw
In reply to Yang Hongyang
Quoted 8 lines · Yang Hongyang

Since xend already deleted, the old remus script which based on xend no longer functional, remove it.

---
 tools/remus/Makefile |  15 ----
 tools/remus/remus    | 230

---------------------------------------------------

Quoted 57 lines
 2 files changed, 245 deletions(-)
 delete mode 100644 tools/remus/Makefile
 delete mode 100644 tools/remus/remus
tools/remus/Makefile deleted +0 -15
deleted file mode 100644
index ae82376..0000000
@@ -1,15 +0,0 @@
-XEN_ROOT=$(CURDIR)/../..
-include $(XEN_ROOT)/tools/Rules.mk
-
-SCRIPTS = remus
-
-.PHONY: all
-all: subdirs-all
-
-.PHONY: install
-install: subdirs-install
-       $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
-       $(INSTALL_PYTHON_PROG) $(SCRIPTS) $(DESTDIR)$(BINDIR)
-
-.PHONY: clean
-clean: subdirs-clean
tools/remus/remus deleted +0 -26
deleted file mode 100644
index 38f0365..0000000
@@ -1,230 +0,0 @@
-#!/usr/bin/env python
-#
-# This is a save process which also buffers outgoing I/O between
-# rounds, so that external viewers never see anything that hasn't
-# been committed at the backup
-#
-# TODO: fencing.
-
-import optparse, os, re, select, signal, sys, time
-
-from xen.remus import save, util, vm
-from xen.remus.device import ReplicatedDisk, ReplicatedDiskException
-from xen.remus.device import BufferedNIC, BufferedNICException
-from xen.xend import XendOptions
-
-class CfgException(Exception): pass
-
-class Cfg(object):
-
-    REMUS_FLAGS_COMPRESSION = 1
-
-    def __init__(self):
-        # must be set
-        self.domid = 0
-
-        self.host = 'localhost'

tools/remus/remus line 36

Quoted 10 lines
tools/remus/remus deleted +0 -10
-        self.nullremus = False
-        self.port = XendOptions.instance().get_xend_relocation_port()
-        self.interval = 200
-        self.netbuffer = True
-        self.flags = self.REMUS_FLAGS_COMPRESSION
-        self.timer = False
-
-        parser = optparse.OptionParser()
-        parser.usage = '%prog [options] domain [destination]'
-        parser.add_option('-i', '--interval', dest='interval',

type='int',

tools/remus/remus

Quoted 4 lines
tools/remus/remus deleted +0 -4
-                          metavar='MS',
-                          help='checkpoint every MS milliseconds')
-        parser.add_option('-p', '--port', dest='port', type='int',
-                          help='send stream to port PORT',

metavar='PORT')

tools/remus/remus line 41

Quoted 1 line
tools/remus/remus deleted +0 -1
-        parser.add_option('', '--blackhole', dest='nullremus',

action='store_true',

tools/remus/remus line 42

Quoted 1 line
tools/remus/remus deleted +0 -1
-                          help='replicate to /dev/null (no disk

checkpoints, only memory & net buffering)')

tools/remus/remus line 43

Quoted 1 line
tools/remus/remus deleted +0 -1
-        parser.add_option('', '--no-net', dest='nonet',

action='store_true',

tools/remus/remus line 44

Quoted 1 line
tools/remus/remus deleted +0 -1
-                          help='run without net buffering (benchmark

option)')

tools/remus/remus line 45

Quoted 1 line
tools/remus/remus deleted +0 -1
-        parser.add_option('', '--no-compression', dest='nocompress',

action='store_true',

tools/remus/remus line 47

Quoted 2 lines
tools/remus/remus deleted +0 -2
-                          help='run without checkpoint compression')
-        parser.add_option('', '--timer', dest='timer',

action='store_true',

tools/remus/remus line 48

Quoted 1 line
tools/remus/remus deleted +0 -1
-                          help='force pause at checkpoint interval

(experimental)')

Quoted 28 lines
tools/remus/remus deleted +0 -28
-        self.parser = parser
-
-    def usage(self):
-        self.parser.print_help()
-
-    def getargs(self):
-        opts, args = self.parser.parse_args()
-
-        if opts.interval:
-            self.interval = opts.interval
-        if opts.port:
-            self.port = opts.port
-        if opts.nullremus:
-            self.nullremus = True
-        if opts.nonet:
-            self.netbuffer = False
-        if opts.nocompress:
-            self.flags &= ~self.REMUS_FLAGS_COMPRESSION
-        if opts.timer:
-            self.timer = True
-
-        if not args:
-            raise CfgException('Missing domain')
-        self.domid = args[0]
-        if (len(args) > 1):
-            self.host = args[1]
-
-class SignalException(Exception): pass

tools/remus/remus

Quoted 10 lines
tools/remus/remus deleted +0 -10
-
-def run(cfg):
-    closure = lambda: None
-    closure.cmd = None
-
-    def sigexception(signo, frame):
-        raise SignalException(signo)
-
-    def die():
-        # I am not sure what the best way to die is. xm destroy is

another option,

Quoted 75 lines
tools/remus/remus deleted +0 -75
-        # or we could attempt to trigger some instant reboot.
-        print "dying..."
-        print util.runcmd(['sudo', 'ifdown', 'eth2'])
-        # dangling imq0 handle on vif locks up the system
-        for buf in bufs:
-            buf.uninstall()
-        print util.runcmd(['sudo', 'xm', 'destroy', cfg.domid])
-        print util.runcmd(['sudo', 'ifup', 'eth2'])
-
-    def getcommand():
-        """Get a command to execute while running.
-        Commands include:
-          s: die prior to postsuspend hook
-          s2: die after postsuspend hook
-          r: die prior to preresume hook
-          r2: die after preresume hook
-          c: die prior to commit hook
-          c2: die after commit hook
-          """
-        r, w, x = select.select([sys.stdin], [], [], 0)
-        if sys.stdin not in r:
-            return
-
-        cmd = sys.stdin.readline().strip()
-        if cmd not in ('s', 's2', 'r', 'r2', 'c', 'c2'):
-            print "unknown command: %s" % cmd
-        closure.cmd = cmd
-
-    signal.signal(signal.SIGTERM, sigexception)
-
-    dom = vm.VM(cfg.domid)
-
-    # set up I/O buffers
-    bufs = []
-
-    # disks must commit before network can be released
-    if not cfg.nullremus:
-        for disk in dom.disks:
-            try:
-                bufs.append(ReplicatedDisk(disk))
-            except ReplicatedDiskException, e:
-                print e
-                continue
-
-    if cfg.netbuffer:
-        for vif in dom.vifs:
-            bufs.append(BufferedNIC(vif))
-
-    if cfg.nullremus:
-        fd = save.NullSocket((cfg.host, cfg.port))
-    else:
-        fd = save.MigrationSocket((cfg.host, cfg.port))
-
-    def postsuspend():
-        'Begin external checkpointing after domain has paused'
-        if not cfg.timer:
-            # when not using a timer thread, sleep until now + interval
-            closure.starttime = time.time()
-
-        if closure.cmd == 's':
-            die()
-
-        for buf in bufs:
-            buf.postsuspend()
-
-        if closure.cmd == 's2':
-            die()
-
-    def preresume():
-        'Complete external checkpointing before domain resumes'
-        if closure.cmd == 'r':
-            die()
-
-        for buf in bufs:
-            buf.preresume()

tools/remus/remus

Quoted 10 lines
tools/remus/remus deleted +0 -10
-
-        if closure.cmd == 'r2':
-            die()
-
-    def commit():
-        'commit network buffer'
-        if closure.cmd == 'c':
-            die()
-
-        print >> sys.stderr, "PROF: flushed memory at %0.6f" %

(time.time())

Quoted 19 lines
tools/remus/remus deleted +0 -19
-
-        for buf in bufs:
-            buf.commit()
-
-        if closure.cmd == 'c2':
-            die()
-
-        # Since the domain is running at this point, it's a good time to
-        # check for control channel commands
-        getcommand()
-
-        if not cfg.timer:
-            endtime = time.time()
-            elapsed = (endtime - closure.starttime) * 1000
-
-            if elapsed < cfg.interval:
-                time.sleep((cfg.interval - elapsed) / 1000.0)
-
-        # False ends checkpointing

tools/remus/remus

Quoted 10 lines
tools/remus/remus deleted +0 -10
-        return True
-
-    if cfg.timer:
-        interval = cfg.interval
-    else:
-        interval = 0
-
-    rc = 0
-
-    checkpointer = save.Saver(cfg.domid, fd, postsuspend, preresume,

commit,

Quoted 31 lines
tools/remus/remus deleted +0 -31
-                              interval, cfg.flags)
-
-    try:
-        checkpointer.start()
-    except save.CheckpointError, e:
-        print e
-        rc = 1
-    except KeyboardInterrupt:
-        pass
-    except SignalException:
-        print '*** signalled ***'
-
-    for buf in bufs:
-        buf.uninstall()
-
-    sys.exit(rc)
-
-cfg = Cfg()
-try:
-    cfg.getargs()
-except CfgException, inst:
-    print str(inst)
-    cfg.usage()
-    sys.exit(1)
-
-try:
-    run(cfg)
-except vm.VMException, inst:
-    print str(inst)
-    sys.exit(1)
--
Quoted 2 lines

1.9.1

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel