Cloud-Mak edited a comment on issue #4347: URL: https://github.com/apache/cloudstack/issues/4347#issuecomment-700671880
@ravening Just cross checking. 1. So basically you're running two seperate containers simulator and marvin. 2. Marvin container is being linked to simulator contianer while its getting created. (not able to understand the need to link two...doesn't docker have networking out of box?) 3. Finally initiatlizing the python script using "your command" from host OS. 4. (if above fails) Edit the mgtSvr and dbSvr values in **/marvin/dev/advanced.cfg** on Marvin container (to match IP of simulator) and run the python "deployDataCenter.py" script on Marvin container. Even After doing so - I am getting same error. ``` root@4034e81431d0:/marvin/dev# python /marvin/marvin/deployDataCenter.py -i /marvin/dev/advanced.cfg ==== Log Folder Path: /tmp/MarvinLogs/DeployDataCenter__Sep_29_2020_12_19_41_KKF3WZ. All logs will be available here ==== === TestClient Creation Failed=== root@4034e81431d0:/tmp/MarvinLogs/DeployDataCenter__Sep_29_2020_12_19_41_KKF3WZ# cat runinfo.txt 2020-09-29 12:19:41,884 - DEBUG - Parsing Test data successful 2020-09-29 12:19:41,885 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'} 2020-09-29 12:19:41,885 - DEBUG - ========Sending GET Cmd : listUsers======= 2020-09-29 12:19:41,886 - ERROR - __sendGetReqToCS : Exception Occurred: HTTPConnectionPool(host='172.17.0.3', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',)) Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 189, in __sendGetReqToCS verify=self.httpsFlag) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 75, in get return request('get', url, params=params, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) ConnectionError: HTTPConnectionPool(host='172.17.0.3', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2020-09-29 12:19:41,887 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.listUsers.listUsersCmd object at 0x7f11e4974050> Exception: ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 364, in marvinRequest\n raise self.__lastError\n', "ConnectionError: HTTPConnectionPool(host='172.17.0.3', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))\n"] Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 364, in marvinRequest raise self.__lastError ConnectionError: HTTPConnectionPool(host='172.17.0.3', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2020-09-29 12:19:41,888 - ERROR - Exception Occurred Under __createApiClient: ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackTestClient.py", line 144, in __createApiClient\n list_user_res = self.__apiClient.listUsers(list_user)\n', ' File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2605, in listUsers\n response = self.connection.marvinRequest(command, response_type=response, method=method)\n', ' File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest\n raise e\n', "ConnectionError: HTTPConnectionPool(host='172.17.0.3', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',))\n"] Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackTestClient.py", line 144, in __createApiClient list_user_res = self.__apiClient.listUsers(list_user) File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2605, in listUsers response = self.connection.marvinRequest(command, response_type=response, method=method) File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest raise e ConnectionError: HTTPConnectionPool(host='172.17.0.3', port=8096): Max retries exceeded with url: /client/api?account=admin&command=listUsers&response=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11e4974950>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2020-09-29 12:19:41,888 - ERROR - ==== Test Client Creation Failed ==== root@4034e81431d0:/tmp/MarvinLogs/DeployDataCenter__Sep_29_2020_12_19_41_KKF3WZ# ``` I just want to give GUI demo to someone....not intested in reinventing the wheel here. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org