You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "SuichII, Christopher" <Ch...@netapp.com> on 2013/08/21 19:57:01 UTC
Unable to create volume - volume size xxxx, but the maximum size
allowed is 0 Gb.
I get the error message: 'volume size xxxx, but the maximum size allowed is 0 Gb.' when I attempt to create a new volume. It is thrown from VolumeApiServiceImpl.validateVolumeSizeRange(int size).
Unless I'm missing something, it looks like '_maxVolumeSizeInGb' is never initialized in VolumeApiServiceImpl.java. Am I missing the initialization somewhere?
-Chris
Re: Unable to create volume - volume size xxxx, but the maximum size
allowed is 0 Gb.
Posted by Mike Tutkowski <mi...@solidfire.com>.
Hey Chris,
I've been having to hard code this in my sandbox to something large enough
(like 2000).
private long _maxVolumeSizeInGb = 2000;
Has anyone ever figured out why this value is not initialized in master?
Thanks!
On Wed, Aug 21, 2013 at 1:12 PM, SuichII, Christopher <
Chris.Suich@netapp.com> wrote:
> It looks like in 4.2 it is set in VolumeApiServiceImpl.configure(), but
> that method does not exist in master (and the history only goes back 8
> days).
>
> On Aug 21, 2013, at 3:08 PM, "SuichII, Christopher" <
> Chris.Suich@netapp.com> wrote:
>
> > Yeah, I'm on master. That setting is set to 2000 (as found through the
> UI).
> >
> > On Aug 21, 2013, at 2:12 PM, Koushik Das <ko...@citrix.com>
> > wrote:
> >
> >> In 4.2 branch it gets initialized from config property
> "storage.max.volume.size".
> >> Storage DEFAULT management-server storage.max.volume.size
> 2000 The maximum size for a volume (in GB).
> >>
> >> Which branch are you in? Master. Maybe some missing commit in master.
> >>
> >>> -----Original Message-----
> >>> From: SuichII, Christopher [mailto:Chris.Suich@netapp.com]
> >>> Sent: Wednesday, August 21, 2013 11:28 PM
> >>> To: <de...@cloudstack.apache.org>
> >>> Subject: Unable to create volume - volume size xxxx, but the maximum
> size
> >>> allowed is 0 Gb.
> >>>
> >>> I get the error message: 'volume size xxxx, but the maximum size
> allowed is 0
> >>> Gb.' when I attempt to create a new volume. It is thrown from
> >>> VolumeApiServiceImpl.validateVolumeSizeRange(int size).
> >>>
> >>> Unless I'm missing something, it looks like '_maxVolumeSizeInGb' is
> never
> >>> initialized in VolumeApiServiceImpl.java. Am I missing the
> initialization
> >>> somewhere?
> >>>
> >>> -Chris
> >
>
>
--
*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=play>
*™*
Re: Unable to create volume - volume size xxxx, but the maximum
size allowed is 0 Gb.
Posted by "SuichII, Christopher" <Ch...@netapp.com>.
It looks like in 4.2 it is set in VolumeApiServiceImpl.configure(), but that method does not exist in master (and the history only goes back 8 days).
On Aug 21, 2013, at 3:08 PM, "SuichII, Christopher" <Ch...@netapp.com> wrote:
> Yeah, I'm on master. That setting is set to 2000 (as found through the UI).
>
> On Aug 21, 2013, at 2:12 PM, Koushik Das <ko...@citrix.com>
> wrote:
>
>> In 4.2 branch it gets initialized from config property "storage.max.volume.size".
>> Storage DEFAULT management-server storage.max.volume.size 2000 The maximum size for a volume (in GB).
>>
>> Which branch are you in? Master. Maybe some missing commit in master.
>>
>>> -----Original Message-----
>>> From: SuichII, Christopher [mailto:Chris.Suich@netapp.com]
>>> Sent: Wednesday, August 21, 2013 11:28 PM
>>> To: <de...@cloudstack.apache.org>
>>> Subject: Unable to create volume - volume size xxxx, but the maximum size
>>> allowed is 0 Gb.
>>>
>>> I get the error message: 'volume size xxxx, but the maximum size allowed is 0
>>> Gb.' when I attempt to create a new volume. It is thrown from
>>> VolumeApiServiceImpl.validateVolumeSizeRange(int size).
>>>
>>> Unless I'm missing something, it looks like '_maxVolumeSizeInGb' is never
>>> initialized in VolumeApiServiceImpl.java. Am I missing the initialization
>>> somewhere?
>>>
>>> -Chris
>
Re: Unable to create volume - volume size xxxx, but the maximum
size allowed is 0 Gb.
Posted by "SuichII, Christopher" <Ch...@netapp.com>.
Yeah, I'm on master. That setting is set to 2000 (as found through the UI).
On Aug 21, 2013, at 2:12 PM, Koushik Das <ko...@citrix.com>
wrote:
> In 4.2 branch it gets initialized from config property "storage.max.volume.size".
> Storage DEFAULT management-server storage.max.volume.size 2000 The maximum size for a volume (in GB).
>
> Which branch are you in? Master. Maybe some missing commit in master.
>
>> -----Original Message-----
>> From: SuichII, Christopher [mailto:Chris.Suich@netapp.com]
>> Sent: Wednesday, August 21, 2013 11:28 PM
>> To: <de...@cloudstack.apache.org>
>> Subject: Unable to create volume - volume size xxxx, but the maximum size
>> allowed is 0 Gb.
>>
>> I get the error message: 'volume size xxxx, but the maximum size allowed is 0
>> Gb.' when I attempt to create a new volume. It is thrown from
>> VolumeApiServiceImpl.validateVolumeSizeRange(int size).
>>
>> Unless I'm missing something, it looks like '_maxVolumeSizeInGb' is never
>> initialized in VolumeApiServiceImpl.java. Am I missing the initialization
>> somewhere?
>>
>> -Chris
RE: Unable to create volume - volume size xxxx, but the maximum
size allowed is 0 Gb.
Posted by Koushik Das <ko...@citrix.com>.
In 4.2 branch it gets initialized from config property "storage.max.volume.size".
Storage DEFAULT management-server storage.max.volume.size 2000 The maximum size for a volume (in GB).
Which branch are you in? Master. Maybe some missing commit in master.
> -----Original Message-----
> From: SuichII, Christopher [mailto:Chris.Suich@netapp.com]
> Sent: Wednesday, August 21, 2013 11:28 PM
> To: <de...@cloudstack.apache.org>
> Subject: Unable to create volume - volume size xxxx, but the maximum size
> allowed is 0 Gb.
>
> I get the error message: 'volume size xxxx, but the maximum size allowed is 0
> Gb.' when I attempt to create a new volume. It is thrown from
> VolumeApiServiceImpl.validateVolumeSizeRange(int size).
>
> Unless I'm missing something, it looks like '_maxVolumeSizeInGb' is never
> initialized in VolumeApiServiceImpl.java. Am I missing the initialization
> somewhere?
>
> -Chris