jayapalu commented on issue #1996: CLOUDSTACK-9099: SecretKey is returned from 
the APIs
URL: https://github.com/apache/cloudstack/pull/1996#issuecomment-297345251
 
 
   @borisstoyanov 
   From the logs it seems the test client  getting  secretkey as None.  When I 
run in my local setup I did not see the error. Can you please check the marvin 
config secretkey and also MS logs.
   
   2017-04-19 14:18:12,563 - DEBUG - Parsing Test data successful
   2017-04-19 14:18:12,564 - DEBUG - Payload: {'account': 'admin', 'command': 
'listUsers', 'response': 'json'}
   2017-04-19 14:18:12,564 - DEBUG - ========Sending GET Cmd : listUsers=======
   2017-04-19 14:18:12,576 - DEBUG - Response : [{username : u'admin', roletype 
: u'Admin', account : u'admin', domainid : 
u'64454ba8-2505-11e7-b1f2-060d3601072b', firstname : u'admin', created : 
u'2017-04-19T13:38:55+0000', lastname : u'cloud', apikey : 
u'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q',
 domain : u'ROOT', iscallerchilddomain : False, state : u'enabled', accounttype 
: 1, roleid : u'7a7e5432-2505-11e7-b1f2-060d3601072b', rolename : u'Root 
Admin', id : u'88ddd446-2505-11e7-b1f2-060d3601072b', isdefault : True, 
accountid : u'88ddcde4-2505-11e7-b1f2-060d3601072b'}]
   2017-04-19 14:18:12,576 - DEBUG - ==== Test Client Creation Successful ====
   2017-04-19 14:18:12,679 - ERROR - __sendCmdToCS: Exception:['Traceback (most 
recent call last):\n', '  File 
"/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 215, in 
__sendCmdToCS\n    payload["signature"] = self.__sign(payload)\n', '  File 
"/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 151, in 
__sign\n    self.securityKey, hash_str, hashlib.sha1).digest()).strip()\n', '  
File "/usr/lib64/python2.7/hmac.py", line 136, in new\n    return HMAC(key, 
msg, digestmod)\n', '  File "/usr/lib64/python2.7/hmac.py", line 71, in 
__init__\n    if len(key) > blocksize:\n', "TypeError: object of type 
'NoneType' has no len()\n"]
   Traceback (most recent call last):
     File "/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", 
line 215, in __sendCmdToCS
       payload["signature"] = self.__sign(payload)
     File "/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", 
line 151, in __sign
       self.securityKey, hash_str, hashlib.sha1).digest()).strip()
     File "/usr/lib64/python2.7/hmac.py", line 136, in new
       return HMAC(key, msg, digestmod)
     File "/usr/lib64/python2.7/hmac.py", line 71, in __init__
       if len(key) > blocksize:
   TypeError: object of type 'NoneType' has no len()
   2017-04-19 14:18:12,680 - ERROR - marvinRequest : CmdName: 
<marvin.cloudstackAPI.listDomains.listDomainsCmd object at 0x39e85d0> 
Exception: ['Traceback (most recent call last):\n', '  File 
"/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 364, in 
marvinRequest\n    raise self.__lastError\n', "TypeError: object of type 
'NoneType' has no len()\n"]
   Traceback (most recent call last):
     File "/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", 
line 364, in marvinRequest
       raise self.__lastError
   TypeError: object of type 'NoneType' has no len()
   2017-04-19 14:18:12,683 - CRITICAL - EXCEPTION: None: ['Traceback (most 
recent call last):\n', '  File 
"/usr/lib/python2.7/site-packages/nose/suite.py", line 209, in run\n    
self.setUp()\n', '  File "/usr/lib/python2.7/site-packages/nose/suite.py", line 
292, in setUp\n    self.setupContext(ancestor)\n', '  File 
"/usr/lib/python2.7/site-packages/nose/suite.py", line 315, in setupContext\n   
 try_run(context, names)\n', '  File 
"/usr/lib/python2.7/site-packages/nose/util.py", line 471, in try_run\n    
return func()\n', '  File "/marvin/tests/smoke/test_vpc_router_nics.py", line 
187, in setUpClass\n    cls.domain = get_domain(cls.api_client)\n', '  File 
"/usr/lib/python2.7/site-packages/marvin/lib/common.py", line 213, in 
get_domain\n    cmd_out = apiclient.listDomains(cmd)\n', '  File 
"/usr/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", 
line 1849, in listDomains\n    response = 
self.connection.marvinRequest(command, response_type=response, method=method)\
 n', '  File "/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", 
line 379, in marvinRequest\n    raise e\n', "TypeError: object of type 
'NoneType' has no len()\n"]
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

Reply via email to