Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E551107A6 for ; Mon, 29 Jul 2013 16:29:51 +0000 (UTC) Received: (qmail 70502 invoked by uid 500); 29 Jul 2013 16:29:50 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 70442 invoked by uid 500); 29 Jul 2013 16:29:50 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 70338 invoked by uid 500); 29 Jul 2013 16:29:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 70261 invoked by uid 99); 29 Jul 2013 16:29:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 16:29:49 +0000 Date: Mon, 29 Jul 2013 16:29:48 +0000 (UTC) From: "Srikanteswararao Talluri (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-3912) resize volume is failing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Srikanteswararao Talluri created CLOUDSTACK-3912: ---------------------------------------------------- Summary: resize volume is failing Key: CLOUDSTACK-3912 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3912 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Management Server Affects Versions: 4.2.0 Environment: xenserver Reporter: Srikanteswararao Talluri Priority: Blocker Fix For: 4.2.0 Steps to reproduce: =============== 1. resize a data volume after stopping the VM to which it is attached to. ===START=== 10.101.255.7 -- GET command=resizeVolume&id=e67740b4-b5fe-457a-ad23-f6b0e9e27eaa&shrinkok=false&diskofferingid=ad0e677e-6d01-4a8d-8f74-ee3721702b89&response=json&sessionkey=KcomtGj8N555RYPKEkmivNZN6wA%3D&_=1375115000024 2013-07-30 03:16:19,637 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-23:null) submit async job-172 = [ a62083ea-7ce2-4e41-bc98-b8772282e44e ], details: AsyncJobVO {id:172, userId: 2, accountId: 2, sessionKey: null, instanceType: Volume, instanceId: null, cmd: org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd, cmdOriginator: null, cmdInfo: {"response":"json","id":"e67740b4-b5fe-457a-ad23-f6b0e9e27eaa","sessionkey":"KcomtGj8N555RYPKEkmivNZN6wA\u003d","shrinkok":"false","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","_":"1375115000024","ctxAccountId":"2","diskofferingid":"ad0e677e-6d01-4a8d-8f74-ee3721702b89","ctxStartEventId":"748"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 7566222426160, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2013-07-30 03:16:19,643 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null) ===END=== 10.101.255.7 -- GET command=resizeVolume&id=e67740b4-b5fe-457a-ad23-f6b0e9e27eaa&shrinkok=false&diskofferingid=ad0e677e-6d01-4a8d-8f74-ee3721702b89&response=json&sessionkey=KcomtGj8N555RYPKEkmivNZN6wA%3D&_=1375115000024 2013-07-30 03:16:19,646 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-39:job-172 = [ a62083ea-7ce2-4e41-bc98-b8772282e44e ]) Executing org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd for job-172 = [ a62083ea-7ce2-4e41-bc98-b8772282e44e ] 2013-07-30 03:16:19,768 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-39:job-172 = [ a62083ea-7ce2-4e41-bc98-b8772282e44e ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd com.cloud.exception.InvalidParameterValueException: Can't resize a volume that has never been attached, not sure which hypervisor type. Recreate volume to resize. at com.cloud.storage.VolumeManagerImpl.resizeVolume(VolumeManagerImpl.java:1109) at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) at com.cloud.storage.VolumeManagerImpl.resizeVolume(VolumeManagerImpl.java:186) at org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd.execute(ResizeVolumeCmd.java:137) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) 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:679) 2013-07-30 03:16:19,810 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-39:job-172 = [ a62083ea-7ce2-4e41-bc98-b8772282e44e ]) Complete async job-172 = [ a62083ea-7ce2-4e41-bc98-b8772282e44e ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Can't resize a volume that has never been attached, not sure which hypervisor type. Recreate volume to resize. Logs can be found: -- 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