Commit be0636e3 authored by Guido Trotter's avatar Guido Trotter
Browse files

Burnin: don't add/remove routed nics

Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarIustin Pop <>
parent bd561702
......@@ -456,7 +456,7 @@ class Burner(object):
def GetState(self):
"""Read the cluster state from the config."""
"""Read the cluster state from the master daemon."""
if self.opts.nodes:
names = self.opts.nodes.split(",")
......@@ -486,6 +486,14 @@ class Burner(object):
if not found:
Err("OS '%s' not found" % self.opts.os)
cluster_info =
self.cluster_info = cluster_info
if not self.cluster_info:
Err("Can't get cluster info")
default_nic_params = self.cluster_info["nicparams"][constants.PP_DEFAULT]
self.cluster_default_nicparams = default_nic_params
def BurnCreateInstances(self):
......@@ -913,8 +921,14 @@ class Burner(object):
if opts.do_addremove_disks:
default_nic_mode = self.cluster_default_nicparams[constants.NIC_MODE]
# Don't add/remove nics in routed mode, as we would need an ip to add
# them with
if opts.do_addremove_nics:
if default_nic_mode == constants.NIC_MODE_BRIDGED:
Log("Skipping nic add/remove as the cluster is not in bridged mode")
if opts.do_activate_disks:
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