MCPcopy Create free account
hub / github.com/apache/cloudstack / init

Method init

tools/marvin/marvin/marvinInit.py:133–159  ·  view source on GitHub ↗

@Name : init @Desc :Initializes the marvin by 1. Parsing the configuration and creating a parsed config structure 2. Creates a timestamped log folder and provides all logs to be dumped there 3. Creates

(self)

Source from the content-addressed store, hash-verified

131 return FAILED
132
133 def init(self):
134 '''
135 @Name : init
136 @Desc :Initializes the marvin by
137 1. Parsing the configuration and creating a parsed config
138 structure
139 2. Creates a timestamped log folder and provides all logs
140 to be dumped there
141 3. Creates the DataCenter based upon configuration provided
142 @Output : SUCCESS or FAILED
143 '''
144 try:
145 print("\n==== Marvin Init Started ====")
146 if ((self.__parseConfig() != FAILED) and
147 (self.__setHypervisorAndZoneInfo())and
148 (self.__setTestDataPath() != FAILED) and
149 (self.__initLogging() != FAILED) and
150 (self.__createTestClient() != FAILED) and
151 (self.__deployDC() != FAILED)):
152 print("\n==== Marvin Init Successful ====")
153 return SUCCESS
154 print("\n==== Marvin Init Failed ====")
155 return FAILED
156 except Exception as e:
157 print("\n Exception Occurred Under init " \
158 "%s" % GetDetailExceptionInfo(e))
159 return FAILED
160
161 def __initLogging(self):
162 '''

Callers 2

start_marvinMethod · 0.95
startMarvinMethod · 0.95

Calls 7

__parseConfigMethod · 0.95
__setTestDataPathMethod · 0.95
__initLoggingMethod · 0.95
__createTestClientMethod · 0.95
__deployDCMethod · 0.95
GetDetailExceptionInfoFunction · 0.90

Tested by

no test coverage detected