ubuntu charm lacks lxc bridge config

Bug #1423694 reported by Liang Chen on 2015-02-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu (Juju Charms Collection)
Status tracked in Precise
Liang Chen
Liang Chen

Bug Description

Current ubuntu charm doesn't provide any configuration options, so when deploy the following bundle in such a local env,

local env:
        type: local
        lxc-use-clone: true
        container: kvm

      branch: lp:charms/ubuntu
      series: trusty
      constraints: mem=2G
      num_units: 1
      new-lxc-network: False
      to: lxc:ubuntu=0
      charm: "cs:trusty/mysql"
      num_units: 1
      to : lxc:ubuntu=0
      charm: "cs:trusty/wordpress"
      num_units: 1
    - - "wordpress:db"
      - "mysql:db"

the mysql and wordpress nodes will not have their network configured properly. Because by default lxc in the ubuntu instance uses dnsmasq to provide dhcp on lxcbr0, and the dnsmasq will choose a subnet that's different from the network that the ubuntu kvm instance is in.

It would be good to add a config option for the ubuntu charm, so that uses can choose whether to create a different subnet or just bridge to the exist network that the ubuntu instance is in for lxc containers.

Related branches

Liang Chen (cbjchen) on 2015-02-19
Changed in charms:
assignee: nobody → Liang Chen (cbjchen)
Liang Chen (cbjchen) on 2015-02-19
summary: - ubuntu charm lack lxc bridge config
+ ubuntu charm lacks lxc bridge config
Liang Chen (cbjchen) on 2015-02-19
Changed in charms:
status: New → In Progress
Changed in charms:
status: In Progress → Fix Released
status: Fix Released → Triaged
Marco Ceppi (marcoceppi) on 2015-03-31
affects: Charms Precise → ubuntu (Charms Precise)
Antonio Rosales (arosales) wrote :


Thanks for ensuring this Charm was also available for Precise. If you could please submit a merge proposal of your current branch, lp:~cbjchen/charms/trusty/ubuntu/lxc-network-config, against Precise we can test and then update the Ubuntu Precise charm.

While this is updated I'll put the status in "Incomplete" while you attach the Precise branch.


Changed in ubuntu (Charms Precise):
status: Triaged → Incomplete
Liang Chen (cbjchen) wrote :


Sure. Thank you for the help! I have just proposed the merged.


Antonio Rosales (arosales) wrote :


Pending a successful test this LGTM.


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers