def __init__(self): self._readConfig = ReadConfig() self._loggers = Loggers() self._os_tenant_name = self._readConfig.accounts.basebench_os_tenant_name self._os_project_name = self._readConfig.accounts.basebench_os_project_name self._os_username = self._readConfig.accounts.basebench_os_username self._os_password = self._readConfig.accounts.basebench_os_password self._init = Init(self._os_tenant_name, self._os_project_name, self._os_username, self._os_password, self._loggers.basebenchLogger) self._accountResource = self._init.initAccountResource() self._test_fio_router_name = 'basebench_fio_router' self._test_iperf_router_name = 'basebench_iperf_router' self._test_unixbench_router_name = 'basebench_unixbench_router' self._user_data_path = 'userdata/user_data' self._test_fio_net_name = 'basebench_fio_net' self._test_fio_subnet_cidr = '192.168.50.0/24' self._test_iperf_net1_name = 'basebench_iperf_net1' self._test_iperf_subnet1_cidr = '192.168.70.0/24' self._test_iperf_net2_name = 'basebench_iperf_net2' self._test_iperf_subnet2_cidr = '192.168.80.0/24' self._test_unixbench_net_name = 'basebench_unixbench_net' self._test_unixbench_subnet_cidr = '192.168.60.0/24' self._loggers.basebenchLogger.info('===初始化基准测试基础资源===') self._initResource()
def __init__(self,os_tenant_name,os_project_name,os_username,os_password): self._readConfig = ReadConfig() self._os_tenant_name=os_tenant_name self._os_project_name=os_project_name self._os_username=os_username self._os_password=os_password self._cinderClient = CinderClient(self._os_tenant_name, self._os_project_name, self._os_username, self._os_password)
def __init__(self): self._readConfig = ReadConfig() self._os_tenant_name = self._readConfig.base.admin_os_tenant_name self._os_project_name = self._readConfig.base.admin_os_project_name self._os_username = self._readConfig.base.admin_os_username self._os_password = self._readConfig.base.admin_os_password self._keystoneClient = KeystoneClient() self._openstackClient = OpenstackClient(self._os_tenant_name, self._os_project_name, self._os_username, self._os_password)
def __init__(self): self._readConfig=ReadConfig() self._loggers=Loggers() self._os_tenant_name=self._readConfig.accounts.stability_heat_os_tenant_name self._os_project_name=self._readConfig.accounts.stability_heat_os_project_name self._os_username =self._readConfig.accounts.stability_heat_os_username self._os_password=self._readConfig.accounts.stability_heat_os_password self._init=Init(self._os_tenant_name,self._os_project_name,self._os_username,self._os_password,self._loggers.stabilityHeatLogger) self._accountResource = self._init.initAccountResource() self._router_name='basebench_heat_router' self._user_data_path='userdata/user_data' self._test_heat_net_name='basebench_heat_net' self._test_heat_subnet_cidr='192.168.50.0/24' self._loggers.stabilityHeatLogger.info('===初始化稳定性测试基础资源[heat账号]===') self._initResource()
def __init__(self): self._readConfig = ReadConfig() self._loggers = Loggers() self._os_tenant_name = self._readConfig.accounts.stability_fio_os_tenant_name self._os_project_name = self._readConfig.accounts.stability_fio_os_project_name self._os_username = self._readConfig.accounts.stability_fio_os_username self._os_password = self._readConfig.accounts.stability_fio_os_password self._init = Init(self._os_tenant_name, self._os_project_name, self._os_username, self._os_password, self._loggers.stabilityFioLogger) self._accountResource = self._init.initAccountResource() self._router_name = 'basebench_stablity_fio_router' self._user_data_path = 'userdata/user_data' self._fio_net_name = 'basebench_fio_stable_net' self._fio_subnet_cidr = '192.168.50.0/24' self._loggers.stabilityFioLogger.info('===初始化fio稳定性测试资源===') self._initResource()
def __init__(self, os_tenant_name, os_project_name, os_username, os_password, logger): self._readConfig = ReadConfig() self._logger = logger self._logger.info('===开始初始化账号' + os_username + '公共资源===') self._os_tenant_name = os_tenant_name self._os_project_name = os_project_name self._os_username = os_username self._os_password = os_password self._accountResource = AccountResource() self._openstackClient = OpenstackClient(self._os_tenant_name, self._os_project_name, self._os_username, self._os_password) self._novaClient = NovaClient(self._os_project_name, self._os_username, self._os_password) self._cinderClient = CinderClient(self._os_tenant_name, self._os_project_name, self._os_username, self._os_password) self._keystoneClient = KeystoneClient()
def __init__(self): self._readConfig = ReadConfig() self._loggers = Loggers() self._os_tenant_name = self._readConfig.accounts.stability_iperf_os_tenant_name self._os_project_name = self._readConfig.accounts.stability_iperf_os_project_name self._os_username = self._readConfig.accounts.stability_iperf_os_username self._os_password = self._readConfig.accounts.stability_iperf_os_password self._init = Init(self._os_tenant_name, self._os_project_name, self._os_username, self._os_password, self._loggers.stabilityIperfLogger) self._accountResource = self._init.initAccountResource() self._router_name = 'basebench_iperf_router' self._user_data_path = 'userdata/user_data' self._test_iperf_net1_name = 'basebench_iperf_net1' self._test_iperf_subnet1_cidr = '192.168.70.0/24' self._test_iperf_net2_name = 'basebench_iperf_net2' self._test_iperf_subnet2_cidr = '192.168.80.0/24' self._loggers.stabilityIperfLogger.info('===初始化稳定性测试基础资源[iperf账号]===') self._initResource()
def __init__(self): self._loggers = Loggers() self._readConfig = ReadConfig()
def __init__(self): self._readConfig = ReadConfig() self._objectstoreClient = ObjectStoreClient()
#!-*- coding:utf8 -*- from src.tools.cleanup.deleteAccountwithFloatIp import DeleteAccounts from src.tools.cleanup.deleteAllComputes import DeleteAllComputes from src.tools.cleanup.deleteAllNets import DeleteAllNets from src.tools.cleanup.deleteAllObjectstores import DeleteAllObjectStores from src.tools.cleanup.deleteAllRouters import DeleteAllRoutes from src.tools.cleanup.deleteAllVolumes import DeleteAllVolumes from src.readConfig import ReadConfig if __name__ == '__main__': readConfig = ReadConfig() deleteallcomputes = DeleteAllComputes( readConfig.base.admin_os_tenant_name, readConfig.base.admin_os_project_name, readConfig.base.admin_os_username, readConfig.base.admin_os_password) deleteallcomputes.deleteComputes() #删除云主机 deleteallvolumes = DeleteAllVolumes(readConfig.base.admin_os_tenant_name, readConfig.base.admin_os_project_name, readConfig.base.admin_os_username, readConfig.base.admin_os_password) deleteallvolumes.deleteVolumes() #删除云硬盘 deleteallobjectstores = DeleteAllObjectStores() deleteallobjectstores.deletebuckets() #删除桶 deleteallroutes = DeleteAllRoutes(readConfig.base.admin_os_tenant_name, readConfig.base.admin_os_project_name, readConfig.base.admin_os_username, readConfig.base.admin_os_password) deleteallroutes.deleteRouters() #删除路由器 deleteallnets = DeleteAllNets(readConfig.base.admin_os_tenant_name, readConfig.base.admin_os_project_name, readConfig.base.admin_os_username,
def __init__(self): self._loggers = Loggers() self._readConfig = ReadConfig() self._tests = Tests() self._accountresource = None
def __init__(self): self._readConfig = ReadConfig() self._os_auth_url = self._readConfig.base.os_auth_url self._admin_os_tenant_name = self._readConfig.base.admin_os_tenant_name self._admin_os_username = self._readConfig.base.admin_os_username self._admin_os_password = self._readConfig.base.admin_os_password