[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083182#comment-14083182
 ] 

Animesh Chaturvedi commented on CLOUDSTACK-7228:
------------------------------------------------

Nitin do you mind cheking if it regressed?

> [Automation] Unable to resize data disk attached to a VM
> --------------------------------------------------------
>
>                 Key: CLOUDSTACK-7228
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7228
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Automation, Test, Volumes
>    Affects Versions: 4.5.0
>            Reporter: Chandan Purushothama
>            Assignee: Nitin Mehta
>            Priority: Critical
>             Fix For: 4.5.0
>
>         Attachments: management-server.zip
>
>
> Test Case is clearly testing resizing of Data Disk Volume as shown below. 
> CloudStack error mentions "Only data volumes can be resized via a new disk 
> offering.":
> ==============
> Automation Code:
> ==============
>     def test_08_resize_volume(self):
>         """Test resize a volume"""
>         # Verify the size is the new size is what we wanted it to be.
>         self.debug(
>                 "Attaching volume (ID: %s) to VM (ID: %s)" % (
>                                                     self.volume.id,
>                                                     self.virtual_machine.id
>                                                     ))
>         self.virtual_machine.attach_volume(self.apiClient, self.volume)
>         self.attached = True
>         hosts = Host.list(self.apiClient, id=self.virtual_machine.hostid)
>         self.assertTrue(isinstance(hosts, list))
>         self.assertTrue(len(hosts) > 0)
>         self.debug("Found %s host" % hosts[0].hypervisor)
>         if hosts[0].hypervisor == "XenServer":
>             self.virtual_machine.stop(self.apiClient)
>         elif hosts[0].hypervisor.lower() == "vmware":
>             self.skipTest("Resize Volume is unsupported on VmWare")
>         # resize the data disk
>         self.debug("Resize Volume ID: %s" % self.volume.id)
>         self.services["disk_offering"]["disksize"] = 20
>         disk_offering_20_GB = DiskOffering.create(
>                                     self.apiclient,
>                                     self.services["disk_offering"]
>                                     )
>         self.cleanup.append(disk_offering_20_GB)
>         cmd                = resizeVolume.resizeVolumeCmd()
>         cmd.id             = self.volume.id
>         cmd.diskofferingid = disk_offering_20_GB.id
>         self.apiClient.resizeVolume(cmd)
> ===========================
> Error Thrown in Automation Logs:
> ===========================
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : {jobprocstatus : 0, created : u'2014-08-01T18:08:45+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 0, jobid : 
> u'd737369d-800f-4ff9-a8c3-19214c770c55', jobresultcode : 0, accountid : 
> u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> === JobId:d737369d-800f-4ff9-a8c3-19214c770c55 is Still Processing, Will 
> TimeOut in:3595 ====
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Payload: {'signature': 'AT5AUgQqtT8ytrfN9OfN+1X37SE=', 'apiKey': 
> u'sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw',
>  'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': 
> u'd737369d-800f-4ff9-a8c3-19214c770c55'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
> (1): 10.220.135.101
> requests.packages.urllib3.connectionpool: DEBUG: "GET 
> /client/api?signature=AT5AUgQqtT8ytrfN9OfN%2B1X37SE%3D&apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&command=queryAsyncJobResult&response=json&jobid=d737369d-800f-4ff9-a8c3-19214c770c55
>  HTTP/1.1" 200 1396
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : {jobprocstatus : 0, created : u'2014-08-01T18:08:45+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 1, jobid : 
> u'd737369d-800f-4ff9-a8c3-19214c770c55', jobresultcode : 0, jobresulttype : 
> u'object', jobresult : {domain : u'ROOT', domainid : 
> u'6b74e43e-1985-11e4-8117-4a45176012f1', zoneid : 
> u'46c029a3-8481-48c3-b350-0b6798bb3527', storageid : 
> u'c21caded-8a9b-3e42-bf1d-b865e96d31c8', provisioningtype : u'thin', vmname : 
> u'VM-181a043d-fe8f-44bf-8d52-80b90d1f539e', id : 
> u'798015be-e477-4723-bb41-7980a4e14a9a', size : 21474836480, destroyed : 
> False, diskofferingdisplaytext : u'Disk offering', storage : 
> u'XenRT-Zone-0-Pod-0-Cluster-0-Primary-Store-0', displayvolume : True, 
> diskofferingname : u'Disk offering', state : u'Ready', type : u'DATADISK', 
> zonename : u'XenRT-Zone-0', tags : [], isextractable : True, path : 
> u'aa4de9c6-c115-4396-8824-8b7d28df9b04', account : 
> u'test-account-TestVpcSite2SiteVpn-test_01_create_volume-BRZWWX', name : 
> u'Test Volume', virtualmachineid : u'181a043d-fe8f-44bf-8d52-80b90d1f539e', 
> storagetype : u'shared', hypervisor : u'XenServer', created : 
> u'2014-08-01T18:04:07+0000', attached : u'2014-08-01T18:08:17+0000', deviceid 
> : 1, diskofferingid : u'b816fbfb-068f-4dbd-be4f-46be623f273c', vmstate : 
> u'Stopped', quiescevm : False}, accountid : 
> u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> ===Jobid:d737369d-800f-4ff9-a8c3-19214c770c55 ; StartTime:Fri Aug  1 18:06:34 
> 2014 ; EndTime:Fri Aug  1 18:06:39 2014 ; TotalTime:-5===
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : {jobprocstatus : 0, created : u'2014-08-01T18:08:45+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 1, jobid : 
> u'd737369d-800f-4ff9-a8c3-19214c770c55', jobresultcode : 0, jobresulttype : 
> u'object', jobresult : {domain : u'ROOT', domainid : 
> u'6b74e43e-1985-11e4-8117-4a45176012f1', zoneid : 
> u'46c029a3-8481-48c3-b350-0b6798bb3527', storageid : 
> u'c21caded-8a9b-3e42-bf1d-b865e96d31c8', provisioningtype : u'thin', vmname : 
> u'VM-181a043d-fe8f-44bf-8d52-80b90d1f539e', id : 
> u'798015be-e477-4723-bb41-7980a4e14a9a', size : 21474836480, destroyed : 
> False, diskofferingdisplaytext : u'Disk offering', storage : 
> u'XenRT-Zone-0-Pod-0-Cluster-0-Primary-Store-0', displayvolume : True, 
> diskofferingname : u'Disk offering', state : u'Ready', type : u'DATADISK', 
> zonename : u'XenRT-Zone-0', tags : [], isextractable : True, path : 
> u'aa4de9c6-c115-4396-8824-8b7d28df9b04', account : 
> u'test-account-TestVpcSite2SiteVpn-test_01_create_volume-BRZWWX', name : 
> u'Test Volume', virtualmachineid : u'181a043d-fe8f-44bf-8d52-80b90d1f539e', 
> storagetype : u'shared', hypervisor : u'XenServer', created : 
> u'2014-08-01T18:04:07+0000', attached : u'2014-08-01T18:08:17+0000', deviceid 
> : 1, diskofferingid : u'b816fbfb-068f-4dbd-be4f-46be623f273c', vmstate : 
> u'Stopped', quiescevm : False}, accountid : 
> u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Payload: {'apiKey': 
> u'sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw',
>  'signature': 'ze8VvqAdbe+NBl/RiOnuvyy4pdM=', 'response': 'json', 'command': 
> 'listVolumes', 'type': 'DATADISK', 'id': 
> u'798015be-e477-4723-bb41-7980a4e14a9a'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> ========Sending GET Cmd : listVolumes=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
> (1): 10.220.135.101
> requests.packages.urllib3.connectionpool: DEBUG: "GET 
> /client/api?apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&signature=ze8VvqAdbe%2BNBl%2FRiOnuvyy4pdM%3D&response=json&command=listVolumes&type=DATADISK&id=798015be-e477-4723-bb41-7980a4e14a9a
>  HTTP/1.1" 200 1058
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : [{domain : u'ROOT', domainid : 
> u'6b74e43e-1985-11e4-8117-4a45176012f1', zoneid : 
> u'46c029a3-8481-48c3-b350-0b6798bb3527', storageid : 
> u'c21caded-8a9b-3e42-bf1d-b865e96d31c8', provisioningtype : u'thin', vmname : 
> u'VM-181a043d-fe8f-44bf-8d52-80b90d1f539e', id : 
> u'798015be-e477-4723-bb41-7980a4e14a9a', size : 21474836480, destroyed : 
> False, diskofferingdisplaytext : u'Disk offering', storage : 
> u'XenRT-Zone-0-Pod-0-Cluster-0-Primary-Store-0', displayvolume : True, 
> diskofferingname : u'Disk offering', state : u'Ready', type : u'DATADISK', 
> zonename : u'XenRT-Zone-0', tags : [], isextractable : True, path : 
> u'aa4de9c6-c115-4396-8824-8b7d28df9b04', account : 
> u'test-account-TestVpcSite2SiteVpn-test_01_create_volume-BRZWWX', name : 
> u'Test Volume', virtualmachineid : u'181a043d-fe8f-44bf-8d52-80b90d1f539e', 
> storagetype : u'shared', hypervisor : u'XenServer', created : 
> u'2014-08-01T18:04:07+0000', attached : u'2014-08-01T18:08:17+0000', deviceid 
> : 1, diskofferingid : u'b816fbfb-068f-4dbd-be4f-46be623f273c', vmstate : 
> u'Stopped', quiescevm : False}]
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Payload: {'apiKey': 
> u'sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw',
>  'name': u'Disk offering', 'command': 'createDiskOffering', 'disksize': 10, 
> 'signature': 'R+vh0JGTCRJIfzkvHH43IpSQavs=', 'displaytext': u'Disk offering', 
> 'response': 'json'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> ========Sending GET Cmd : createDiskOffering=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
> (1): 10.220.135.101
> requests.packages.urllib3.connectionpool: DEBUG: "GET 
> /client/api?apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&name=Disk+offering&command=createDiskOffering&disksize=10&signature=R%2Bvh0JGTCRJIfzkvHH43IpSQavs%3D&displaytext=Disk+offering&response=json
>  HTTP/1.1" 200 300
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : {iscustomized : False, name : u'Disk offering', created : 
> u'2014-08-01T18:08:50+0000', storagetype : u'shared', displaytext : u'Disk 
> offering', disksize : 10, provisioningtype : u'thin', id : 
> u'f2b93917-dde6-4093-aa90-33ceb7297ddc', displayoffering : True}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Payload: {'apiKey': 
> u'sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw',
>  'response': 'json', 'command': 'resizeVolume', 'signature': 
> 'G3j7edbBIAC8OzJhijVUppLXl28=', 'shrinkok': 'true', 'diskofferingid': 
> u'f2b93917-dde6-4093-aa90-33ceb7297ddc', 'id': 
> u'798015be-e477-4723-bb41-7980a4e14a9a'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> ========Sending GET Cmd : resizeVolume=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
> (1): 10.220.135.101
> requests.packages.urllib3.connectionpool: DEBUG: "GET 
> /client/api?apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&response=json&command=resizeVolume&signature=G3j7edbBIAC8OzJhijVUppLXl28%3D&shrinkok=true&diskofferingid=f2b93917-dde6-4093-aa90-33ceb7297ddc&id=798015be-e477-4723-bb41-7980a4e14a9a
>  HTTP/1.1" 200 77
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> === Jobid: 84c36d7c-0376-4db4-9dd4-da894446b71e Started ===
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Payload: {'signature': 'q+UkzrkXYc82VPdGp4/7OCN02O8=', 'apiKey': 
> u'sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw',
>  'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
> (1): 10.220.135.101
> requests.packages.urllib3.connectionpool: DEBUG: "GET 
> /client/api?signature=q%2BUkzrkXYc82VPdGp4%2F7OCN02O8%3D&apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&command=queryAsyncJobResult&response=json&jobid=84c36d7c-0376-4db4-9dd4-da894446b71e
>  HTTP/1.1" 200 348
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : {jobprocstatus : 0, created : u'2014-08-01T18:08:50+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 0, jobid : 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e', jobresultcode : 0, accountid : 
> u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> === JobId:84c36d7c-0376-4db4-9dd4-da894446b71e is Still Processing, Will 
> TimeOut in:3595 ====
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Payload: {'signature': 'q+UkzrkXYc82VPdGp4/7OCN02O8=', 'apiKey': 
> u'sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw',
>  'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
> (1): 10.220.135.101
> requests.packages.urllib3.connectionpool: DEBUG: "GET 
> /client/api?signature=q%2BUkzrkXYc82VPdGp4%2F7OCN02O8%3D&apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&command=queryAsyncJobResult&response=json&jobid=84c36d7c-0376-4db4-9dd4-da894446b71e
>  HTTP/1.1" 200 440
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : {jobprocstatus : 0, created : u'2014-08-01T18:08:50+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 2, jobid : 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e', jobresultcode : 530, jobresulttype : 
> u'object', jobresult : {errorcode : 530, errortext : u'Unexpected 
> exception'}, accountid : u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): ERROR: 
> ==== __poll: Exception Occurred :Job failed: {jobprocstatus : 0, created : 
> u'2014-08-01T18:08:50+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 2, jobid : 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e', jobresultcode : 530, jobresulttype : 
> u'object', jobresult : {errorcode : 530, errortext : u'Unexpected 
> exception'}, accountid : u'8b4bbc2e-1985-11e4-8117-4a45176012f1'} ====
> Traceback (most recent call last):
>   File 
> "/local/jenkins/workspace/xenrt-bvt-adv-xs/work.227/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
>  line 105, in __poll
>     % async_response)
> Exception: Job failed: {jobprocstatus : 0, created : 
> u'2014-08-01T18:08:50+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 2, jobid : 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e', jobresultcode : 530, jobresulttype : 
> u'object', jobresult : {errorcode : 530, errortext : u'Unexpected 
> exception'}, accountid : u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: 
> Response : FAILED
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): ERROR: 
> marvinRequest : CmdName: <marvin.cloudstackAPI.resizeVolume.resizeVolumeCmd 
> object at 0x48dc750> Exception: ['Traceback (most recent call last):\n', '  
> File 
> "/local/jenkins/workspace/xenrt-bvt-adv-xs/work.227/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
>  line 375, in marvinRequest\n    raise self.__lastError\n', "Exception: Job 
> failed: {jobprocstatus : 0, created : u'2014-08-01T18:08:50+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 2, jobid : 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e', jobresultcode : 530, jobresulttype : 
> u'object', jobresult : {errorcode : 530, errortext : u'Unexpected 
> exception'}, accountid : u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}\n"]
> Traceback (most recent call last):
>   File 
> "/local/jenkins/workspace/xenrt-bvt-adv-xs/work.227/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
>  line 375, in marvinRequest
>     raise self.__lastError
> Exception: Job failed: {jobprocstatus : 0, created : 
> u'2014-08-01T18:08:50+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 2, jobid : 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e', jobresultcode : 530, jobresulttype : 
> u'object', jobresult : {errorcode : 530, errortext : u'Unexpected 
> exception'}, accountid : u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}
> test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): CRITICAL: 
> EXCEPTION: test_08_resize_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-adv-xs/cloudstack.git/test/integration/smoke/test_volumes.py",
>  line 693, in test_08_resize_volume\n    self.apiClient.resizeVolume(cmd)\n', 
> '  File 
> "/local/jenkins/workspace/xenrt-bvt-adv-xs/work.227/env/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
>  line 1672, in resizeVolume\n    response = 
> self.connection.marvinRequest(command, response_type=response, 
> method=method)\n', '  File 
> "/local/jenkins/workspace/xenrt-bvt-adv-xs/work.227/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
>  line 380, in marvinRequest\n    raise e\n', "Exception: Job failed: 
> {jobprocstatus : 0, created : u'2014-08-01T18:08:50+0000', cmd : 
> u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', 
> userid : u'8b4bcc64-1985-11e4-8117-4a45176012f1', jobstatus : 2, jobid : 
> u'84c36d7c-0376-4db4-9dd4-da894446b71e', jobresultcode : 530, jobresulttype : 
> u'object', jobresult : {errorcode : 530, errortext : u'Unexpected 
> exception'}, accountid : u'8b4bbc2e-1985-11e4-8117-4a45176012f1'}\n"]
> --------------------- >> end captured logging << ---------------------
> Stacktrace
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
>     testMethod()
>   File 
> "/home/jenkins/workspace/xenrt-bvt-adv-xs/cloudstack.git/test/integration/smoke/test_volumes.py",
>  line 693, in test_08_resize_volume
>     self.apiClient.resizeVolume(cmd)
>   File 
> "/local/jenkins/workspace/xenrt-bvt-adv-xs/work.227/env/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
>  line 1672, in resizeVolume
>     response = self.connection.marvinRequest(command, response_type=response, 
> method=method)
>   File 
> "/local/jenkins/workspace/xenrt-bvt-adv-xs/work.227/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py",
>  line 380, in marvinRequest
>     raise e
> 'Job failed: {jobprocstatus : 0, created : u\'2014-08-01T18:08:50+0000\', cmd 
> : u\'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin\', 
> userid : u\'8b4bcc64-1985-11e4-8117-4a45176012f1\', jobstatus : 2, jobid : 
> u\'84c36d7c-0376-4db4-9dd4-da894446b71e\', jobresultcode : 530, jobresulttype 
> : u\'object\', jobresult : {errorcode : 530, errortext : u\'Unexpected 
> exception\'}, accountid : 
> u\'8b4bbc2e-1985-11e4-8117-4a45176012f1\'}\n-------------------- >> begin 
> captured stdout << ---------------------\n=== TestName: test_08_resize_volume 
> | Status : EXCEPTION ===\n\n\n--------------------- >> end captured stdout << 
> ----------------------\n-------------------- >> begin captured logging << 
> --------------------\ntest_08_resize_volume 
> ==========================
> Error in Management Server Log:
> ==========================
> 2014-08-01 18:06:44,219 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (API-Job-Executor-34:ctx-4e737cdc job-562) Executing AsyncJobVO {id:562, 
> userId: 2, accountId: 2, instanceType: Volume, instanceId: null, cmd: 
> org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin, 
> cmdInfo: 
> {"id":"ddae8453-d2ae-437f-9877-b38cb1dfcbbc","response":"json","ctxDetails":"{\"com.cloud.storage.Volume\":\"ddae8453-d2ae-437f-9877-b38cb1dfcbbc\",\"com.cloud.offering.DiskOffering\":\"08cab322-8bcf-4d37-ac6b-11b8532be13b\"}","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","uuid":"ddae8453-d2ae-437f-9877-b38cb1dfcbbc","ctxAccountId":"2","diskofferingid":"08cab322-8bcf-4d37-ac6b-11b8532be13b","ctxStartEventId":"1688","apiKey":"sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw","signature":"LE+T1rB+A+ZPUxi0WZD+Sf7tlzw\u003d"},
>  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
> null, initMsid: 81660605371121, completeMsid: null, lastUpdated: null, 
> lastPolled: null, created: null}
> 2014-08-01 18:06:44,219 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (catalina-exec-3:ctx-d95ce6b0 ctx-c7f58e10 ctx-280f9dfd) submit async 
> job-562, details: AsyncJobVO {id:562, userId: 2, accountId: 2, instanceType: 
> Volume, instanceId: null, cmd: 
> org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin, 
> cmdInfo: 
> {"id":"ddae8453-d2ae-437f-9877-b38cb1dfcbbc","response":"json","ctxDetails":"{\"com.cloud.storage.Volume\":\"ddae8453-d2ae-437f-9877-b38cb1dfcbbc\",\"com.cloud.offering.DiskOffering\":\"08cab322-8bcf-4d37-ac6b-11b8532be13b\"}","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","uuid":"ddae8453-d2ae-437f-9877-b38cb1dfcbbc","ctxAccountId":"2","diskofferingid":"08cab322-8bcf-4d37-ac6b-11b8532be13b","ctxStartEventId":"1688","apiKey":"sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw","signature":"LE+T1rB+A+ZPUxi0WZD+Sf7tlzw\u003d"},
>  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
> null, initMsid: 81660605371121, completeMsid: null, lastUpdated: null, 
> lastPolled: null, created: null}
> 2014-08-01 18:06:44,223 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-3:ctx-d95ce6b0 ctx-c7f58e10 ctx-280f9dfd) ===END===  
> 10.220.64.12 -- GET  
> apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&response=json&command=resizeVolume&signature=LE%2BT1rB%2BA%2BZPUxi0WZD%2BSf7tlzw%3D&diskofferingid=08cab322-8bcf-4d37-ac6b-11b8532be13b&id=ddae8453-d2ae-437f-9877-b38cb1dfcbbc
> 2014-08-01 18:06:44,228 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-2:ctx-26187054) ===START===  10.220.64.12 -- GET  
> signature=uYWXxK6oNmwDJoF5gdmApCxtMmw%3D&apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&command=queryAsyncJobResult&response=json&jobid=980f64af-09dd-4199-936c-f4a65c5647d4
> 2014-08-01 18:06:44,336 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-2:ctx-26187054 ctx-bbd09216 ctx-831fe215) ===END===  
> 10.220.64.12 -- GET  
> signature=uYWXxK6oNmwDJoF5gdmApCxtMmw%3D&apiKey=sfPBC6eFdp-wpQCQiYlsp7e-i4xoi3WgqX044cR7THvHSNrtZyEFTOOHpM6DfTwaq32cGJVAX7iUpYGs91GZxw&command=queryAsyncJobResult&response=json&jobid=980f64af-09dd-4199-936c-f4a65c5647d4
> 2014-08-01 18:06:44,338 ERROR [c.c.a.ApiAsyncJobDispatcher] 
> (API-Job-Executor-34:ctx-4e737cdc job-562) Unexpected exception while 
> executing 
> org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin
> com.cloud.exception.InvalidParameterValueException: Only data volumes can be 
> resized via a new disk offering.
>       at 
> com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:830)
>       at 
> com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:150)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:601)
>       at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>       at 
> org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>       at 
> com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>       at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>       at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>       at $Proxy183.resizeVolume(Unknown Source)
>       at 
> org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin.execute(ResizeVolumeCmdByAdmin.java:37)
>       at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>       at 
> com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
>       at 
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
>       at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>       at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>       at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>       at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>       at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>       at 
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>       at java.lang.Thread.run(Thread.java:722)
> 2014-08-01 18:06:44,345 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (API-Job-Executor-34:ctx-4e737cdc job-562) Complete async job-562, jobStatus: 
> FAILED, resultCode: 530, result: 
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Only
>  data volumes can be resized via a new disk offering."}
> 2014-08-01 18:06:44,350 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (API-Job-Executor-34:ctx-4e737cdc job-562) Done executing 
> org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin for 
> job-562



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

Reply via email to