Cloud-Mak commented on issue #4347:
URL: https://github.com/apache/cloudstack/issues/4347#issuecomment-699026262


   Hello Rakesh,
   
   I am following steps mentioned in description of image on Docker hub - 
https://hub.docker.com/r/cloudstack/simulator
   From descrition - it looks like just using **doker run** is all you need to 
setup. Anywho, I even tried to run marvin DC setup step. Getting errors there 
as well. Check below logs and step. 
   ```
   **makrand@mint-gl63:/tmp$ docker run -d --name cloudstack -d -p 8080:8080 
cloudstack/simulator**
   
   **makrand@mint-gl63:/tmp$ docker exec -it cloudstack bash**
   
   **root@06d293d9a407:~# python /root/tools/marvin/marvin/deployDataCenter.py 
-i /root/setup/dev/advanced.cfg**
   
   ==== Log Folder Path: 
/tmp/MarvinLogs/DeployDataCenter__Sep_25_2020_16_14_32_1VH78N. All logs will be 
available here ====
   
   === TestClient Creation Failed===
   
   root@06d293d9a407:~# cat 
/tmp/MarvinLogs/DeployDataCenter__Sep_25_2020_16_14_32_1VH78N/failed_plus_exceptions.txt
 
   
   **root@06d293d9a407:~# cat 
/tmp/MarvinLogs/DeployDataCenter__Sep_25_2020_16_14_32_1VH78N/runinfo.txt** 
   2020-09-25 16:14:32,914 - DEBUG - Parsing Test data successful
   2020-09-25 16:14:32,914 - DEBUG - Payload: {'account': 'admin', 'command': 
'listUsers', 'response': 'json'}
   2020-09-25 16:14:32,914 - DEBUG - ========Sending GET Cmd : listUsers=======
   2020-09-25 16:14:32,916 - ERROR - __sendGetReqToCS : Exception Occurred: 
HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: 
/client/api?account=admin&command=listUsers&response=json (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection 
refused',))
   Traceback (most recent call last):
     File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 
189, in __sendGetReqToCS
       verify=self.httpsFlag)
     File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 75, in 
get
       return request('get', url, params=params, **kwargs)
     File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 60, in 
request
       return session.request(method=method, url=url, **kwargs)
     File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 
533, in request
       resp = self.send(prep, **send_kwargs)
     File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 
646, in send
       r = adapter.send(request, **kwargs)
     File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 
516, in send
       raise ConnectionError(e, request=request)
   ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max 
retries exceeded with url: 
/client/api?account=admin&command=listUsers&response=json (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection 
refused',))
   2020-09-25 16:14:32,917 - ERROR - marvinRequest : CmdName: 
<marvin.cloudstackAPI.listUsers.listUsersCmd object at 0x7f8de862d350> 
Exception: ['Traceback (most recent call last):\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 
364, in marvinRequest\n    raise self.__lastError\n', "ConnectionError: 
HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: 
/client/api?account=admin&command=listUsers&response=json (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection 
refused',))\n"]
   Traceback (most recent call last):
     File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 
364, in marvinRequest
       raise self.__lastError
   ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max 
retries exceeded with url: 
/client/api?account=admin&command=listUsers&response=json (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection 
refused',))
   2020-09-25 16:14:32,918 - ERROR -  Exception Occurred Under 
__createApiClient: ['Traceback (most recent call last):\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackTestClient.py", line 
144, in __createApiClient\n    list_user_res = 
self.__apiClient.listUsers(list_user)\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
 line 2479, in listUsers\n    response = self.connection.marvinRequest(command, 
response_type=response, method=method)\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 
379, in marvinRequest\n    raise e\n', "ConnectionError: 
HTTPConnectionPool(host='localhost', port=8096): Max retries exceeded with url: 
/client/api?account=admin&command=listUsers&response=json (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection 
refused',))\n"]
   Traceback (most recent call last):
     File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackTestClient.py", line 
144, in __createApiClient
       list_user_res = self.__apiClient.listUsers(list_user)
     File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
 line 2479, in listUsers
       response = self.connection.marvinRequest(command, 
response_type=response, method=method)
     File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 
379, in marvinRequest
       raise e
   ConnectionError: HTTPConnectionPool(host='localhost', port=8096): Max 
retries exceeded with url: 
/client/api?account=admin&command=listUsers&response=json (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f8de863ea10>: Failed to establish a new connection: [Errno 111] Connection 
refused',))
   2020-09-25 16:14:32,918 - ERROR - ==== Test Client Creation Failed ====
   ```
   Am I overlooking anything?
   
   I am on docker 19.0.3 and can see cloudstack container running.


----------------------------------------------------------------
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:
[email protected]


Reply via email to