rposudnevskiy / RBDSR

RBDSR - XenServer/XCP-ng Storage Manager plugin for CEPH
GNU Lesser General Public License v2.1
58 stars 23 forks source link

Code error in cephutils.py, causes problem with live migrations #19

Closed nickmdg closed 7 years ago

nickmdg commented 7 years ago

There is a small spelling error in cephutils.py where self is miss spelt as 'slef' this error looks to only trigger during a SXM migration.

453c453
<         util.pread2(["dmsetup", "create", slef.DM_MIRROR_NAME, "--table", "0 %s snapshot %s %s P 1" % (str(int(size) / 512), self.DM_ZERO_DEV, self.RBD_SXM_MIRROR_DEV)])

---
>         util.pread2(["dmsetup", "create", self.DM_MIRROR_NAME, "--table", "0 %s snapshot %s %s P 1" % (str(int(size) / 512), self.DM_ZERO_DEV, self.RBD_SXM_MIRROR_DEV)])
rposudnevskiy commented 7 years ago

Thank you. Fixed.