cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Da Soghe <f.daso...@cognitio.it.INVALID>
Subject Re: devcloud-kvm doesn't work (tag 4.5.1)
Date Thu, 02 Jul 2015 11:07:47 GMT
This is very odd.
I logged in on the management console 
(http://172.17.10.10:8080/client/), then I checked the api service was 
on, using url 
http://172.17.10.10:8096/?command=listUsers&response=json&account=admin 
(it should be the same used by Marvin that caused the error below), and 
it worked.
Then I put a print in cloudstackConnection.py to verify the connection 
url it was using, and it worked! No other changes around.

Maybe is it necessary to do a first login in order to activate the admin 
account via api?


Il 02/07/2015 12:08, Fabio Da Soghe ha scritto:
> 2015-07-02 03:55:46,424 - DEBUG - Parsing Test data successful
>    2015-07-02 03:55:46,424 - DEBUG - Payload: {'account': 'admin',
>    'command': 'listUsers', 'response': 'json'}
>    2015-07-02 03:55:46,424 - DEBUG - ========Sending GET Cmd :
>    listUsers=======
>    2015-07-02 03:55:46,434 - ERROR - __sendGetReqToCS : Exception
>    Occurred: ('Connection aborted.', error(111, 'Connection refused'))
>    Traceback (most recent call last):
>       File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/marvin/cloudstackConnection.py",
>    line 189, in __sendGetReqToCS
>         verify=self.httpsFlag)
>       File
> "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/api.py",
>    line 69, in get
>         return request('get', url, params=params, **kwargs)
>       File
> "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/api.py",
>    line 50, in request
>         response = session.request(method=method, url=url, **kwargs)
>       File
> "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/sessions.py",
>    line 465, in request
>         resp = self.send(prep, **send_kwargs)
>       File
> "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/sessions.py",
>    line 573, in send
>         r = adapter.send(request, **kwargs)
>       File
> "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/adapters.py",
>    line 415, in send
>         raise ConnectionError(err, request=request)
>    ConnectionError: ('Connection aborted.', error(111, 'Connection
>    refused'))
>    2015-07-02 03:55:46,435 - ERROR - marvinRequest : CmdName:
>    <marvin.cloudstackAPI.listUsers.listUsersCmd object at 0x1dcdd50>
>    Exception: ['Traceback (most recent call last):\n', '  File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/marvin/cloudstackConnection.py",
>    line 364, in marvinRequest\n    raise self.__lastError\n',
>    "ConnectionError: ('Connection aborted.', error(111, 'Connection
>    refused'))\n"]
>    Traceback (most recent call last):
>       File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/marvin/cloudstackConnection.py",
>    line 364, in marvinRequest
>         raise self.__lastError
>    ConnectionError: ('Connection aborted.', error(111, 'Connection
>    refused'))
>    2015-07-02 03:55:46,436 - ERROR -  Exception Occurred Under
>    __createApiClient: ['Traceback (most recent call last):\n', ' File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/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-4.5.1-py2.7.egg/marvin/cloudstackAPI/cloudstackAPIClient.py",
>    line 594, in listUsers\n    response =
>    self.connection.marvinRequest(command, response_type=response,
>    method=method)\n', '  File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/marvin/cloudstackConnection.py",
>    line 379, in marvinRequest\n    raise e\n', "ConnectionError:
>    ('Connection aborted.', error(111, 'Connection refused'))\n"]
>    Traceback (most recent call last):
>       File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/marvin/cloudstackTestClient.py",
>    line 144, in __createApiClient
>         list_user_res = self.__apiClient.listUsers(list_user)
>       File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/marvin/cloudstackAPI/cloudstackAPIClient.py",
>    line 594, in listUsers
>         response = self.connection.marvinRequest(command,
>    response_type=response, method=method)
>       File
> "/usr/local/lib/python2.7/dist-packages/Marvin-4.5.1-py2.7.egg/marvin/cloudstackConnection.py",
>    line 379, in marvinRequest
>         raise e
>    ConnectionError: ('Connection aborted.', error(111, 'Connection
>    refused'))
>    2015-07-02 03:55:46,436 - ERROR - ==== Test Client Creation Failed 
> ==== 

-- 
Fabio Da Soghe
Amministratore Delegato, Cognitio s.r.l.
c/o Toolbox, via Padre Agostino da Montefeltro 2, 10134 Torino
Phone: 011.31.57.436 Mobile: 338.91.85.280
Email: f.dasoghe@cognitio.it Web: http://www.cognitio.it


Mime
View raw message