You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Daan Hoogland <da...@gmail.com> on 2015/06/26 17:48:15 UTC
test failure question
H,
In a new environment I cannot get marvin tests to run:
2015-06-26 11:36:54,022 - DEBUG - Parsing Test data successful
2015-06-26 11:36:54,023 - DEBUG - Payload: {'account': 'admin',
'command': 'listUsers', 'response': 'json'}
2015-06-26 11:36:54,023 - DEBUG - ========Sending GET Cmd : listUsers=======
2015-06-26 11:36:54,087 - DEBUG - Response : [{username : u'admin',
account : u'admin', domainid :
u'6891906c-19e5-11e5-a53a-5254001daa60', firstname : u'Admin', created
: u'2015-06-23T12:21:19-0400', lastname : u'User', apikey :
u'kjjGt2xnauAxcxx0xCXYq1ltEhtqetVQb42W0YylZDMAohjZZ6xPhihsyUHQdhBKO7Q4AsU-ejF32IWWnljl-g',
domain : u'ROOT', id : u'6892187f-19e5-11e5-a53a-5254001daa60',
secretkey : u'2mYsMA-bqMkuhXhS7qM-YPlK_Jgd4BhUEh67p87pgw4XdBE1Wuh9vNPI--ryFBVciSgcvJzOe2f9cyRO57RBGQ',
iscallerchilddomain : False, state : u'enabled', accounttype : 1,
email : u'admin@mailprovider.com', isdefault : True, accountid :
u'6891c9f6-19e5-11e5-a53a-5254001daa60'}]
2015-06-26 11:36:54,088 - DEBUG - ==== Test Client Creation Successful ====
2015-06-26 11:36:54,094 - CRITICAL - EXCEPTION: Failure:: ['Traceback
(most recent call last):\n', ' File
"/usr/lib/python2.7/site-packages/nose/case.py", line 132, in run\n
self.beforeTest(result)\n', ' File
"/usr/lib/python2.7/site-packages/nose/case.py", line 74, in
beforeTest\n beforeTest(self.test)\n', ' File
"/usr/lib/python2.7/site-packages/nose/proxy.py", line 117, in
beforeTest\n self.plugins.beforeTest(self.test)\n', ' File
"/usr/lib/python2.7/site-packages/nose/plugins/manager.py", line 99,
in __call__\n return self.call(*arg, **kw)\n', ' File
"/usr/lib/python2.7/site-packages/nose/plugins/manager.py", line 167,
in simple\n result = meth(*arg, **kw)\n', ' File
"/usr/lib/python2.7/site-packages/Marvin-4.6.0_SNAPSHOT-py2.7.egg/marvin/marvinPlugin.py",
line 172, in beforeTest\n join([self.__identifier,
self.__testName])\n', 'TypeError: sequence item 0: expected string,
NoneType found\n']
Can anyone see in this output If I forgot to configure something?
cl is
nosetests --with-marvin
--marvin-config=/data/shared/marvin/mct-zone1-xen1.cfg -s -a
tags=advanced,required_hardware=false smoke/test_vm_life_cycle.py
but other tests have failed in the same way.
content of mct-zone1-xen1.cfg is
{
"zones": [
{
"name": "MCCT-SHARED-1",
"guestcidraddress": "10.1.1.0/24",
"dns1": "8.8.8.8",
"physical_networks": [
{
"broadcastdomainrange": "Zone",
"vlan": "100-200",
"name": "mcct-pnet",
"traffictypes": [
{
"typ": "Guest"
},
{
"typ": "Management"
},
{
"typ": "Public"
}
],
"providers": [
{
"broadcastdomainrange": "ZONE",
"name": "VirtualRouter"
},
{
"broadcastdomainrange": "ZONE",
"name": "VpcVirtualRouter"
},
{
"broadcastdomainrange": "ZONE",
"name": "InternalLbVm"
}
],
"isolationmethods": [
"VLAN"
]
}
],
"ipranges": [
{
"startip": "192.168.23.2",
"endip": "192.168.23.20",
"netmask": "255.255.255.0",
"vlan": "50",
"gateway": "192.168.23.1"
}
],
"networktype": "Advanced",
"pods": [
{
"endip": "192.168.22.150",
"name": "MCCT-POD",
"startip": "192.168.22.130",
"netmask": "255.255.255.0",
"clusters": [
],
"clusters": [
{
"clustername": "MCCT-XEN-1",
"hypervisor": "XenServer",
"hosts": [
{
"username": "root",
"url": "http://192.168.22.11",
"password": "password"
}
],
"clustertype": "CloudManaged",
"primaryStorages": [
{
"url":
"nfs://192.168.22.1:/data/storage/primary/MCCT-XEN-1",
"name": "MCCT-XEN-1-primary"
}
]
}
],
"gateway": "192.168.22.1"
}
],
"internaldns1": "8.8.4.4",
"secondaryStorages": [
{
"url":
"nfs://192.168.22.1:/data/storage/secondary/MCCT-SHARED-1",
"provider" : "NFS"
}
]
}
],
"dbSvr": {
"dbSvr": "localhost",
"passwd": "cloud",
"db": "cloud",
"port": 3306,
"user": "cloud"
},
"logger":
{
"LogFolderPath": "/tmp/"
},
"globalConfig": [
{
"name": "network.gc.wait",
"value": "60"
},
{
"name": "storage.cleanup.interval",
"value": "300"
},
{
"name": "vm.op.wait.interval",
"value": "5"
},
{
"name": "default.page.size",
"value": "10000"
},
{
"name": "network.gc.interval",
"value": "60"
},
{
"name": "workers",
"value": "10"
},
{
"name": "account.cleanup.interval",
"value": "600"
},
{
"name": "guest.domain.suffix",
"value": "cloud"
},
{
"name": "expunge.delay",
"value": "60"
},
{
"name": "vm.allocation.algorithm",
"value": "random"
},
{
"name": "expunge.interval",
"value": "60"
},
{
"name": "expunge.workers",
"value": "3"
},
{
"name": "check.pod.cidrs",
"value": "true"
},
{
"name": "secstorage.allowed.internal.sites",
"value": "192.168.22.0/24"
},
{
"name": "direct.agent.load.size",
"value": "1000"
}
],
"mgtSvr": [
{
"mgtSvrIp": "localhost",
"passwd": "password",
},
{
"name": "secstorage.allowed.internal.sites",
"value": "192.168.22.0/24"
},
{
"name": "direct.agent.load.size",
"value": "1000"
}
],
"mgtSvr": [
{
"mgtSvrIp": "localhost",
"passwd": "password",
"user": "root",
"port": 8096,
"hypervisor": "XenServer",
"useHttps": "False",
"certCAPath": "NA",
"certPath": "NA"
}
]
}
--
Daan
Re: test failure question
Posted by Rafael Fonseca <rs...@gmail.com>.
Hi Daan, from the output it's exactly the same issue that is causing some
of the test suites to not run on some of the travis runs, and that
prevented me to fix the fact that tests are considered success when they
throw exceptions as we discussed. If you figure it out in the mean while
let me know the cause so i can automate the fix for the travis workers and
have all tests correctly resort failure when an exception is thrown.
On Jun 26, 2015 5:48 PM, "Daan Hoogland" <da...@gmail.com> wrote:
> H,
>
> In a new environment I cannot get marvin tests to run:
>
> 2015-06-26 11:36:54,022 - DEBUG - Parsing Test data successful
> 2015-06-26 11:36:54,023 - DEBUG - Payload: {'account': 'admin',
> 'command': 'listUsers', 'response': 'json'}
> 2015-06-26 11:36:54,023 - DEBUG - ========Sending GET Cmd :
> listUsers=======
> 2015-06-26 11:36:54,087 - DEBUG - Response : [{username : u'admin',
> account : u'admin', domainid :
> u'6891906c-19e5-11e5-a53a-5254001daa60', firstname : u'Admin', created
> : u'2015-06-23T12:21:19-0400', lastname : u'User', apikey :
>
> u'kjjGt2xnauAxcxx0xCXYq1ltEhtqetVQb42W0YylZDMAohjZZ6xPhihsyUHQdhBKO7Q4AsU-ejF32IWWnljl-g',
> domain : u'ROOT', id : u'6892187f-19e5-11e5-a53a-5254001daa60',
> secretkey :
> u'2mYsMA-bqMkuhXhS7qM-YPlK_Jgd4BhUEh67p87pgw4XdBE1Wuh9vNPI--ryFBVciSgcvJzOe2f9cyRO57RBGQ',
> iscallerchilddomain : False, state : u'enabled', accounttype : 1,
> email : u'admin@mailprovider.com', isdefault : True, accountid :
> u'6891c9f6-19e5-11e5-a53a-5254001daa60'}]
> 2015-06-26 11:36:54,088 - DEBUG - ==== Test Client Creation Successful ====
> 2015-06-26 11:36:54,094 - CRITICAL - EXCEPTION: Failure:: ['Traceback
> (most recent call last):\n', ' File
> "/usr/lib/python2.7/site-packages/nose/case.py", line 132, in run\n
> self.beforeTest(result)\n', ' File
> "/usr/lib/python2.7/site-packages/nose/case.py", line 74, in
> beforeTest\n beforeTest(self.test)\n', ' File
> "/usr/lib/python2.7/site-packages/nose/proxy.py", line 117, in
> beforeTest\n self.plugins.beforeTest(self.test)\n', ' File
> "/usr/lib/python2.7/site-packages/nose/plugins/manager.py", line 99,
> in __call__\n return self.call(*arg, **kw)\n', ' File
> "/usr/lib/python2.7/site-packages/nose/plugins/manager.py", line 167,
> in simple\n result = meth(*arg, **kw)\n', ' File
>
> "/usr/lib/python2.7/site-packages/Marvin-4.6.0_SNAPSHOT-py2.7.egg/marvin/marvinPlugin.py",
> line 172, in beforeTest\n join([self.__identifier,
> self.__testName])\n', 'TypeError: sequence item 0: expected string,
> NoneType found\n']
>
> Can anyone see in this output If I forgot to configure something?
>
> cl is
> nosetests --with-marvin
> --marvin-config=/data/shared/marvin/mct-zone1-xen1.cfg -s -a
> tags=advanced,required_hardware=false smoke/test_vm_life_cycle.py
> but other tests have failed in the same way.
>
> content of mct-zone1-xen1.cfg is
>
> {
> "zones": [
> {
> "name": "MCCT-SHARED-1",
> "guestcidraddress": "10.1.1.0/24",
> "dns1": "8.8.8.8",
> "physical_networks": [
> {
> "broadcastdomainrange": "Zone",
> "vlan": "100-200",
> "name": "mcct-pnet",
> "traffictypes": [
> {
> "typ": "Guest"
> },
> {
> "typ": "Management"
> },
> {
> "typ": "Public"
> }
> ],
> "providers": [
> {
> "broadcastdomainrange": "ZONE",
> "name": "VirtualRouter"
> },
> {
> "broadcastdomainrange": "ZONE",
> "name": "VpcVirtualRouter"
> },
> {
> "broadcastdomainrange": "ZONE",
> "name": "InternalLbVm"
> }
> ],
> "isolationmethods": [
> "VLAN"
> ]
> }
> ],
> "ipranges": [
> {
> "startip": "192.168.23.2",
> "endip": "192.168.23.20",
> "netmask": "255.255.255.0",
> "vlan": "50",
> "gateway": "192.168.23.1"
> }
> ],
> "networktype": "Advanced",
> "pods": [
> {
> "endip": "192.168.22.150",
> "name": "MCCT-POD",
> "startip": "192.168.22.130",
> "netmask": "255.255.255.0",
> "clusters": [
> ],
> "clusters": [
> {
> "clustername": "MCCT-XEN-1",
> "hypervisor": "XenServer",
> "hosts": [
> {
> "username": "root",
> "url": "http://192.168.22.11",
> "password": "password"
> }
> ],
> "clustertype": "CloudManaged",
> "primaryStorages": [
> {
> "url":
> "nfs://192.168.22.1:/data/storage/primary/MCCT-XEN-1",
> "name": "MCCT-XEN-1-primary"
> }
> ]
> }
> ],
> "gateway": "192.168.22.1"
> }
> ],
> "internaldns1": "8.8.4.4",
> "secondaryStorages": [
> {
> "url":
> "nfs://192.168.22.1:/data/storage/secondary/MCCT-SHARED-1",
> "provider" : "NFS"
> }
> ]
> }
> ],
> "dbSvr": {
> "dbSvr": "localhost",
> "passwd": "cloud",
> "db": "cloud",
> "port": 3306,
> "user": "cloud"
> },
> "logger":
> {
> "LogFolderPath": "/tmp/"
> },
> "globalConfig": [
> {
> "name": "network.gc.wait",
> "value": "60"
> },
> {
> "name": "storage.cleanup.interval",
> "value": "300"
> },
> {
> "name": "vm.op.wait.interval",
> "value": "5"
> },
> {
> "name": "default.page.size",
> "value": "10000"
> },
> {
> "name": "network.gc.interval",
> "value": "60"
> },
> {
> "name": "workers",
> "value": "10"
> },
> {
> "name": "account.cleanup.interval",
> "value": "600"
> },
> {
> "name": "guest.domain.suffix",
> "value": "cloud"
> },
> {
> "name": "expunge.delay",
> "value": "60"
> },
> {
> "name": "vm.allocation.algorithm",
> "value": "random"
> },
> {
> "name": "expunge.interval",
> "value": "60"
> },
> {
> "name": "expunge.workers",
> "value": "3"
> },
> {
> "name": "check.pod.cidrs",
> "value": "true"
> },
> {
> "name": "secstorage.allowed.internal.sites",
> "value": "192.168.22.0/24"
> },
> {
> "name": "direct.agent.load.size",
> "value": "1000"
> }
> ],
> "mgtSvr": [
> {
> "mgtSvrIp": "localhost",
> "passwd": "password",
> },
> {
> "name": "secstorage.allowed.internal.sites",
> "value": "192.168.22.0/24"
> },
> {
> "name": "direct.agent.load.size",
> "value": "1000"
> }
> ],
> "mgtSvr": [
> {
> "mgtSvrIp": "localhost",
> "passwd": "password",
> "user": "root",
> "port": 8096,
> "hypervisor": "XenServer",
> "useHttps": "False",
> "certCAPath": "NA",
> "certPath": "NA"
> }
> ]
> }
>
> --
> Daan
>