Public bug reported:

Setup the following:
$ cat ~/.juju/environments.yaml

default: local

environments:
  local:
    type: local
    container: kvm


Execute the following:
$ juju add-machine

You will see:
$ juju status
environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.18.1.1
    dns-name: localhost
    instance-id: localhost
    series: trusty
  "1":
    agent-state-info: '(error: kvm container creation failed: exit status 1)'
    instance-id: pending
    series: trusty

I have the following:
$ uvt-simplestreams-libvirt query
release=trusty arch=amd64 label=daily (20140318)
release=trusty arch=amd64 label=release (20140416.1)

If I do:
$ uvt-simplestreams-libvirt purge 
$ uvt-simplestreams-libvirt sync release=trusty arch=amd64

Then I get this working correctly:
$ juju add-machine
$ juju status
environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.18.1.1
    dns-name: localhost
    instance-id: localhost
    series: trusty
  "3":
    agent-state: pending
    instance-id: arges-local-machine-3
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=512M root-disk=8192M
services: {}

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: juju-core 1.18.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-18.38-generic 3.13.6
Uname: Linux 3.13.0-18-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Thu May  8 17:02:34 2014
Dependencies:
 gcc-4.9-base 4.9-20140406-0ubuntu1
 libc6 2.19-0ubuntu6
 libgcc1 1:4.9-20140406-0ubuntu1
 multiarch-support 2.19-0ubuntu6
InstallationDate: Installed on 2014-03-17 (52 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Alpha amd64 
(20140313)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: juju-core
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: juju-core (Ubuntu)
     Importance: High
         Status: Confirmed


** Tags: amd64 apport-bug cloud-installer trusty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju-core in Ubuntu.
https://bugs.launchpad.net/bugs/1317680

Title:
  can't juju add machine when multiple images with same arch/release
  exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1317680/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to