juju Recommends on lxc installs libvirt-bin which causes problems when testing in virtualized environments

Bug #962389 reported by Jamie Strandboge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

In performing the juju MIR, I setup OpenStack using https://wiki.ubuntu.com/SecurityTeam/TestingOpenStack. This installs openstack in a libvirt managed VM and public addresses for openstack instances show up on the 192.168.122.0.0/24 network. This works great with euca2ools.

However, with juju this fails because 'juju bootstrap' installs juju for the agents on the instances, but juju Recommends lxc, which pulls in libvirt-bin. Upon install, libvirt-bin configures its default network (192.168.122.0/24) and all of sudden the instance is unreachable. This is a known problem with running libvirt in a libvirt VM and the host libvirt network and the guest libvirt networks must not overlap.

The security team uses libvirt extensively for testing and this makes it problematic to test juju with openstack. Others will undoubtedly want to perform similar testing for enterprise rollouts or for QA.

A workaround is to have the OpenStack VM run in another network, eg 192.168.123.0/24 (but this is painful for people who already have many machines configured to use the default libvirt network).

Several options exist:
* split out juju-lxc and move it to Suggests, and have juju suggest installing it when configuring 'local:' environments
* split out the juju agents (juju-core?) and have juju only install that in instances instead of 'juju'
* have juju use --no-install-recommends when installing 'juju' on instances

Related branches

Changed in juju (Ubuntu):
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package juju - 0.5+bzr504-0ubuntu1

---------------
juju (0.5+bzr504-0ubuntu1) precise; urgency=low

  * New upstream snapshot (LP: #962507 LP: #953258 LP: #965507).
  * d/control: Depend and Build-Depend on python-oauth for MaaS.
  * d/control: Drop dummy ensemble package and make breaks/replaces
    broader to force removal of any ensemble package. (LP: #954492)
  * d/control: Move lxc, libvirt-bin, and zookeeper to Suggests to
    reduce the amount of packages installed on every node unecessarily
    and also avoid conflicting when deploying into a libvirt-bin
    default network VM (LP: #962389)
  * d/rules: skip test suite when nocheck is set.
  * d/rules: remove redundant dh_clean call
  * d/juju.install: remove usr, with only one binary package this is
    not necessary anymore and causes dh_install to fail because no
    files are installed to debian/tmp anymore.
  * d/rules,d/control,d/manpages,d/juju.manpages: Generate basic
    manpage from online help. (LP: #966611)
  * d/patches/no-write-sample-on-help.patch: Added so --help can be
    safely run without a writable home dir on buildds. (LP: #957682)
 -- Clint Byrum <email address hidden> Fri, 30 Mar 2012 15:28:16 -0700

Changed in juju (Ubuntu):
status: Fix Committed → Fix Released
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.