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

Method configuration

python/lib/cloudutils/serviceConfig.py:34–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 self.netMgrRunning = False
33
34 def configuration(self):
35 writeProgressBar("Configure " + self.serviceName + " ...", None)
36 result = False
37 try:
38 result = self.config()
39 if result is None:
40 result = False
41
42 self.status = result
43 writeProgressBar(None, result)
44 return result
45 except CloudRuntimeException as e:
46 self.status = result
47 writeProgressBar(None, result)
48 logging.debug(e.getDetails())
49 raise e
50 except CloudInternalException as e:
51 self.status = result
52 writeProgressBar(None, result)
53 raise e
54 except:
55 logging.debug(formatExceptionInfo())
56 if self.syscfg.env.mode == "Server":
57 raise CloudRuntimeException("Configure %s failed, Please check the /var/log/cloudstack/management/setupManagement.log for detail"%self.serviceName)
58 else:
59 raise CloudRuntimeException("Configure %s failed, Please check the /var/log/cloudstack/agent/setup.log for detail"%self.serviceName)
60
61 def backup(self):
62 if self.status is None:

Callers 1

configMethod · 0.80

Calls 6

configMethod · 0.95
writeProgressBarFunction · 0.85
formatExceptionInfoFunction · 0.85
debugMethod · 0.80
getDetailsMethod · 0.65

Tested by

no test coverage detected