Juju does not use constraints when deploying to a container

Bug #1397201 reported by Johan Ehnberg
58
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Unassigned
juju-core
Won't Fix
Medium
Unassigned
1.25
Won't Fix
Medium
Unassigned

Bug Description

Running Juju 1.20.12-trusty-amd64 on MaaS.

May be related to:
https://code.launchpad.net/~thumper/juju-core/kvm-constraints/+merge/197815

Setting constraints does not affect the creation of KVM containers.

johan@maas:~$ juju deploy --to kvm:2 --constraints "mem=2G cpu-cores=2" ubuntu test-ubuntu
Added charm "cs:trusty/ubuntu-0" to the environment.

johan@maas:~$ juju status test-ubuntu
environment: maas
machines:
  "2":
    agent-state: started
    agent-version: 1.20.12
    dns-name: ajbwc.maas.molnix.com
    instance-id: /MAAS/api/1.0/nodes/node-2aadeb06-6a86-11e4-8be8-0021702cb7de/
    series: trusty
    containers:
      2/kvm/4:
        agent-state: pending
        instance-id: juju-machine-2-kvm-4
        series: trusty
        hardware: arch=amd64 cpu-cores=1 mem=512M root-disk=8192M
    hardware: arch=amd64 cpu-cores=2 mem=6144M
services:
  test-ubuntu:
    charm: cs:trusty/ubuntu-0
    exposed: false
    units:
      test-ubuntu/0:
        agent-state: pending
        machine: 2/kvm/4

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in juju (Ubuntu):
status: New → Confirmed
Revision history for this message
Robie Basak (racb) wrote :

Sending this upstream in the first instance, as it is unlikely to be an Ubuntu packaging issue.

affects: juju (Ubuntu) → juju-core
Aaron Bentley (abentley)
Changed in juju-core:
status: Confirmed → Triaged
importance: Undecided → High
milestone: none → 1.23
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Confirmed this happens with both KVM and LXC containers - when --to is given along with --constraints specifying placement the latter is ignored.

tags: added: cli constraints deploy kvm lxc placement
summary: - Juju does not use constraints when deploying to a KVM container
+ Juju does not use constraints when deploying to a container
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.23 → none
importance: High → Medium
Nobuto Murata (nobuto)
tags: added: cpec
Revision history for this message
Michael Iatrou (michael.iatrou) wrote :

juju 2.0-beta6-trusty-amd64 is affected by it too.

Revision history for this message
Martin Packman (gz) wrote :

From bug 1399613 this also affects add-machine with container syntax.

tags: added: 4010
Changed in juju-core:
milestone: none → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Changed in juju-core:
importance: Undecided → Medium
status: New → Won't Fix
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Revision history for this message
Ante Karamatić (ivoks) wrote :

Dear juju team, I believe this has been fixed for some time. See bug 1626597.

Changed in juju:
status: Triaged → Fix Released
milestone: none → 2.1-beta3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.