Revision a8e07057

b/lib/objects.py
1223 1223
    if self.osparams is None:
1224 1224
      self.osparams = {}
1225 1225
    UpgradeBeParams(self.beparams)
1226
    if self.disks_active is None:
1227
      self.disks_active = self.admin_state == constants.ADMINST_UP
1226 1228

  
1227 1229

  
1228 1230
class OS(ConfigObject):
b/tools/cfgupgrade
309 309
    DowngradeIPolicy(ipolicy, "cluster")
310 310

  
311 311

  
312
def DowngradeInstances(config_data):
313
  if "instances" not in config_data:
314
    raise Error("Can't find the 'instances' key in the configuration!")
315

  
316
  for _, iobj in config_data["instances"].items():
317
    if "disks_active" in iobj:
318
      del iobj["disks_active"]
319

  
320

  
312 321
def DowngradeAll(config_data):
313 322
  # Any code specific to a particular version should be labeled that way, so
314 323
  # it can be removed when updating to the next version.
315 324
  DowngradeCluster(config_data)
316 325
  DowngradeGroups(config_data)
326
  DowngradeInstances(config_data)
317 327

  
318 328

  
319 329
def main():

Also available in: Unified diff