Commit cfacfd6e authored by Iustin Pop's avatar Iustin Pop
Browse files

burnin: use the new replace_disks constants

This patch updates burnin to the latest replace disks constant, and
changes the constants' values to be more accurate.

Reviewed-by: imsnah
parent 729164d0
......@@ -193,9 +193,9 @@ DISK_RDWR = "rw"
DISK_ACCESS_SET = frozenset([DISK_RDONLY, DISK_RDWR])
# disk replacement mode
REPLACE_DISK_PRI = "replace_primary" # replace disks on primary
REPLACE_DISK_SEC = "replace_secondary" # replace disks on secondary
REPLACE_DISK_CHG = "replace_all" # change secondary node
REPLACE_DISK_PRI = "replace_on_primary" # replace disks on primary
REPLACE_DISK_SEC = "replace_on_secondary" # replace disks on secondary
REPLACE_DISK_CHG = "replace_new_secondary" # change secondary node
# lock recalculate mode
LOCKS_REPLACE = 'replace'
......
......@@ -326,7 +326,7 @@ class Burner(object):
def ReplaceDisks2(self):
"""Replace secondary node."""
mode = constants.REPLACE_DISK_SEC
mode = constants.REPLACE_DISK_CHG
mytor = izip(islice(cycle(self.nodes), 2, None),
self.instances)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment