Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DFA110277 for ; Wed, 25 Sep 2013 12:46:15 +0000 (UTC) Received: (qmail 67627 invoked by uid 500); 25 Sep 2013 12:32:42 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 67587 invoked by uid 500); 25 Sep 2013 12:32:41 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 67559 invoked by uid 99); 25 Sep 2013 12:32:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 12:32:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of a.petrocelli@netsons.com designates 46.252.159.58 as permitted sender) Received: from [46.252.159.58] (HELO netsons.com) (46.252.159.58) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 12:32:33 +0000 Received: from office.netsons.com ([88.149.164.121]:57878 helo=[127.0.0.1]) by cpanel.netsons.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1VOoGG-0004c7-NJ for dev@cloudstack.apache.org; Wed, 25 Sep 2013 14:32:09 +0200 Message-ID: <5242D7C9.7070200@netsons.com> Date: Wed, 25 Sep 2013 14:32:09 +0200 From: Antonio Petrocelli User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: dev@cloudstack.apache.org Subject: Re: ROOT disk resize References: <52382EC3.70802@netsons.com> <52384C06.50601@netsons.com> In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms080607020209000500080008" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.netsons.com X-AntiAbuse: Original Domain - cloudstack.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - netsons.com X-Get-Message-Sender-Via: cpanel.netsons.com: authenticated_id: a.petrocelli@netsons.com X-Virus-Checked: Checked by ClamAV on apache.org --------------ms080607020209000500080008 Content-Type: multipart/alternative; boundary="------------060200000504020403060408" This is a multi-part message in MIME format. --------------060200000504020403060408 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Hello, i'm trying to do the call directly to vsphere... i need help for this call: vSphere Documentation Center=20 =20 (ExtendVirtualDisk_Task) I'm unable to pass a correct value for parameter *name.* I'm trying the call from: https://myaddress/mob/?moid=3DvirtualDiskManager&method=3DqueryVirtualDis= kFragmentation When i try to insert an URL formatted as manual specs: /scheme/:///authority//folder//path/?dcPath=3D/dcPath/&dsName=3D/dsNa= me/ result is: INVALID ARGUMENT for NAME If i give a simple test string like: *test* *the call is ok with response: *task-4426 but in vsphere i receive this error: /Extend virtual disk The request refers to an unexpected or unknown type.= / Someone know the right way to invoke this request? Thanks a lot. Il 19/09/2013 16:07, Marcus Sorensen ha scritto: > Something like this for 4.2... for 4.1 it would be pretty much the > same, just that in 4.1 the code was in StorageManagerImpl.java > > iff --git a/server/src/com/cloud/storage/VolumeManagerImpl.java > b/server/src/com/cloud/storage/VolumeManagerImpl.java > index 1d6b44f..4ef57ed 100644 > --- a/server/src/com/cloud/storage/VolumeManagerImpl.java > +++ b/server/src/com/cloud/storage/VolumeManagerImpl.java > @@ -1110,17 +1110,12 @@ public class VolumeManagerImpl extends > ManagerBase implements VolumeManager { > "Volume should be in ready state before > attempting a resize"); > } > > - if (!volume.getVolumeType().equals(Volume.Type.DATADISK)) { > - throw new InvalidParameterValueException( > - "Can only resize DATA volumes"); > - } > - > /* > * figure out whether or not a new disk offering or size para= meter is > * required, get the correct size value > */ > if (newDiskOffering =3D=3D null) { > - if (diskOffering.isCustomized()) { > + if (diskOffering.isCustomized() || > volume.getVolumeType().equals(Volume.Type.ROOT)) { > newSize =3D cmd.getSize(); > > if (newSize =3D=3D null) { > @@ -1135,6 +1130,10 @@ public class VolumeManagerImpl extends > ManagerBase implements VolumeManager { > + " cannot be resized, need to specify a disk= > offering"); > } > } else { > + if (!volume.getVolumeType().equals(Volume.Type.DATADISK)) = { > + throw new InvalidParameterValueException( > + "Can only resize DATA volumes via new disk offerin= g"); > + } > > if (newDiskOffering.getRemoved() !=3D null > || !DiskOfferingVO.Type.Disk.equals(newDiskOfferi= ng > > On Tue, Sep 17, 2013 at 11:02 AM, Marcus Sorensen = wrote: >> Yes >> >> On Sep 17, 2013 11:01 AM, "Mike Tutkowski" >> wrote: >>> Just checking on something. >>> >>> If you spin up a VM based on an ISO, the ROOT disk size is based on t= he >>> selected disk offering, right? >>> >>> >>> On Tue, Sep 17, 2013 at 6:33 AM, Antonio Petrocelli < >>> a.petrocelli@netsons.com> wrote: >>> >>>> Thanks a lot for reply. >>>> >>>> Do you know how change the code? >>>> >>>> Il 17/09/2013 14:22, Marcus Sorensen ha scritto: >>>> >>>> You'd need to make minor code changes to remove the check in the c= ode >>>> and >>>>> recompile. It should otherwise work, its just that traditionally ro= ot >>>>> disk >>>>> size is based on template size, while data disks are based on disk >>>>> offerings. Not everyone wants root resize, e.g. if they are billing= >>>>> based >>>>> on disk offering rather than checking actual vol size. >>>>> >>>>> You could request an enhancement where root resize can be enabled v= ia >>>>> config parameter. >>>>> On Sep 17, 2013 4:28 AM, "Antonio Petrocelli" >>>>> >>>>> wrote: >>>>> >>>>> Hello, >>>>>> is there a way to resize the ROOT disk of a vm? >>>>>> >>>>>> API reply is: *Can only resize DATA volumes* >>>>>> >>>>>> Does anyone know a method to bypass that control? >>>>>> >>>>>> Thanks a lot. >>>>>> >>>>>> Regards. >>>>>> >>>>>> >>> >>> -- >>> *Mike Tutkowski* >>> *Senior CloudStack Developer, SolidFire Inc.* >>> e: mike.tutkowski@solidfire.com >>> o: 303.746.7302 >>> Advancing the way the world uses the >>> cloud >>> *=99* --------------060200000504020403060408 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable

