juju deploys wrong machine when no machine matching constraints is available

Bug #1237163 reported by Dave Cheney
16
This bug affects 5 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth

Bug Description

This should have failed

lucky(~/src/launchpad.net/juju-core/worker/uniter/jujuc) % juju deploy --repository=$HOME/charms --constraints='cpu-cores=9000' local:raring/gccgo gccgo2

lucky(~/src/launchpad.net/juju-core/worker/uniter/jujuc) % juju status gccgo2
environment: ap-southeast-2
machines:
  "2":
    agent-state: pending
    instance-id: i-680ccb54
    instance-state: pending
    series: raring
    hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
services:
  gccgo2:
    charm: local:raring/gccgo-12
    exposed: false
    units:
      gccgo2/0:
        agent-state: pending
        machine: "2"

But it didn't, it deployed a smaller machine.

Related branches

Revision history for this message
Curtis Hovey (sinzui) wrote :

could this relate to the misadventures deploying to canonistack? Will juju ask for an image to fit mongodb, to accept something that is too small?

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
tags: added: deploy
Curtis Hovey (sinzui)
tags: added: constraints
Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 1.18.0
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju-core:
milestone: 1.18.0 → 1.17.3
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.