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

Method deploy

tools/marvin/marvin/deployDataCenter.py:905–941  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

903 self.__cleanAndExit()
904
905 def deploy(self):
906 try:
907 print("\n==== Deploy DC Started ====")
908 self.__tcRunLogger.debug("\n==== Deploy DC Started ====")
909 '''
910 Step1 : Set the Client
911 '''
912 self.setClient()
913 '''
914 Step2: Update the Configuration
915 '''
916 self.updateConfiguration(self.__config.globalConfig)
917 '''
918 Step3 :Deploy the Zone
919 '''
920 self.createZones(self.__config.zones)
921 self.configureS3(self.__config.s3)
922 '''
923 Persist the Configuration to an external file post DC creation
924 '''
925 self.__persistDcConfig()
926 print("\n====Deploy DC Successful=====")
927 self.__tcRunLogger.debug("\n====Deploy DC Successful====")
928 '''
929 Upload baremetalSwitch configuration(.rct) file if enabled zone has baremetal isolated network.
930 '''
931 self.addBaremetalRct(self.__config)
932 self.__tcRunLogger.debug("\n==== AddbaremetalRct Successful====")
933
934 return SUCCESS
935 except Exception as e:
936 print("\nException Occurred Under deploy :%s" % \
937 GetDetailExceptionInfo(e))
938 self.__tcRunLogger.debug("\n====Deploy DC Failed====")
939 print("\n====Deploy DC Failed====")
940 self.__cleanAndExit()
941 return FAILED
942
943 def configureTungstenService(self, zoneId, physicalNetworkId, tungstenprovider):
944 try:

Callers 1

__deployDCMethod · 0.95

Calls 9

setClientMethod · 0.95
updateConfigurationMethod · 0.95
createZonesMethod · 0.95
configureS3Method · 0.95
__persistDcConfigMethod · 0.95
addBaremetalRctMethod · 0.95
__cleanAndExitMethod · 0.95
GetDetailExceptionInfoFunction · 0.90
debugMethod · 0.80

Tested by

no test coverage detected