(self)
| 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: |
no test coverage detected