def stage_files(self): # Called after init to copy files to staging location # This is the base dir of the export domain self.export_domain_dir = self.nfs_dir + "/" + self.storage_domain if not os.path.isdir(self.export_domain_dir): raise Exception( "Cannot find expected export domain directory (%s) at local mount point (%s)" % (self.nfs_dir, self.storage_domain)) self.ovf_pkg = RHEVOVFPackage(disk=self.image_filename, ovf_name=self.ovf_name, ovf_desc=self.ovf_desc) self.ovf_pkg.sync()