ubuntu charm lacks lxc bridge config

Bug #1423694 reported by Liang Chen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu (Juju Charms Collection)
Status tracked in Precise
Precise
Incomplete
Undecided
Liang Chen
Trusty
Fix Released
Undecided
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:
==============================
    local:
        type: local
        lxc-use-clone: true
        container: kvm

bundle:
==============================
sample:
  services:
    ubuntu:
      branch: lp:charms/ubuntu
      series: trusty
      constraints: mem=2G
      num_units: 1
      new-lxc-network: False
    mysql:
      to: lxc:ubuntu=0
      charm: "cs:trusty/mysql"
      num_units: 1
    wordpress:
      to : lxc:ubuntu=0
      charm: "cs:trusty/wordpress"
      num_units: 1
  relations:
    - - "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)
Changed in charms:
assignee: nobody → Liang Chen (cbjchen)
Liang Chen (cbjchen)
summary: - ubuntu charm lack lxc bridge config
+ ubuntu charm lacks lxc bridge config
Liang Chen (cbjchen)
Changed in charms:
status: New → In Progress
Changed in charms:
status: In Progress → Fix Released
status: Fix Released → Triaged
Marco Ceppi (marcoceppi)
affects: Charms Precise → ubuntu (Charms Precise)
Revision history for this message
Antonio Rosales (arosales) wrote :

@Liang,

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.

-thanks,
Antoino

Changed in ubuntu (Charms Precise):
status: Triaged → Incomplete
Revision history for this message
Liang Chen (cbjchen) wrote :

Antonio,

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

Thanks,
Liang

Revision history for this message
Antonio Rosales (arosales) wrote :

@Liang,

Pending a successful test this LGTM.

-Thanks,
Antonio

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

Other bug subscribers

Remote bug watches

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