Questions / problems running LXC related unit tests
Kapil Thangavelu
kapil.thangavelu at canonical.com
Wed Feb 15 19:46:57 UTC 2012
Excerpts from Haitao Jiang's message of Wed Feb 15 11:59:35 -0500 2012:
> Hi, there
>
> Just join the mailing list. Apologize if this has been asked before. I
> have download the juju source
>
> bzr branch lp:juju
>
> and tried to run just the LXC tests, so far it has been failing.
>
> My questions
>
> - Do I need to run the LXC tests as sudo?
No, there is an environment variable (TEST_LXC) required or the lxc tests are
skipped. The lxc tests will prompt for sudo as needed.
> - It seems that it can not connect to 192.168.122.1:3142 - anyway to
> get around this?
>
Juju relies on the default libvirt network setup for its lxc usage. There's a
known issue with the libvirt usage though that the user needs to relogin to get
the group memberships after installing the libvirt-bin package.
We've got several helpful folks on the irc channel #juju on irc.freenode.net
hth,
Kapil
> Thanks
>
> -----------------------------------------------------------------------------------------------------------------------------------
> ./test juju/lib/lxc/tests
>
> Using system zookeeper classpath from /etc/zookeeper/conf/environment
> juju.lib.lxc.tests.test_lxc
> LXCTest
> test_container_clone ... [ERROR]
> + APT_OPTIONS='-o Dpkg::Options::= --force-confnew --force-yes -fuy'
> + source /etc/juju/juju.conf
> ++ JUJU_CONTAINER_NAME=lxc_test
> ++ JUJU_PUBLIC_KEY=dsa...
> ++ JUJU_ORIGIN=ppa
> + '[' -z ppa ']'
> ++ id -u
> + '[' 0 '!=' 0 ']'
> + '[' -z lxc_test ']'
> + '[' -z dsa... ']'
> ++ id -u
> + '[' 0 '!=' 0 ']'
> + setup_apt_cache
> + cat
> + chmod a+r /etc/apt/apt.conf.d/02juju-apt-proxy
> + apt-get update
> Err http://archive.ubuntu.com oneiric InRelease
>
> Err http://archive.ubuntu.com oneiric Release.gpg
> Unable to connect to 192.168.122.1:3142:
> Reading package lists...
> W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric/InRelease
>
> W: Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg Unable to
> connect to 192.168.122.1:3142:
> :
>
More information about the Juju
mailing list