cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amy Niklasson <>
Subject Error code 401 listdomains failed - Test of host allocator failing
Date Wed, 15 Jul 2015 12:56:14 GMT
I'm trying to run a test based on this guide:
the test code:
I've done some minor changes to make it run.
like changing the imports to:

from marvin.cloudstackTestCase import cloudstackTestCase
from marvin.lib.base import Account, VirtualMachine, ServiceOffering, Host,
from marvin.lib.common import get_zone, get_domain, get_template
from marvin.lib.utils import cleanup_resources

however now I get this error which I have no idea how to fix.

2015-07-15 11:46:23,455 - CRITICAL - EXCEPTION: None: ['Traceback (most
recent call last):\n', '  File
line 209, in run\n    self.setUp()\n', '  File
"/usr/local/lib/python2.7/dist-packages/nose/", line 292, in
setUp\n    self.setupContext(ancestor)\n', '
File "/usr/local/lib/python2.7/dist-packages/nose/", line 315, in
setupContext\n    try_run(context, names)\n', '
File "/usr/local/lib/python2.7/dist-packages/nose/", line 471, in
try_run\n    return func()\n', '
line 61, in setUpClass\n
cls.domain = get_domain(cls.apiclient,\n', '  File
line 201, in get_domain\n    cmd_out = apiclient.listDomains(cmd)\n', '
line 655, in listDomains\n
response = self.connection.marvinRequest(command, response_type=response,
method=method)\n', '
line 379, in marvinRequest\n    raise e\n',
'CloudstackAPIException: Execute cmd: listdomains failed, due to:
errorCode: 401, errorText:unable to verify user credentials and/or request

I've googled around and seen cases of errorCode 401 but none of them
related to listdomains.
Could anyone please advice me on how to solve this?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message