Revision b9f72b4e lib/config.py

b/lib/config.py
424 424
    self._OpenConfig()
425 425
    instance.serial_no = 1
426 426
    self._config_data.instances[instance.name] = instance
427
    self._config_data.cluster.serial_no += 1
427 428
    self._WriteConfig()
428 429

  
429 430
  def _SetInstanceStatus(self, instance_name, status):
......
462 463
    if instance_name not in self._config_data.instances:
463 464
      raise errors.ConfigurationError("Unknown instance '%s'" % instance_name)
464 465
    del self._config_data.instances[instance_name]
466
    self._config_data.cluster.serial_no += 1
465 467
    self._WriteConfig()
466 468

  
467 469
  @locking.ssynchronized(_config_lock)
......
490 492
                                                           disk.iv_name))
491 493

  
492 494
    self._config_data.instances[inst.name] = inst
495
    self._config_data.cluster.serial_no += 1
493 496
    self._WriteConfig()
494 497

  
495 498
  @locking.ssynchronized(_config_lock)
......
584 587
    self._OpenConfig()
585 588
    node.serial_no = 1
586 589
    self._config_data.nodes[node.name] = node
590
    self._config_data.cluster.serial_no += 1
587 591
    self._WriteConfig()
588 592

  
589 593
  @locking.ssynchronized(_config_lock)
......
598 602
      raise errors.ConfigurationError("Unknown node '%s'" % node_name)
599 603

  
600 604
    del self._config_data.nodes[node_name]
605
    self._config_data.cluster.serial_no += 1
601 606
    self._WriteConfig()
602 607

  
603 608
  @locking.ssynchronized(_config_lock, shared=1)
......
827 832
    """
828 833
    self._OpenConfig()
829 834
    self._config_data.cluster.volume_group_name = vg_name
835
    self._config_data.cluster.serial_no += 1
830 836
    self._WriteConfig()
831 837

  
832 838
  @locking.ssynchronized(_config_lock, shared=1)

Also available in: Unified diff