示例#1
0
文件: coi.py 项目: andylamb93/os-sqe
def snapshot_create(topology=None):
    ''' Make COI installation and create snapshot from installed COI '''
    func = {
        "2role": role2,
        "aio": aio,
        "fullha": fullha,
    }.get(topology, None)
    if not func:
        raise NameError("Configuration should be one of: 'aio', '2role', 'fullha'")
    log.info("Creating snapshots for COI %s" % topology)
    destroy()
    func()
    workarounds()
    create()
示例#2
0
def snapshot_create(topology=None):
    ''' Make COI installation and create snapshot from installed COI '''
    func = {
        "2role": role2,
        "aio": aio,
        "fullha": fullha,
    }.get(topology, None)
    if not func:
        raise NameError(
            "Configuration should be one of: 'aio', '2role', 'fullha'")
    log.info("Creating snapshots for COI %s" % topology)
    destroy()
    func()
    workarounds()
    create()
示例#3
0
def snapshot_create():
    """ Create snapshot for devstack """
    destroy()
    setup()
    create()
示例#4
0
def snapshot_create():
    """ Create snapshot for devstack """
    destroy()
    setup()
    create()