shapeblue / mbx

🐒📦 Build, run, test monkey-powered local CloudStack dev/qa env
22 stars 7 forks source link

mbx deployment for vmware should wait until vcenter API is available/up #15

Closed rohityadavcloud closed 1 year ago

rohityadavcloud commented 3 years ago

mbx launch should check/wait until vcenter API end point is up and healthy. This was seen with vmware7:

==== Log Folder Path: /tmp/MarvinLogs/DeployDataCenter__Oct_06_2021_08_08_09_WS1W9S All logs will be available here ====

==== Deploy DC Started ====
Exception Occurred: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/deployDataCenter.py", line 163, in addVmWareDataCenter\n    ret = self.__apiClient.addVmwareDc(vdc)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 3457, in addVmwareDc\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest\n    raise e\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 310, in __parseAndGetResponse\n    response_cls)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: addvmwaredc failed, due to: errorCode: 530, errorText:Unable to list storage profiles from DC DC due to : Exception: com.sun.xml.ws.client.ClientTransportException\nMessage: The server sent HTTP status code 503: Service Unavailable\n\n']

===deploy dc failed, so cleaning the created entries===