Hello,

i'm trying to do the call directly to vsphere...

i need help for this call: vSphere Documentation Center (ExtendVirtualDisk_Task)

I'm unable to pass a correct value for parameter name.=

I'm trying the call from:

https://myaddress/mob/?moid=3DvirtualDiskMana= ger&method=3DqueryVirtualDiskFragmentation

When i try to insert an URL formatted as manual specs:

scheme://authority<= /em>/folder/path?dcPath=3DdcPath&dsName=3DdsNam= e

result is: INVALID ARGUMENT for NAME

If i give a simple test string like: test

=

the call is ok with response: task-4426

but in vsphere i receive this error:

Extend virtual disk The request refers to an unexpected or unknown type.

Someone know the right way to invoke this request?

Thanks a lot.


Il 19/09/2013 16:07, Marcus Sorensen ha scritto:
Something like this for 4.2... for 4.1 it would be p=
retty much the
same, just that in 4.1 the code was in StorageManagerImpl.java

iff --git a/server/src/com/cloud/storage/VolumeManagerImpl.java
b/server/src/com/cloud/storage/VolumeManagerImpl.java
index 1d6b44f..4ef57ed 100644
--- a/server/src/com/cloud/storage/VolumeManagerImpl.java
+++ b/server/src/com/cloud/storage/VolumeManagerImpl.java
@@ -1110,17 +1110,12 @@ public class VolumeManagerImpl extends
ManagerBase implements VolumeManager {
                     "Volume should be in ready state before
attempting a resize");
         }

-        if (!volume.getVolumeType().equals(Volume.Type.DATADISK)) {
-            throw new InvalidParameterValueException(
-                    "Can only resize DATA volumes");
-        }
-
         /*
          * figure out whether or not a new disk offering or size paramet=
er is
          * required, get the correct size value
          */
         if (newDiskOffering =3D=3D null) {
-            if (diskOffering.isCustomized()) {
+            if (diskOffering.isCustomized() ||
volume.getVolumeType().equals(Volume.Type.ROOT)) {
                 newSize =3D cmd.getSize();

                 if (newSize =3D=3D null) {
@@ -1135,6 +1130,10 @@ public class VolumeManagerImpl extends
ManagerBase implements VolumeManager {
                         + " cannot be resized, need to specify a disk
offering");
             }
         } else {
+            if (!volume.getVolumeType().equals(Volume.Type.DATADISK)) {
+                throw new InvalidParameterValueException(
+                    "Can only resize DATA volumes via new disk offering"=
);
+            }

             if (newDiskOffering.getRemoved() !=3D null
                     || !DiskOfferingVO.Type.Disk.equals(newDiskOffering

On Tue, Sep 17, 2013 at 11:02 AM, Marcus Sorensen <shadowsor@gmail.com&g=
t; wrote:
Yes

On Sep 17, 2013 11:01 AM, "Mike Tutkowski" <mike.tutkowski@soli=
dfire.com>
wrote:
Just checking on something.

If you spin up a VM based on an ISO, the ROOT disk size is based on the
selected disk offering, right?


On Tue, Sep 17, 2013 at 6:33 AM, Antonio Petrocelli <
a.petrocelli@netsons.com> wrote:

Thanks a lot for reply.

Do you know how change the code?

Il 17/09/2013 14:22, Marcus Sorensen ha scritto:

 You'd need to make minor code changes to remove the check in the code
and
recompile. It should otherwise work, its jus=
t that traditionally root
disk
size is based on template size, while data disks are based on disk
offerings. Not everyone wants root resize, e.g. if they are billing
based
on disk offering rather than checking actual vol size.

You could request an enhancement where root resize can be enabled via
config parameter.
On Sep 17, 2013 4:28 AM, "Antonio Petrocelli"
<a.petrocelli@netsons.com>
wrote:

   Hello,
is there a way to resize the ROOT disk of a vm?

API reply is: *Can only resize DATA volumes*

Does anyone know a method to bypass that control?

Thanks a lot.

Regards.



          

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?=
video=3Dplay>
*=99*
--------------060200000504020403060408-- --------------ms080607020209000500080008 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: Firma crittografica S/MIME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