def create(self): # If VDSM crashes while creating an interface a garbage interface will # still exist. If you have an idea how to go about making this atomic # please fix this. iscsiadm.iface_new(self.name) try: self.update() except: self.delete() raise