juju deploy --to lxc:0 cs:trusty/ubuntu creates precise container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Tim Penhey | ||
1.18 |
Fix Released
|
High
|
Martin Packman |
Bug Description
I have a precise bootstrap node, and I run the following to test a trusty charm:
juju deploy --to lxc:0 cs:trusty/ubuntu
And I see the following on the bootstrap host:
16318 ? S 0:00 \_ lxc-create -n juju-machine-
Notice the '-r precise'
Indeed, I end up with a precise container, and juju status output that still shows "trusty/ubuntu":
machines:
"0":
agent-state: started
agent-version: 1.17.7
dns-name: xxx
instance-id: i-yyyyyy
instance-state: running
series: precise
containers:
0/lxc/0:
dns-name: 10.0.3.120
series: trusty
hardware: arch=amd64
hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
(...)
ubuntu:
charm: cs:trusty/ubuntu-0
exposed: false
units:
ubuntu/0:
machine: 0/lxc/0
Related branches
- Juju Engineering: Pending requested
-
Diff: 145 lines (+21/-11)10 files modifiedcontainer/lxc/initialisation.go (+1/-0)
container/lxc/initialisation_test.go (+2/-2)
tools/tools.go (+1/-1)
utils/apt.go (+1/-0)
worker/provisioner/container_initialisation_test.go (+1/-1)
worker/provisioner/kvm-broker.go (+6/-2)
worker/provisioner/kvm-broker_test.go (+1/-1)
worker/provisioner/lxc-broker.go (+6/-2)
worker/provisioner/lxc-broker_test.go (+1/-1)
worker/provisioner/provisioner_task.go (+1/-1)
- Juju Engineering: Pending requested
-
Diff: 145 lines (+21/-11)10 files modifiedcontainer/lxc/initialisation.go (+1/-0)
container/lxc/initialisation_test.go (+2/-2)
tools/tools.go (+1/-1)
utils/apt.go (+1/-0)
worker/provisioner/container_initialisation_test.go (+1/-1)
worker/provisioner/kvm-broker.go (+6/-2)
worker/provisioner/kvm-broker_test.go (+1/-1)
worker/provisioner/lxc-broker.go (+6/-2)
worker/provisioner/lxc-broker_test.go (+1/-1)
worker/provisioner/provisioner_task.go (+1/-1)
description: | updated |
description: | updated |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.19.0 |
Changed in juju-core: | |
assignee: | nobody → Tim Penhey (thumper) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
tags: | added: cloud-installer |
worker/ provisioner/ lxc-broker. go:69 OneSeries( )
series := args.Tools.
The lxc broker is created with the tools of the agent. These same tools are passed down to the container being created.
Yes it appears that the brokers only create series that match the host.