Revision 61cf6b5e lib/cmdlib.py

b/lib/cmdlib.py
4566 4566
    # Declare that we don't want to remove the instance lock anymore, as we've
4567 4567
    # added the instance to the config
4568 4568
    del self.remove_locks[locking.LEVEL_INSTANCE]
4569
    # Remove the temp. assignements for the instance's drbds
4570
    self.cfg.ReleaseDRBDMinors(instance)
4571 4569
    # Unlock all the nodes
4572 4570
    if self.op.mode == constants.INSTANCE_IMPORT:
4573 4571
      nodes_keep = [self.op.src_node]
......
5164 5162
      dev.logical_id = new_logical_id
5165 5163
      cfg.SetDiskID(dev, pri_node)
5166 5164
    cfg.Update(instance)
5167
    # we can remove now the temp minors as now the new values are
5168
    # written to the config file (and therefore stable)
5169
    self.cfg.ReleaseDRBDMinors(instance.name)
5170 5165

  
5171 5166
    # and now perform the drbd attach
5172 5167
    info("attaching primary drbds to new secondary (standalone => connected)")

Also available in: Unified diff