Problem with lxd on master - How do I debug this?

Tycho Andersen tycho.andersen at canonical.com
Tue Feb 2 02:54:39 UTC 2016


On Mon, Feb 01, 2016 at 02:12:15PM +0000, Matthew Williams wrote:
> Hey folks,
> 
> the lxd provider has been working fine for me - until this morning. I'm
> running on master (1cb8f0)

What version of LXD are you running? There was a problem with LXD 0.27
which broke backward compatibility; juju has only imported version 0.21
(or something) of the LXD go API. This PR should fix it:

https://github.com/juju/juju/pull/4131

if that's what you're seeing.

Basically, the problem is setting config; juju tries to set some
server config, but the way that works has changed, and so setting that
config fails, which may cause the hang you're seeing.

Tycho

> I've attached output from juju debug-log juju status and lxd list, can
> someone help me work out what I should do to resolve this.
> 
> The history leading up the attached logs is:
> 
> 1) Everything was working
> 2) A deployed a charm that had a hook install error (I was debugging said
> charm, so that was expected). I couldn't ssh to the unit. I got the
> following error:
> $ juju ssh foobar/0
> ERROR error fetching address for unit "foobar/0": private no address.
> 
> juju debug log showed:
> 
>  machine-4: 2016-02-01 11:53:39 ERROR juju.worker runner.go:229 exited
> "machiner": setting machine addresses: cannot set machine addresses of
> machine 4: state changing too quickly; try again soon
> 
> After doing what debug I can I destroyed the controller. Now whenever I
> bootstrap a lxd environment I get the state server and everything else
> get's stuck in allocation. Attached is more detailed stuff from the logs.
> What should I do to work out what's going on here?
> 
> Matty

> $ juju debug-log
> 
> machine-0: 2016-02-01 13:48:44 WARNING juju.state allwatcher.go:352 getting a public address for unit "wordpress2/0" failed: "public no address"
> machine-0: 2016-02-01 13:48:44 WARNING juju.state allwatcher.go:356 getting a private address for unit "wordpress2/0" failed: "private no address"
> machine-0: 2016-02-01 13:48:47 ERROR juju.state.unit unit.go:739 unit mysql/0 cannot get assigned machine: unit "mysql/0" is not assigned to a machine
> machine-0: 2016-02-01 13:48:49 ERROR juju.state.unit unit.go:739 unit mysql/0 cannot get assigned machine: unit "mysql/0" is not assigned to a machine
> machine-0: 2016-02-01 13:48:49 ERROR juju.state.unit unit.go:739 unit mysql/0 cannot get assigned machine: unit "mysql/0" is not assigned to a machine
> machine-0: 2016-02-01 13:48:49 WARNING juju.state allwatcher.go:352 getting a public address for unit "mysql/0" failed: "unit mysql/0 cannot get assigned machine: unit \"mysql/0\" is not assigned to a machine"
> machine-0: 2016-02-01 13:48:49 ERROR juju.state.unit unit.go:749 unit mysql/0 cannot get assigned machine: unit "mysql/0" is not assigned to a machine
> machine-0: 2016-02-01 13:48:49 WARNING juju.state allwatcher.go:356 getting a private address for unit "mysql/0" failed: "unit mysql/0 cannot get assigned machine: unit \"mysql/0\" is not assigned to a machine"
> machine-0: 2016-02-01 13:48:54 WARNING juju.state allwatcher.go:352 getting a public address for unit "mysql/0" failed: "public no address"
> machine-0: 2016-02-01 13:48:54 WARNING juju.state allwatcher.go:356 getting a private address for unit "mysql/0" failed: "private no address"
> 
> $ juju status
> wordpress/0   unknown        allocating          4                            Waiting for agent initialization to finish
> mysql/0      unknown        allocating          5                            Waiting for agent initialization to finish
> 
> $ lxc list
> +-----------------------------------------------------+---------+-------------------+------+-----------+-----------+
> |                        NAME                         |  STATE  |       IPV4        | IPV6 | EPHEMERAL | SNAPSHOTS |
> +-----------------------------------------------------+---------+-------------------+------+-----------+-----------+
> | juju-91f8c399-fc79-42e3-81f1-2725536bfcbb-machine-0 | RUNNING | 10.0.3.157 (eth0) |      | NO        |         0 |
> +-----------------------------------------------------+---------+-------------------+------+-----------+-----------+

> -- 
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev




More information about the Juju-dev mailing list