If a root disk constraint is specified, Juju will translate that into a block
device mapping request when the instance is started. Hence we do start an
instance with the required root disk size but the subsequent constraints
matching fails. That's my understanding anyway.

On 30/05/14 11:42, Kapil Thangavelu wrote:
> fwiw. all the ubuntu cloud images root disks in ec2 have 8gb of disk size
> by default, juju doesn't reallocate the root volume size when creating an
> instance (if it did cloudinit will auto resize the root fs if its created
> with a larger root vol).
> 
> 
> On Thu, May 29, 2014 at 8:26 PM, Ian Booth <ian.bo...@canonical.com> wrote:
> 
>> Hi Stein
>>
>> This does appear to be a bug in Juju's constraints handling for EC2.
>> I'd have to do an experiment to confirm, but certainly reading the code
>> appears to show a problem.
>>
>> Given how EC2 works, in that Juju asks for the specified root disk size
>> when starting an instance, I don't have a workaround that I can think
>> of to share with you.
>>
>> The fix for this would be relatively simple to implement and so can be
>> done in time for the next stable release (1.20) which is due in a few
>> weeks. Alternatively, we hope to have a new development release out
>> next week (1.19.3).  I'll try to get any fix done in time for that also.
>>
>> I've raised bug 1324729 for this issue.
>>
>> On Fri 30 May 2014 09:29:15 EST, GMail wrote:
>>> Trying to deploy a charm with some extra root disk space. When using the
>> root-disk constraint defined above I get the following error:
>>>
>>> '(error: no instance types in us-east-1 matching constraints
>> "cpu-power=100 root-disk=16384M")'
>>>
>>> I’m deploying a bundle with the following constraints: constraints:
>> "mem=4G arch=amd64”, but need more disk-space then the default provided.
>>>
>>> Any suggestions ?
>>>
>>>
>>> Stein Myrseth
>>> Bjørkesvingen 6J
>>> 3408 Tranby
>>> mob: +47 909 62 763
>>> mailto:stein.myrs...@gmail.com
>>>
>>>
>>>
>>>
>>
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
> 

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to