deploying mysql service hang in "pending" state with lxc

Bug #971664 reported by Pierre Amadio
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pyjuju
Invalid
Undecided
Unassigned

Bug Description

I'm trying to leanr juju on a oneiric box with lxc container.

I installed juju with:

$ sudo add-apt-repository ppa:juju/pkgs
$ sudo add-apt-repository ppa:charmers/charm-helpers
$ sudo apt-get update && sudo apt-get install juju charm-tools

I insalled charm with:
$ charm getall charm-repo/oneiric

juju version is 0.5+bzr504-1juju4~oneiric1

My environment.yaml is:

##################
environments:
  lxc:
    type: local
    control-bucket: juju-ede2a53e037942e5bcfe431951dc9658
    admin-secret: c0f5b723fb2743af9771fe97d02a0698
    default-series: oneiric
    juju-origin: distro
    data-dir: /var/jujustuff
    default-instance-type: m1.large
##################

I reproduce the problem several time after destroying my environment, and bootstraping again.

When i launch a mysql service with:

$ juju deploy --repository /home/ubuntu/charm-repo/ local:mysql

It end up in a pending state (even 45mn after the deployemnt).

juju status gives:
ubuntu@jujubox-oneiric:~$ juju status
machines:
  0:
    agent-state: running
    dns-name: localhost
    instance-id: local
    instance-state: running
services:
  mysql:
    charm: local:oneiric/mysql-118
    relations: {}
    units:
      mysql/0:
        agent-state: pending
        machine: 0
        public-address: null
2012-04-02 18:03:03,767 INFO 'status' command finished successfully

juju debug-log:

ubuntu@jujubox-oneiric:~$ juju debug-log
2012-04-02 17:13:31,108 INFO Enabling distributed debug log.
2012-04-02 17:13:31,120 INFO Tailing logs - Ctrl-C to stop.
2012-04-02 17:13:53,391 Machine:0: juju.agents.machine DEBUG: Units changed old:set([]) new:set(['mysql/0'])
2012-04-02 17:13:53,391 Machine:0: juju.agents.machine DEBUG: Starting service unit: mysql/0 ...
2012-04-02 17:13:53,470 Machine:0: juju.state.unit DEBUG: Downloading charm local:oneiric/mysql-118 to /var/jujustuff/ubuntu-lxc/charms
2012-04-02 17:13:53,540 Machine:0: juju.state.unit DEBUG: Starting service unit mysql/0...
2012-04-02 17:13:53,544 Machine:0: unit.deploy DEBUG: Creating master container...
2012-04-02 17:28:34,070 Machine:0: unit.deploy DEBUG: Created master container ubuntu-lxc-0-template
2012-04-02 17:28:34,071 Machine:0: unit.deploy INFO: Creating container mysql-0...
2012-04-02 17:28:40,314 Machine:0: unit.deploy INFO: Container created for mysql/0
2012-04-02 17:28:40,331 Machine:0: unit.deploy DEBUG: Charm extracted into container
2012-04-02 17:28:40,339 Machine:0: unit.deploy DEBUG: Starting container...
2012-04-02 17:28:40,407 Machine:0: unit.deploy INFO: Started container for mysql/0
2012-04-02 17:28:40,465 Machine:0: juju.state.unit INFO: Started service unit mysql/0

The lxc vm is up as i can have access to the console with

sudo lxc-console --name ubuntu-lxc-mysql-0

Revision history for this message
Pierre Amadio (pierre-amadio) wrote :

Mhhh, works way better with "origin: ppa"....
this can be closed.

Changed in juju:
status: New → Invalid
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.