You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Parth Jagirdar (JIRA)" <ji...@apache.org> on 2013/07/19 23:32:48 UTC

[jira] [Created] (CLOUDSTACK-3674) [Automation] integration.component.test_templates , 3 test cases failed due to multiple reasons

Parth Jagirdar created CLOUDSTACK-3674:
------------------------------------------

             Summary: [Automation] integration.component.test_templates , 3 test cases failed due to multiple reasons
                 Key: CLOUDSTACK-3674
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3674
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Automation, VMware
    Affects Versions: 4.2.0
         Environment: VMWARE
            Reporter: Parth Jagirdar


Likely all issue diue to permission problems.

Seems cloud user is not part of ROOT.







<nose.suite.ContextSuite context=TestTemplates>:setup (from nosetests)

Failing for the past 11 builds (Since #57 )
Took 10 min.
add description
Error Message

Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext : u"Failed to create templateCreatePrivateTemplateFromVolumeCommand exception: java.lang.Exception: unable to prepare template directory: template/tmpl/103/220, storage: nfs://10.223.110.232:/export/home/automation/SC-CLOUD-QA03/secondary1, error msg: mkdir: cannot create directory `/var/cloudstack/mnt/VM/90928106758026.16683e49/template/tmpl/103': Permission denied\ncom.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:492)\ncom.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:576)\ncom.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:81)\ncom.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)\ncom.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:565)\ncom.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)\njava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\njava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)\njava.util.concurrent.FutureTask.run(FutureTask.java:166)\njava.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)\njava.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)\njava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)\njava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)\njava.lang.Thread.run(Thread.java:722)\n"}
Stacktrace

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/local/lib/python2.7/site-packages/nose/util.py", line 469, in try_run
    return func()
  File "/data/Repo2/qa/cloudstack/test/integration/component/test_templates.py", line 348, in setUpClass
    cls.volume.id
  File "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line 793, in create
    return Template(apiclient.createTemplate(cmd).__dict__)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 720, in createTemplate
    response = self.connection.marvin_request(command, response_type=response, method=method)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 230, in marvin_request
    response = self.poll(asyncJobId, response_type)
  File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 91, in poll
    "asyncquery", asyncResonse.jobresult)
cloudstackAPIException: Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext : u"Failed to create templateCreatePrivateTemplateFromVolumeCommand exception: java.lang.Exception: unable to prepare template directory: template/tmpl/103/220, storage: nfs://10.223.110.232:/export/home/automation/SC-CLOUD-QA03/secondary1, error msg: mkdir: cannot create directory `/var/cloudstack/mnt/VM/90928106758026.16683e49/template/tmpl/103': Permission denied\ncom.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:492)\ncom.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:576)\ncom.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:81)\ncom.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)\ncom.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:565)\ncom.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)\njava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\njava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)\njava.util.concurrent.FutureTask.run(FutureTask.java:166)\njava.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)\njava.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)\njava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)\njava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)\njava.lang.Thread.run(Thread.java:722)\n"}



integration.component.test_templates.TestCreateTemplate.test_01_create_template (from nosetests)

Failing for the past 22 builds (Since #46 )
Took 7 min 50 sec.
add description
Error Message

List template failed!
-------------------- >> begin captured logging << --------------------
testclient.testcase.TestCreateTemplate: DEBUG: Registered a template of format: OVA with ID: d70c7092-acfa-40fa-a700-39b9026b9947
--------------------- >> end captured logging << ---------------------
Stacktrace

  File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File "/data/Repo2/qa/cloudstack/test/integration/component/test_templates.py", line 212, in test_01_create_template
    raise Exception("List template failed!")
List template failed!
-------------------- >> begin captured logging << --------------------
testclient.testcase.TestCreateTemplate: DEBUG: Registered a template of format: OVA with ID: d70c7092-acfa-40fa-a700-39b9026b9947
--------------------- >> end captured logging << ---------------------



integration.component.test_templates.TestCreateTemplate.test_01_create_template (from nosetests)

Failing for the past 22 builds (Since #46 )
Took 7 min 55 sec.
add description
Error Message

Warning: Exception during cleanup : Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext : u'unable to find template with id 219'}
-------------------- >> begin captured logging << --------------------
testclient.testcase.TestCreateTemplate: DEBUG: Registered a template of format: OVA with ID: d70c7092-acfa-40fa-a700-39b9026b9947
--------------------- >> end captured logging << ---------------------
Stacktrace

  File "/usr/local/lib/python2.7/unittest/case.py", line 345, in run
    self.tearDown()
  File "/data/Repo2/qa/cloudstack/test/integration/component/test_templates.py", line 117, in tearDown
    raise Exception("Warning: Exception during cleanup : %s" % e)
Warning: Exception during cleanup : Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext : u'unable to find template with id 219'}
-------------------- >> begin captured logging << --------------------
testclient.testcase.TestCreateTemplate: DEBUG: Registered a template of format: OVA with ID: d70c7092-acfa-40fa-a700-39b9026b9947
--------------------- >> end captured logging << ---------------------






--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira