Beispiel #1
0
 def create_template(self, backup_storage_uuid_list, name=None):
     image_inv = vol_ops.create_volume_template(self.get_volume().uuid, \
             backup_storage_uuid_list, name)
     image = zstack_image_header.ZstackTestImage()
     image.set_image(image_inv)
     image.set_state(image_header.CREATED)
     super(ZstackTestVolume, self).create_template()
     return image
 def create_template(self, backup_storage_uuid_list, name = None):
     image_inv = vol_ops.create_volume_template(self.get_volume().uuid, \
             backup_storage_uuid_list, name)
     image = zstack_image_header.ZstackTestImage()
     image.set_image(image_inv)
     image.set_state(image_header.CREATED)
     super(ZstackTestVolume, self).create_template()
     return image
def create_data_volume_template_from_volume(volume_uuid,
                                            backup_storage_uuid_list,
                                            name=None,
                                            session_uuid=None):
    volume_temp = vol_ops.create_volume_template(volume_uuid,
                                                 backup_storage_uuid_list,
                                                 name, session_uuid)
    return volume_temp