Completely fails to honour constraints
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Triaged
|
High
|
Unassigned |
Bug Description
Using juju 1.16.6 and the ec2 provider:
If I specify a root disk of 10 G and mem of 8G, I get a root disk of 8G (less than 10) and mem of 1.7 G (less than 8).
In order to get an m1.large, I tried specifying 7G mem and 420G root-disk, but this resulted in the same instance type being deployed.
$ juju deploy jenkins --constraints "root-disk=10G mem=8G"
$ juju status
environment: juju-ci3
machines:
"0":
agent-state: started
agent-version: 1.16.6
dns-name: ec2-54-
instance-id: i-59745278
instance-state: running
series: precise
hardware: arch=amd64 cpu-cores=1 cpu-power=200 mem=3840M root-disk=8192M
"1":
agent-state: started
agent-version: 1.16.6
dns-name: ec2-54-
instance-id: i-06fce526
instance-state: running
series: precise
hardware: arch=amd64 cpu-cores=2 cpu-power=500 mem=1740M root-disk=8192M
services:
jenkins:
charm: cs:precise/
exposed: false
units:
jenkins/0:
machine: "1"
open-ports:
- 8080/tcp
The root-disk was not supported in 1.16 and there is a known bug that an invalid constraint causes all constraints to be ignored and the defaults used instead.
Try not specifuing root-disk and the mem constraint should then be obeyed.