Chandan Purushothama created CLOUDSTACK-7439:
------------------------------------------------

             Summary: [Automation] Fix the script "test_tags.py" - Unable to 
find resource by uuid since it is already destroyed 
                 Key: CLOUDSTACK-7439
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7439
             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


I am not sure whether we allow creation of tags on destroyed VMs. Currently 
that Use case fails.

*Error Message*

Job failed: {jobprocstatus : 0, created : u'2014-08-24T15:44:22+0000', cmd : 
u'org.apache.cloudstack.api.command.user.tag.CreateTagsCmd', userid : 
u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 2, jobid : 
u'37f08e53-2f4a-40d5-a241-687948b2afb8', jobresultcode : 530, jobresulttype : 
u'object', jobresult : {errorcode : 530, errortext : u'Unable to find resource 
by uuid 9ea1264a-3914-41b4-9807-28e442ce752d and type UserVm'}, accountid : 
u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'}   Logs available at 
http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=tags

Stacktrace

  File "/usr/lib/python2.7/unittest/case.py", line 332, in run
    testMethod()
  File "/root/cloudstack/test/integration/component/test_tags.py", line 2249, 
in test_22_create_tag_destroyed_vm
    tags={'region': 'India'}
  File "/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 3783, 
in create
    return Tag(apiclient.createTags(cmd).__dict__)
  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
 line 2294, in createTags
    response = self.connection.marvinRequest(command, response_type=response, 
method=method)
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", 
line 379, in marvinRequest
    raise e
'Job failed: {jobprocstatus : 0, created : u\'2014-08-24T15:44:22+0000\', cmd : 
u\'org.apache.cloudstack.api.command.user.tag.CreateTagsCmd\', userid : 
u\'77df13d2-2b4d-11e4-89bd-1e5d0e053e75\', jobstatus : 2, jobid : 
u\'37f08e53-2f4a-40d5-a241-687948b2afb8\', jobresultcode : 530, jobresulttype : 
u\'object\', jobresult : {errorcode : 530, errortext : u\'Unable to find 
resource by uuid 9ea1264a-3914-41b4-9807-28e442ce752d and type UserVm\'}, 
accountid : u\'77df055e-2b4d-11e4-89bd-1e5d0e053e75\'}\n

Logs available at 
http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=tags
            



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to