You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Rayees Namathponnan (JIRA)" <ji...@apache.org> on 2014/09/21 21:49:34 UTC

[jira] [Closed] (CLOUDSTACK-6617) [Automation] detach / resize volume test cases failing with permission error

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-6617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rayees Namathponnan closed CLOUDSTACK-6617.
-------------------------------------------

Verified 

> [Automation] detach / resize volume test cases failing  with permission error 
> ------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6617
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6617
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Volumes, Xen
>    Affects Versions: 4.4.0
>            Reporter: Rayees Namathponnan
>            Assignee: Min Chen
>             Fix For: 4.4.0
>
>         Attachments: management-server.log
>
>
> This issue is observed in 4.4-forward automation in Xen, test case integration.smoke.test_volumes.TestVolumes.test_06_download_detached_volume failing with permission error 
> integration.smoke.test_volumes.TestVolumes.test_08_resize_volume 
> Execute cmd: attachvolume failed, due to: errorCode: 531, errorText:Acct[c0a951a5-6a6c-4845-8d0e-f815ad18c770-admin] does not have permission to perform this operation on these resources
> -------------------- >> begin captured stdout << ---------------------
> === TestName: test_06_download_detached_volume | Status : EXCEPTION ===
> --------------------- >> end captured stdout << ----------------------
> -------------------- >> begin captured logging << --------------------
> test_06_download_detached_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: ::::::::::::STARTED : TC: test_06_download_detached_volume :::::::::::
> test_06_download_detached_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: Extract detached Volume ID: 885ac921-4728-4903-9621-b07c5353e9bc
> test_06_download_detached_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: Payload: {'apiKey': u'WnMdlxbiBLwGB6wX4NfasgbMfoaHqAiiY9oHcyYSpo6sGXsioEZbYjX7CQpMG3vJe-eCMHn_uffuYKoPpOQRuQ', 'virtualmachineid': u'2e1ef913-b207-4688-bbaa-408797810d3a', 'id': u'885ac921-4728-4903-9621-b07c5353e9bc', 'command': 'attachVolume', 'signature': 'hnLR1wCmFp5EtwMZRaS1e3J75S8=', 'response': 'json'}
> test_06_download_detached_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: ========Sending GET Cmd : attachVolume=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.76.63
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?apiKey=WnMdlxbiBLwGB6wX4NfasgbMfoaHqAiiY9oHcyYSpo6sGXsioEZbYjX7CQpMG3vJe-eCMHn_uffuYKoPpOQRuQ&virtualmachineid=2e1ef913-b207-4688-bbaa-408797810d3a&id=885ac921-4728-4903-9621-b07c5353e9bc&command=attachVolume&signature=hnLR1wCmFp5EtwMZRaS1e3J75S8%3D&response=json HTTP/1.1" 531 212
> test_06_download_detached_volume (integration.smoke.test_volumes.TestVolumes): ERROR: Exception:['Traceback (most recent call last):\n', '  File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 313, in __parseAndGetResponse\n    response_cls)\n', '  File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/jsonHelper.py", line 151, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'CloudstackAPIException: Execute cmd: attachvolume failed, due to: errorCode: 531, errorText:Acct[c0a951a5-6a6c-4845-8d0e-f815ad18c770-admin] does not have permission to perform this operation on these resources\n']
> Traceback (most recent call last):
>   File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 313, in __parseAndGetResponse
>     response_cls)
>   File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/jsonHelper.py", line 151, in getResultObj
>     raise cloudstackException.CloudstackAPIException(respname, errMsg)
> CloudstackAPIException: Execute cmd: attachvolume failed, due to: errorCode: 531, errorText:Acct[c0a951a5-6a6c-4845-8d0e-f815ad18c770-admin] does not have permission to perform this operation on these resources
> test_06_download_detached_volume (integration.smoke.test_volumes.TestVolumes): ERROR: marvinRequest : CmdName: <marvin.cloudstackAPI.attachVolume.attachVolumeCmd object at 0x36ccf90> Exception: ['Traceback (most recent call last):\n', '  File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 380, in marvinRequest\n    raise self.__lastError\n', 'CloudstackAPIException: Execute cmd: attachvolume failed, due to: errorCode: 531, errorText:Acct[c0a951a5-6a6c-4845-8d0e-f815ad18c770-admin] does not have permission to perform this operation on these resources\n']
> Traceback (most recent call last):
>   File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 380, in marvinRequest
>     raise self.__lastError
> CloudstackAPIException: Execute cmd: attachvolume failed, due to: errorCode: 531, errorText:Acct[c0a951a5-6a6c-4845-8d0e-f815ad18c770-admin] does not have permission to perform this operation on these resources
> test_06_download_detached_volume (integration.smoke.test_volumes.TestVolumes): CRITICAL: EXCEPTION: test_06_download_detached_volume: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n    testMethod()\n', '  File "/home/jenkins/workspace/xenrt-bvt-basic-xs/cloudstack.git/test/integration/smoke/test_volumes.py", line 473, in test_06_download_detached_volume\n    self.virtual_machine.attach_volume(self.apiClient, self.volume)\n', '  File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/lib/base.py", line 629, in attach_volume\n    return apiclient.attachVolume(cmd)\n', '  File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 1632, in attachVolume\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/local/jenkins/workspace/xenrt-bvt-basic-xs/work.41/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 385, in marvinRequest\n    raise e\n', 'CloudstackAPIException: Execute cmd: attachvolume failed, due to: errorCode: 531, errorText:Acct[c0a951a5-6a6c-4845-8d0e-f815ad18c770-admin] does not have permission to perform this operation on these resources\n']
> --------------------- >> end captured logging << ---------------------
> I dont have MS log, at this point of time 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)