def __init__(self, image, size, pool='rbd'): self.image = image self.size_bytes = convert_2_bytes(size) self.pool = pool self.pool_id = get_pool_id(pool_name=self.pool) self.error = False self.error_msg = '' self.changed = False
def __init__(self, image, size, pool='rbd'): self.image = image self.size = size self.pool = pool self.pool_id = get_pool_id(pool_name=self.pool) self.error = False self.error_msg = '' self.rbd_map = None self.map_needed = False self.changed = False
def __init__(self, image, size, backstore, pool=None): self.image = image self.size_bytes = convert_2_bytes(size) self.backstore = backstore if pool is None: pool = settings.config.pool self.pool = pool self.pool_id = get_pool_id(pool_name=self.pool) self.error = False self.error_msg = '' self.changed = False