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()
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()
def snapshot_create(): """ Create snapshot for devstack """ destroy() setup() create()