Chandan Purushothama created CLOUDSTACK-7441:
------------------------------------------------
Summary: [Automation] Fix the script "test_resource_limits.py" -
Templates are registered as admin's
Key: CLOUDSTACK-7441
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7441
Project: CloudStack
Issue Type: Test
Security Level: Public (Anyone can view this level - this is the default.)
Components: Automation, Test
Affects Versions: 4.5.0
Reporter: Chandan Purushothama
Priority: Critical
Fix For: 4.5.0
Two test cases are failing in the test suite: *test_05_templates_per_account* &
*test_05_templates_per_domain*
*Error Message*
Exception not raised Logs available at
http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=resource_limits
Stacktrace
File "/usr/lib/python2.7/unittest/case.py", line 332, in run
testMethod()
File "/root/cloudstack/test/integration/component/test_resource_limits.py",
line 844, in test_05_templates_per_account
domainid=self.account_1.domainid,
File "/usr/lib/python2.7/unittest/case.py", line 116, in __exit__
"{0} not raised".format(exc_name))
'Exception not raised\n
Logs available at
http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=resource_limits
*Error Message*
Exception not raised Logs available at
http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=resource_limits
Stacktrace
File "/usr/lib/python2.7/unittest/case.py", line 332, in run
testMethod()
File "/root/cloudstack/test/integration/component/test_resource_limits.py",
line 1355, in test_05_templates_per_domain
domainid=self.account.domainid,
File "/usr/lib/python2.7/unittest/case.py", line 116, in __exit__
"{0} not raised".format(exc_name))
'Exception not raised\n
Logs available at
http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=resource_limits
*Bug Information in the Client result logs:*
{code}
======================================================================
FAIL: Test Templates limit per account
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/cloudstack/test/integration/component/test_resource_limits.py",
line 844, in test_05_templates_per_account
domainid=self.account_1.domainid,
AssertionError: Exception not raised
-------------------- >> begin captured stdout << ---------------------
=== TestName: test_05_templates_per_account | Status : FAILED ===
.
.
.
.
test_05_templates_per_account
(integration.component.test_resource_limits.TestResourceLimitsAccount): DEBUG:
Response : {jobprocstatus : 0, created : u'2014-08-24T14:19:11+0000', jobresult
: {domain : u'ROOT', domainid : u'56ab18f0-2b4d-11e4-89bd-1e5d0e053e75',
ostypename : u'CentOS 5.3 (64-bit)', zoneid :
u'eb811e7d-59d4-4c72-a965-80d9e30572d1', displaytext : u'Cent OS Template',
ostypeid : u'56b1e2f2-2b4d-11e4-89bd-1e5d0e053e75', passwordenabled : False, id
: u'c406715b-aa97-4361-a212-32cdfba76b00', size : 21474836480, isready : True,
format : u'VHD', templatetype : u'USER', details : {platform :
u'viridian:true;acpi:1;apic:true;pae:true;nx:true',
Message.ReservedCapacityFreed.Flag : u'false'}, zonename : u'XenRT-Zone-0',
status : u'Download Complete', isdynamicallyscalable : False, tags : [],
isfeatured : False, sshkeyenabled : False, account : u'admin', isextractable :
True, crossZones : False, sourcetemplateid :
u'56af8f20-2b4d-11e4-89bd-1e5d0e053e75', name : u'Cent OS Template-LS47A4',
created : u'2014-08-24T14:19:11+0000', hypervisor : u'XenServer', ispublic :
False}, cmd :
u'org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin',
userid : u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 1, jobid :
u'e9295a94-4dfd-4c27-a405-fab4975f0eee', jobresultcode : 0, jobinstanceid :
u'c406715b-aa97-4361-a212-32cdfba76b00', jobresulttype : u'object',
jobinstancetype : u'Template', accountid :
u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'}
test_05_templates_per_account
(integration.component.test_resource_limits.TestResourceLimitsAccount): DEBUG:
===Jobid:e9295a94-4dfd-4c27-a405-fab4975f0eee ; StartTime:Sun Aug 24 14:19:12
2014 ; EndTime:Sun Aug 24 14:20:52 2014 ; TotalTime:-100===
test_05_templates_per_account
(integration.component.test_resource_limits.TestResourceLimitsAccount): DEBUG:
Response : {jobprocstatus : 0, created : u'2014-08-24T14:19:11+0000', jobresult
: {domain : u'ROOT', domainid : u'56ab18f0-2b4d-11e4-89bd-1e5d0e053e75',
ostypename : u'CentOS 5.3 (64-bit)', zoneid :
u'eb811e7d-59d4-4c72-a965-80d9e30572d1', displaytext : u'Cent OS Template',
ostypeid : u'56b1e2f2-2b4d-11e4-89bd-1e5d0e053e75', passwordenabled : False, id
: u'c406715b-aa97-4361-a212-32cdfba76b00', size : 21474836480, isready : True,
format : u'VHD', templatetype : u'USER', details : {platform :
u'viridian:true;acpi:1;apic:true;pae:true;nx:true',
Message.ReservedCapacityFreed.Flag : u'false'}, zonename : u'XenRT-Zone-0',
status : u'Download Complete', isdynamicallyscalable : False, tags : [],
isfeatured : False, sshkeyenabled : False, account : u'admin', isextractable :
True, crossZones : False, sourcetemplateid :
u'56af8f20-2b4d-11e4-89bd-1e5d0e053e75', name : u'Cent OS Template-LS47A4',
created : u'2014-08-24T14:19:11+0000', hypervisor : u'XenServer', ispublic :
False}, cmd :
u'org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin',
userid : u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 1, jobid :
u'e9295a94-4dfd-4c27-a405-fab4975f0eee', jobresultcode : 0, jobinstanceid :
u'c406715b-aa97-4361-a212-32cdfba76b00', jobresulttype : u'object',
jobinstancetype : u'Template', accountid :
u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'}
test_05_templates_per_account
(integration.component.test_resource_limits.TestResourceLimitsAccount):
CRITICAL: FAILED: test_05_templates_per_account: ['Traceback (most recent call
last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n
testMethod()\n', ' File
"/root/cloudstack/test/integration/component/test_resource_limits.py", line
844, in test_05_templates_per_account\n
domainid=self.account_1.domainid,\n', ' File
"/usr/lib/python2.7/unittest/case.py", line 116, in __exit__\n "{0} not
raised".format(exc_name))\n', 'AssertionError: Exception not raised\n']
--------------------- >> end captured logging << ---------------------
{code}
{code}
======================================================================
FAIL: Test Templates limit per domain
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/cloudstack/test/integration/component/test_resource_limits.py",
line 1355, in test_05_templates_per_domain
domainid=self.account.domainid,
AssertionError: Exception not raised
-------------------- >> begin captured stdout << ---------------------
=== TestName: test_05_templates_per_domain | Status : FAILED ===
.
.
.
test_05_templates_per_domain
(integration.component.test_resource_limits.TestResourceLimitsDomain): DEBUG:
Response : {jobprocstatus : 0, created : u'2014-08-24T14:41:27+0000', jobresult
: {domain : u'ROOT', domainid : u'56ab18f0-2b4d-11e4-89bd-1e5d0e053e75',
ostypename : u'CentOS 5.3 (64-bit)', zoneid :
u'eb811e7d-59d4-4c72-a965-80d9e30572d1', displaytext : u'Cent OS Template',
ostypeid : u'56b1e2f2-2b4d-11e4-89bd-1e5d0e053e75', passwordenabled : False, id
: u'9678302e-854e-4364-adab-ae22fedb2355', size : 21474836480, isready : True,
format : u'VHD', templatetype : u'USER', details : {platform :
u'viridian:true;acpi:1;apic:true;pae:true;nx:true',
Message.ReservedCapacityFreed.Flag : u'false'}, zonename : u'XenRT-Zone-0',
status : u'Download Complete', isdynamicallyscalable : False, tags : [],
isfeatured : False, sshkeyenabled : False, account : u'admin', isextractable :
True, crossZones : False, sourcetemplateid :
u'56af8f20-2b4d-11e4-89bd-1e5d0e053e75', name : u'Cent OS Template-B8JXVK',
created : u'2014-08-24T14:41:27+0000', hypervisor : u'XenServer', ispublic :
False}, cmd :
u'org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin',
userid : u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 1, jobid :
u'51fcd982-b475-43c4-8558-947ce138f13a', jobresultcode : 0, jobinstanceid :
u'9678302e-854e-4364-adab-ae22fedb2355', jobresulttype : u'object',
jobinstancetype : u'Template', accountid :
u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'}
test_05_templates_per_domain
(integration.component.test_resource_limits.TestResourceLimitsDomain): DEBUG:
===Jobid:51fcd982-b475-43c4-8558-947ce138f13a ; StartTime:Sun Aug 24 14:41:27
2014 ; EndTime:Sun Aug 24 14:44:23 2014 ; TotalTime:-175===
test_05_templates_per_domain
(integration.component.test_resource_limits.TestResourceLimitsDomain): DEBUG:
Response : {jobprocstatus : 0, created : u'2014-08-24T14:41:27+0000', jobresult
: {domain : u'ROOT', domainid : u'56ab18f0-2b4d-11e4-89bd-1e5d0e053e75',
ostypename : u'CentOS 5.3 (64-bit)', zoneid :
u'eb811e7d-59d4-4c72-a965-80d9e30572d1', displaytext : u'Cent OS Template',
ostypeid : u'56b1e2f2-2b4d-11e4-89bd-1e5d0e053e75', passwordenabled : False, id
: u'9678302e-854e-4364-adab-ae22fedb2355', size : 21474836480, isready : True,
format : u'VHD', templatetype : u'USER', details : {platform :
u'viridian:true;acpi:1;apic:true;pae:true;nx:true',
Message.ReservedCapacityFreed.Flag : u'false'}, zonename : u'XenRT-Zone-0',
status : u'Download Complete', isdynamicallyscalable : False, tags : [],
isfeatured : False, sshkeyenabled : False, account : u'admin', isextractable :
True, crossZones : False, sourcetemplateid :
u'56af8f20-2b4d-11e4-89bd-1e5d0e053e75', name : u'Cent OS Template-B8JXVK',
created : u'2014-08-24T14:41:27+0000', hypervisor : u'XenServer', ispublic :
False}, cmd :
u'org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin',
userid : u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 1, jobid :
u'51fcd982-b475-43c4-8558-947ce138f13a', jobresultcode : 0, jobinstanceid :
u'9678302e-854e-4364-adab-ae22fedb2355', jobresulttype : u'object',
jobinstancetype : u'Template', accountid :
u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'}
test_05_templates_per_domain
(integration.component.test_resource_limits.TestResourceLimitsDomain):
CRITICAL: FAILED: test_05_templates_per_domain: ['Traceback (most recent call
last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n
testMethod()\n', ' File
"/root/cloudstack/test/integration/component/test_resource_limits.py", line
1355, in test_05_templates_per_domain\n domainid=self.account.domainid,\n',
' File "/usr/lib/python2.7/unittest/case.py", line 116, in __exit__\n "{0}
not raised".format(exc_name))\n', 'AssertionError: Exception not raised\n']
--------------------- >> end captured logging << ---------------------
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)